$(document).ready(function() {
	//document.getElementById('NL_box').innerHTML="<span>Inscrivez-vous</span> à notre lettre d'information";
	$("a.thickbox, a[rel='lightbox']").fancybox({'hideOnContentClick': false,imageScale : true}); 
	$("a#box_ami").fancybox({frameWidth : 300,frameHeight : 200}); 
	if(document.all){$("a#box_fav").click(function(){window.external.AddFavorite(location.href, document.title);});
	}else{$("a#box_fav").fancybox({'hideOnContentClick': true,frameWidth : 400,frameHeight : 100});}
			
	
	$('#logo').hover(
	function() { //mouse in
   		$(this).stop().fadeTo(250,'0.8');
  	}, function() { //mouse out
    	$(this).stop().fadeTo(250,'1');
   	}
	);
	
 
    $("#textederoulantA").click(function () {
		cacher();
      if ($(".magic:first").is(":hidden")) {
        $(".magic").show("slow");
      } else {
	  	$(".magic").slideUp();
      }
    });

 
    $("#textederoulantB").click(function () {
		cacher();
      if ($(".magic1:first").is(":hidden")) {
        $(".magic1").show("slow");
      } else {
	  	$(".magic1").slideUp();
      }
    });
	
	$("#textederoulantC").click(function () {
		cacher();
      if ($(".magic2:first").is(":hidden")) {
        $(".magic2").show("slow");
      } else {
	  	$(".magic2").slideUp();
      }
    });
	
	$("#textederoulantD").click(function () {
		cacher();
      if ($(".magic3:first").is(":hidden")) {
        $(".magic3").show("slow");
      } else {
	  	$(".magic3").slideUp();
      }
    });
	
	$("#textederoulantE").click(function () {
		cacher();
      if ($(".magic4:first").is(":hidden")) {
        $(".magic4").show("slow");
      } else {
	  	$(".magic4").slideUp();
      }
    });
	
	$("#textederoulantF").click(function () {
		cacher();
      if ($(".magic5:first").is(":hidden")) {
        $(".magic5").show("slow");
      } else {
	  	$(".magic5").slideUp();
      }
    });
	
	$("#textederoulantG").click(function () {
		cacher();
      if ($(".magic6:first").is(":hidden")) {
        $(".magic6").show("slow");
      } else {
	  	$(".magic6").slideUp();
      }
    });
	
	$("#textederoulantH").click(function () {
		cacher();
      if ($(".magic7:first").is(":hidden")) {
        $(".magic7").show("slow");
      } else {
	  	$(".magic7").slideUp();
      }
    });
	
	$("#textederoulantI").click(function () {
		cacher();
      if ($(".magic8:first").is(":hidden")) {
        $(".magic8").show("slow");
      } else {
	  	$(".magic8").slideUp();
      }
    });

	  function cacher(){
	  	if ($(".jcontent").is(":visible")) {$(".jcontent").slideUp();}
	  }
	
});



      

