$(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});}
			
	$('.clic').hover(function() { //mouse in
   		$(this).stop().animate({ opacity: '0.75' }, 250);
  	}, function() { //mouse out
    	$(this).stop().animate({ opacity: '1' }, 250);
   	});
	$('#logo').hover(function() { //mouse in
   		$(this).find('img').stop().animate({ opacity: '0' }, 250);
  	}, function() { //mouse out
    	$(this).find('img').animate({ opacity: '1' }, 250);
   	});
	
	 function equalHeight(group) {
  		var tallest = 0;
  		group.each(function() {
   			var thisHeight = $(this).height();
   			if(thisHeight > tallest) {
    			tallest = thisHeight;
   			}
  		});
  		group.height(tallest);
 	}
 	equalHeight($('.fiche'));
	equalHeight($('.fiche2'));
});


      

