/***************************************************************/
/*
/*
/*
/*
/***************************************************************/

//Appel du plugin jquery color
$.ajax({
	//url: "js/coloranimation.js",
	//dataType: "script",
	//async: false,
	//success: function(js){if(jQuery.browser.safari){eval(js);}}
});


$(document).ready(function(){ //Définir la fonction de clic
	 $('.fondu').css('display','block');		 
	 setTimeout("Timer()",1200);
	 $('.fondu').animate({'opacity':0.1},1100);

	//Changer le comportement hover au survol
   $('.clic').hover(function() { //mouse in
		$(this).css({
			'cursor':'pointer'
		});
		if(!jQuery.support.opacity) {
			/*$(this).stop();
			$(this).stop().animate(
				{ 
					
			}, 200);*/
			
			$(this).css({
					'overflow':'visible'
									});
			
			$(this).fadeTo(200,0.6);
		}
		else {
			$(this).stop().animate(
				{ 
				
				'opacity':0.6
			}, 200);
		}

   }, function() { //mouse out
   		if(!jQuery.support.opacity) {
			/*$(this).stop();
			$(this).stop().animate(
	  			{ 
				
				}, 200);*/
			$(this).fadeTo(200,1);
		}
		else {
			$(this).stop().animate(
				{ 
				
				'opacity':1
			}, 200);
		}
   });
   
   function effect(var1){
  if(var1==1){
   $(".ss_menu1").stop(true).animate({'height':220+'px'},300);
  }
  else{
   $(".ss_menu1").stop(true).animate({'height':0+'px'},300);
  }
 }
 
 
   function effect2(var2){
  if(var2==1){
   $(".ss_menu2").stop(true).animate({'height':220+'px'},300);
  }
  else{
   $(".ss_menu2").stop(true).animate({'height':0+'px'},300);
  }
 }

  function effect5(var5){
  if(var5==1){
   $(".ss_menu5").stop(true).animate({'height':220+'px'},300);
  }
  else{
   $(".ss_menu5").stop(true).animate({'height':0+'px'},300);
  }
 }
 
 function effect6(var6){
  if(var6==1){
   $(".ss_menu6").stop(true).animate({'height':220+'px'},300);
  }
  else{
   $(".ss_menu6").stop(true).animate({'height':0+'px'},300);
  }
 }
 


 
 $(".ss_menu1").hover(
      function () {
  effect(1)
      }, function () {
  effect(0)
      }
    ); 
 $("#menu1").hover(
      function () {
  effect(1)        
      }, function () {
  effect(0)
      }
    );
 
 
 
 $(".ss_menu2").hover(
      function () {
  effect2(1)
      }, function () {
  effect2(0)
      }
    ); 
 $("#menu2").hover(
      function () {
  effect2(1)        
      }, function () {
  effect2(0)
      }
    );


$(".ss_menu5").hover(
      function () {
  effect5(1)
      }, function () {
  effect5(0)
      }
    ); 
 $("#menu5").hover(
      function () {
  effect5(1)        
      }, function () {
  effect5(0)
      }
    );
 
$(".ss_menu6").hover(
      function () {
  effect6(1)
      }, function () {
  effect6(0)
      }
    ); 
 $("#menu6").hover(
      function () {
  effect6(1)        
      }, function () {
  effect6(0)
      }
    );


 

 

   
   
   $(function(){
   
   $('.anim_encart').hover(function() { 
								   
   $(this).stop().animate({ right: '0' }, 500);
   
   }, function() { 
   
    $(this).stop().animate({ right: '-200' }, 500);

   });
   
   });
   
   
   
   
   $("div.panel_button").click(function(){
		$("div#panel").animate({
			height: "130px"
		})
		.animate({
			height: "120px"
		}, "fast");
		$("div.panel_button").toggle();
	});	

   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
   });
   
   
         
 });



function Timer() {
   $('.fondu').stop().css('display','none');
}

