$(document).ready(function () {
	var tmp = $("#menu-left").height()+85;
	/*alert("Right : "+$("#right").height());
	alert("Centre : "+$("#accueil").height());
	alert("Left : "+tmp);*/
	if( $("#accueil").height() > $("#right").height() && $("#accueil").height() > tmp ){
		$("#footer").css("margin-top",9);
	}
	else
	{
		if( $("#right").height() > tmp ){
			$("#footer").css("margin-top",($("#right").height()-$("#accueil").height())+5);
		}
		else{
			$("#footer").css("margin-top",(tmp-$("#accueil").height())-23);
		}
	}
		
	/*$("#center-left ul li, #center-right ul li").prepend("<img src=\"img/marqueur-liste-microsoft.gif\" />");*/
	
	$("#recherche img").mousedown(function () {
		$(this).attr("src","img/btn-ok-recherche-over.gif");
	});
	
	$("#recherche img").mouseup(function () {
		$(this).attr("src","img/btn-ok-recherche-out.gif");
		
	});
	
	$("#recherche img").hover(function () {
		$(this).css("cursor","pointer");
	});
	
	$("#recherche img").click(function () {
		document.frm_recherche.submit();
	});
});

function aller_a(){
	window.open("http://"+document.frm_footer.autre_site.value); 
}
