$(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).find('img').stop().animate({ opacity: '0' }, 250);
  	}, function() { //mouse out
    	$(this).find('img').stop().animate({ opacity: '1' }, 250);
   	});
	
	$('#footer_frame').css({'height':'3px'});
	$('#footer_frame').hover(function() { //mouse in
   		$(this).stop().animate({ 'height': '195px' }, 333);
  	}, function() { //mouse out
    	$(this).stop().animate({ 'height': '3px' }, 333);
   	});
	
	$('ul#portfolio').innerfade({
		speed: 1000,
		timeout: 3000,
		type: 'sequence',
		containerheight: 	'auto',
		slide_timer_on: 	'yes',
		slide_ui_parent: 	'portfolio',
		slide_ui_text:		'null'
	});
	$.setOptionsButtonEvent();	

	 function equalHeight(group) {
	  var tallest = 0;
	  group.each(function() {
	   var thisHeight = $(this).height()
	   if(thisHeight > tallest) {
		tallest = thisHeight;
	   }
	  });
	  group.height(tallest);
	 }
	 equalHeight($(".fiche a"));

});


      

