$(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 replaceElement() {
		var c=$('#container').height();
			var h=(c+64)+'px';
			$('#footer_frame').css({'top':h});
	}
	
	replaceElement();
	
	$(window).resize(function() {
		replaceElement();						  
	});*/
	
	function replaceElement() {
		var b=$('body').height();
		var c=$('#container').height();
		if(b>c) {
			var h=(b-30)+'px';
			$('#container').css({'minHeight':h});
		}
	}
	
	replaceElement();
	
	$(window).resize(function() {
		replaceElement();						  
	});

});


      

