$(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			 
			});
		}
		
	function effect(var1){
		if(var1==1){
			$("#sousMenu").stop(true).animate({'height':170+'px', 'opacity':0.95},300);
		}
		else{
			$("#sousMenu").stop(true).animate({'height':0+'px', 'opacity':0.1},300);
		}
	}
	
	$("#menu .element2 a").hover(
      function () {
		effect(1)
      }, function () {
		effect(0)
      }
    );	
	$("#sousMenu").hover(
      function () {
		effect(1)        
      }, function () {
		effect(0)
      }
    );
});

$(function(){
   $('#logo, #francais, #allemand, .clic').hover(function() { //mouse in
   		$(this).stop().animate({ opacity: '0.75' }, 250);
   }, function() { //mouse out
    	$(this).stop().animate({ opacity: '1' }, 250);
   });   
});
