$(document).ready(function(){
  $(".div_tricolor_item").hover(
  function () {      
    $(this).children('.div_tricolor_hover_effect').stop().animate({opacity: '1.0'}, 200);
    $("#div_header_info").stop().animate({opacity: '1.0'}, 200); 
  }, 
  function () {
    $(this).children('.div_tricolor_hover_effect').stop().animate({opacity: '0.0'}, 400);
    $("#div_header_info").stop().animate({opacity: '0.0'}, 400);
  }); 
  
  
  $("#div_btn_save").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });    
  
  $("#div_btn_cancel").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });     
  
  
  $(".div_tab_left").hover(
  function () {      
    var isActive = ($(this).attr("class").indexOf("active") == -1);
    if (isActive){
      $(this).stop().animate({opacity: '0.75'},150);
    }
  }, 
  function () {
    var isActive = ($(this).attr("class").indexOf("active") == -1);
    if (isActive){
      $(this).stop().animate({opacity: '0.5'},150);
    }
  });     
  
  
  
  
  $("#div_settingcontainer_open").hover(
  function () {      
    $(this).children("#div_hover").stop(true, true).fadeIn(150);
    $("#div_settingcontainer").stop().animate({top: "-9px"}, 150);
  }, 
  function () {
      
  });     
  
  $("#div_settingcontainer").hover(
  function () {      
    
  }, 
  function () {
    $("#div_settingcontainer").stop().animate({top: "-41px"}, 150); 
    $("#div_settingcontainer_open").children("#div_hover").stop(true, true).fadeOut(300);
  });     
  
 

  
  $(".div_btn_dark").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(150);
    $(this).children('.div_content').children('span').stop().animate({color: 'white'}, 150);
  }, 
  function () {
    $(this).children('.div_hover').stop(true, true).fadeOut(300);
    $(this).children('.div_content').children('span').stop().animate({color: '#868686'}, 300);
  });    
  
  $("#div_close_share_popup").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });     
  
  $("#div_close_new_popup").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  }); 
  
  
  
  $("#div_yes_btn").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });    
  
  
  $("#div_storn_btn").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });  
  
  $("#div_no_btn").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });      
  
  $("#div_add_button").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('.div_hover').stop(true, true).fadeOut(400);
  });     
  
  $("#div_show_edit_slide").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('.div_hover').stop(true, true).fadeOut(400);
  });     
  
  
  $(".div_gallery_select_l").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    if ($(this).attr("id") != "div_gallery_selected"){
      $(this).children('.div_hover').stop(true, true).fadeOut(400);
    }
  }); 
  
  $(".div_gallery_select_m").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    if ($(this).attr("id") != "div_gallery_selected"){
      $(this).children('.div_hover').stop(true, true).fadeOut(400);
    }
  });  
  
  $("#div_continue_btn").hover( 
  function () {   
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  }); 
  
  $("#div_storno_btn").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });   
  
  $("#div_ok_btn").hover(
  function () {      
    $(this).children('#div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    $(this).children('#div_hover').stop(true, true).fadeOut(400);
  });   
        
  $(".div_gallery_select_r").hover(
  function () {      
    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    if ($(this).attr("id") != "div_gallery_selected"){
      $(this).children('.div_hover').stop(true, true).fadeOut(400);
    }
  });    
  
 /* 
  $("#div_image_picture").hover(
  function () {    

    $(this).children('.div_hover').stop(true, true).fadeIn(200);
  }, 
  function () {
    if ($(this).attr("id") != "div_gallery_selected"){
      $(this).children('.div_hover').stop(true, true).fadeOut(400);
    }
  });    */
   
  
  
  $(".div_search_sellect_container .div_search_select_l").hover(
  function () {      
    $(this).children('.div_hover').stop().animate({opacity: '0.2'}, 200);
  }, 
  function () {
    $(this).children('.div_hover').stop().animate({opacity: '0.0'}, 400);
  });   
  
  
  $(".div_search_small_btn").hover(
  function () {      
    $(this).children('.div_hover').stop().animate({opacity: '0.2'}, 200);
  }, 
  function () {
    $(this).children('.div_hover').stop().animate({opacity: '0.0'}, 400);
  });   
  
  
  
  $(".div_search_sellect_container .div_search_select_m").hover(
  function () {      
    $(this).children('.div_hover').stop().animate({opacity: '0.2'}, 200);
  }, 
  function () {
    $(this).children('.div_hover').stop().animate({opacity: '0.0'}, 400);
  });  
  
  $(".div_search_sellect_container .div_search_select_r").hover(
  function () {      
    $(this).children('.div_hover').stop().animate({opacity: '0.2'}, 200);
  }, 
  function () {
    $(this).children('.div_hover').stop().animate({opacity: '0.0'}, 400);
  });         
  
  
  $("#div_close_popup_save").hover(
  function () {      
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '0.0'}, 400);
  });   
    
  $("#div_close_popup").hover(
  function () {      
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '0.0'}, 400);
  });  
    
  $(".div_anim_btn_container_big").hover(
  function () {      
    $(this).children(".div_anim_btn_hover").stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children(".div_anim_btn_hover").stop().animate({opacity: '0.0'}, 400);
  });    
    
  $(".div_anim_btn_container").hover(
  function () {      
    $(this).children(".div_anim_btn_hover").stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children(".div_anim_btn_hover").stop().animate({opacity: '0.0'}, 400);
  });     
    
  $("#div_close_iframe_popup").hover(
  function () {      
    $(this).children('#div_close_iframe_popup_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_close_iframe_popup_hover').stop().animate({opacity: '0.0'}, 400);
  });    
                    
  $("#div_close_creativ_popup").hover(
  function () {      
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_close_popup_hover').stop().animate({opacity: '0.0'}, 400);
  });    
  
                    
  $("#div_close_open_popup").hover(
  function () {      
    $(this).children('#div_close_popup_hover_open').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_close_popup_hover_open').stop().animate({opacity: '0.0'}, 400);
  });     
  
  $("#div_btn_new_slide").hover(
  function () {      
    $(this).children('#div_btn_new_slide_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_btn_new_slide_hover').stop().animate({opacity: '0.0'}, 400);
  });   
    
  $("#div_reg_button").hover(
  function () {      
    $(this).children('#div_reg_button_hover').stop().animate({opacity: '1.0'}, 200);
  }, 
  function () {
    $(this).children('#div_reg_button_hover').stop().animate({opacity: '0.0'}, 400);
  });   
  
  
  $("#div_tricolor_registration").hover(
  function () {      
    $("#div_arrows_registration .div_arrow_info:eq(0)").stop(true, true).fadeIn(300);
    $('#div_arrows_registration .div_arrow_info:eq(1)').stop(true, true).delay(100).fadeIn(300);
    $('#div_arrows_registration .div_arrow_info:eq(2)').stop(true, true).delay(200).fadeIn(300);
    $('#div_arrows_registration .div_arrow_info:eq(3)').stop(true, true).delay(300).fadeIn(300);
    
    $("#registration_title").stop(true, true).fadeIn(300);
    $("#registration_content").stop(true, true).fadeIn(300); 
  }, 
  function () {    
    $("#div_arrows_registration .div_arrow_info:eq(0)").stop(true, true).delay(300).fadeOut(300);
    $('#div_arrows_registration .div_arrow_info:eq(1)').stop(true, true).delay(200).fadeOut(300);
    $('#div_arrows_registration .div_arrow_info:eq(2)').stop(true, true).delay(100).fadeOut(300);
    $('#div_arrows_registration .div_arrow_info:eq(3)').stop(true, true).fadeOut(300); 
    
    $("#registration_title").stop(true, true).fadeOut(300);
    $("#registration_content").stop(true, true).fadeOut(300);     
  }); 
  
  $("#div_tricolor_login").hover(
  function () {      
    $("#div_arrows_login .div_arrow_info:eq(0)").stop(true, true).fadeIn(300);
    $('#div_arrows_login .div_arrow_info:eq(1)').stop(true, true).delay(100).fadeIn(300);
    $('#div_arrows_login .div_arrow_info:eq(2)').stop(true, true).delay(200).fadeIn(300);
    $('#div_arrows_login .div_arrow_info:eq(3)').stop(true, true).delay(300).fadeIn(300); 
    
    $("#login_title").stop(true, true).fadeIn(300);
    $("#login_content").stop(true, true).fadeIn(300);
  }, 
  function () {    
    $("#div_arrows_login .div_arrow_info:eq(0)").stop(true, true).delay(300).fadeOut(300);
    $('#div_arrows_login .div_arrow_info:eq(1)').stop(true, true).delay(200).fadeOut(300);
    $('#div_arrows_login .div_arrow_info:eq(2)').stop(true, true).delay(100).fadeOut(300);
    $('#div_arrows_login .div_arrow_info:eq(3)').stop(true, true).fadeOut(300); 

    $("#login_title").stop(true, true).fadeOut(300);
    $("#login_content").stop(true, true).fadeOut(300);    
  });   
  
  $("#div_tricolor_create").hover(
  function () {      
    $("#div_arrows_creation .div_arrow_info:eq(0)").stop(true, true).fadeIn(300);
    $('#div_arrows_creation .div_arrow_info:eq(1)').stop(true, true).delay(100).fadeIn(300);
    $('#div_arrows_creation .div_arrow_info:eq(2)').stop(true, true).delay(200).fadeIn(300);
    $('#div_arrows_creation .div_arrow_info:eq(3)').stop(true, true).delay(300).fadeIn(300); 

    $("#creation_title").stop(true, true).fadeIn(300);
    $("#creation_content").stop(true, true).fadeIn(300);    
  }, 
  function () {    
    $("#div_arrows_creation .div_arrow_info:eq(0)").stop(true, true).delay(300).fadeOut(300);
    $('#div_arrows_creation .div_arrow_info:eq(1)').stop(true, true).delay(200).fadeOut(300);
    $('#div_arrows_creation .div_arrow_info:eq(2)').stop(true, true).delay(100).fadeOut(300);
    $('#div_arrows_creation .div_arrow_info:eq(3)').stop(true, true).fadeOut(300); 
    
    $("#creation_title").stop(true, true).fadeOut(300);
    $("#creation_content").stop(true, true).fadeOut(300);        
  });   
  
    
  $(".div_news_title").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 200);
    $(this).css("text-decoration", "none");
  }); 
  
  $("#div_forgott_password").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 400);
    $(this).css("text-decoration", "none");
  }); 
  
  $("a").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    //$(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 400);
    //$(this).css("text-decoration", "none");
  }); 

      
  $("#div_search_categories ul li span").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 200);
    $(this).css("text-decoration", "none");
  }); 
  
  
  
  
  $(".logout_btn").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 400);
    $(this).css("text-decoration", "none");
  });   
  
  
  $("#div_login_name").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: 'white'}, 400);
    $(this).css("text-decoration", "none");
  });    
  
  
  $(".div_checbox_href").hover(
  function () {      
    $(this).stop().animate({color: '#00ffea'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#00baff'}, 400);
    $(this).css("text-decoration", "none");
  });  
  

  
  
  $(".div_showcase_container").hover(
  function () {      
    $(this).children(".div_showcase_label").stop().animate({color: '#00ffea'}, 200);
    $(this).children(".div_showcase_label").css("text-decoration", "underline");
    $(this).children(".div_showcase_image").stop().animate({opacity: '1.0'}, 200); 
  }, 
  function () {
    $(this).children(".div_showcase_label").stop().animate({color: '#00baff'}, 200);
    $(this).children(".div_showcase_label").css("text-decoration", "none");
    $(this).children(".div_showcase_image").stop().animate({opacity: '0.8'}, 200); 
  });   
  
  
  
  
  $(".span_odkaz_footer").hover(
  function () {      
    $(this).stop().animate({color: '#00baff'}, 200);
    $(this).css("text-decoration", "underline");
  }, 
  function () {
    $(this).stop().animate({color: '#a6a6a6'}, 400);
    $(this).css("text-decoration", "none");
  });   
  

  
  $("#div_search_button").hover(
  function () {      
    $(this).children('#div_search_button_hover').stop().animate({opacity: '1.0'}, 100);
  }, 
  function () {
    $(this).children('#div_search_button_hover').stop().animate({opacity: '0.0'}, 400);
  });    
 

  $("#div_carousel_prev_btn").hover(
  function () {      
    $(this).children('#div_carousel_prev_btn_hover').stop().animate({opacity: '1.0'}, 200);        
  }, 
  function () {
    $(this).children('#div_carousel_prev_btn_hover').stop().animate({opacity: '0.0'}, 400);
  });  

  $("#div_carousel_next_btn").hover(
  function () {      
    $(this).children('#div_carousel_next_btn_hover').stop().animate({opacity: '1.0'}, 200);        
  }, 
  function () {
    $(this).children('#div_carousel_next_btn_hover').stop().animate({opacity: '0.0'}, 400);
  });  



  $("#div_btn_next_search").hover(
  function () {      
    $(this).children('#div_btn_next_search_hover').stop().animate({opacity: '1.0'}, 200);        
  }, 
  function () {
    $(this).children('#div_btn_next_search_hover').stop().animate({opacity: '0.0'}, 400);
  });  
  
  
  $(".div_next_10_my").hover(
  function () {      
    $(this).children('#div_btn_next_search_hover').stop().animate({opacity: '1.0'}, 200);        
  }, 
  function () {
    $(this).children('#div_btn_next_search_hover').stop().animate({opacity: '0.0'}, 400);
  }); 

  $(".span_new_line").hover(
  function () {      
    $(this).stop().animate({color: '#000'}, 200);        
  }, 
  function () {
    $(this).stop().animate({color: '#5a5a5a'}, 400);
  });    
  
  $(".div_selection_item_row_1 a").hover(
  function () {      
    $(this).stop().animate({color: '#000'}, 200);        
  }, 
  function () {
    $(this).stop().animate({color: '#5a5a5a'}, 400);
  });    
  
  $(".div_selection_item_row_2 a").hover(
  function () {      
    $(this).stop().animate({color: '#000'}, 200);        
  }, 
  function () {
    $(this).stop().animate({color: '#5a5a5a'}, 400);
  }); 
  
  $(".nav_top").hover(
  function () {      
    $(this).stop().animate({color: '#383838'}, 200);        
  }, 
  function () {
    $(this).stop().animate({color: '#5d8306'}, 400);
  });   
  
  $(".div_selection_item_nadpis a").hover(
  function () {      
    $(this).stop().animate({color: '#383838'}, 200);        
  }, 
  function () {
    $(this).stop().animate({color: '#5d8306'}, 400);
  });  

  

  
  
});

