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

//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
	 $(".fleche6").hide();
	 $(".fleche7").hide();
	 $(".fleche8").hide();
	 $(".fleche9").hide();

	//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).fadeTo(200,1);
		}
		else {
			$(this).stop().animate(
				{ 
				'opacity':1
			}, 200);
		}
   });
   
  function effect0(var0){
  if(var0==1){
   $(".ss_menu0").stop(true).animate({'height':290+'px'},300);
  }
  else{
   $(".ss_menu0").stop(true).animate({'height':0+'px'},300);
  }
 }

   function effect(var1){
  if(var1==1){
   $(".ss_menu1").stop(true).animate({'height':208+'px'},300);
  }
  else{
   $(".ss_menu1").stop(true).animate({'height':0+'px'},300);
  }
 }
 
 
   function effect2(var2){
  if(var2==1){
   $(".ss_menu2").stop(true).animate({'height':208+'px'},300);
  }
  else{
   $(".ss_menu2").stop(true).animate({'height':0+'px'},300);
  }
 }
 
    function effect3(var3){
  if(var3==1){
   $(".ss_menu3").stop(true).animate({'height':208+'px'},300);
  }
  else{
   $(".ss_menu3").stop(true).animate({'height':0+'px'},300);
  }
 }


  function effect4(var4){
  if(var4==1){
   $(".ss_menu4").stop(true).animate({'height':208+'px'},300);
  }
  else{
   $(".ss_menu4").stop(true).animate({'height':0+'px'},300);
  }
 }

  function effect6(var6){
  if(var6==1){
   $(".ss_menu6").stop(true).animate({'height':130+'px'},300);
   $(".fleche6").show();
  }
  else{
   $(".ss_menu6").stop(true).animate({'height':0+'px'},300);
   $(".fleche6").hide();
  }
 }
 
   function effect7(var7){
  if(var7==1){
   $(".ss_menu7").stop(true).animate({'height':390+'px'},300);
   $(".fleche7").show();
  }
  else{
   $(".ss_menu7").stop(true).animate({'height':0+'px'},300);
   $(".fleche7").hide();
  }
 }

   function effect8(var8){
  if(var8==1){
   $(".ss_menu8").stop(true).animate({'height':500+'px'},300);
   $(".fleche8").show();
  }
  else{
   $(".ss_menu8").stop(true).animate({'height':0+'px'},300);
   $(".fleche8").hide();
  }
 }
 
    function effect9(var9){
  if(var9==1){
   $(".ss_menu9").stop(true).animate({'height':230+'px'},300);
   $(".fleche9").show();
  }
  else{
   $(".ss_menu9").stop(true).animate({'height':0+'px'},300);
   $(".fleche9").hide();
  }
 }


 
 $(".ss_menu0").hover(
      function () {
  effect0(1)
      }, function () {
  effect0(0)
      }
    ); 
 $("#menu0").hover(
      function () {
  effect0(1)        
      }, function () {
  effect0(0)
      }
    );

 
 $(".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_menu3").hover(
      function () {
  effect3(1)
      }, function () {
  effect3(0)
      }
    ); 
 $("#menu3").hover(
      function () {
  effect3(1)        
      }, function () {
  effect3(0)
      }
    );

 $(".ss_menu4").hover(
      function () {
  effect4(1)
      }, function () {
  effect4(0)
      }
    ); 
 $("#menu4").hover(
      function () {
  effect4(1)        
      }, function () {
  effect4(0)
      }
    );
 
 
  $(".ss_menu6").hover(
      function () {
  effect6(1)
      }, function () {
  effect6(0)
      }
    ); 
 $("#menu6").hover(
      function () {
  effect6(1)        
      }, function () {
  effect6(0)
      }
    );


  $(".ss_menu7").hover(
      function () {
  effect7(1)
      }, function () {
  effect7(0)
      }
    ); 
 $("#menu7").hover(
      function () {
  effect7(1)        
      }, function () {
  effect7(0)
      }
    );
 
   $(".ss_menu8").hover(
      function () {
  effect8(1)
      }, function () {
  effect8(0)
      }
    ); 
 $("#menu8").hover(
      function () {
  effect8(1)        
      }, function () {
  effect8(0)
      }
    );


  $(".ss_menu9").hover(
      function () {
  effect9(1)
      }, function () {
  effect9(0)
      }
    ); 
 $("#menu9").hover(
      function () {
  effect9(1)        
      }, function () {
  effect9(0)
      }
    );

/*$(".MenuHorizontal2 li div").hide();
 $(".MenuHorizontal2 li").mouseover(function () {
 $(this).children("div").stop().slideDown();
	  });
$(".MenuHorizontal2 li").mouseout(function () {
 $(".MenuHorizontal2 li div").stop().slideUp();
	  });*/

 });
