$(document).ready(function () {
	var left = $("#menu-left").height()+80;
	var div = $("#center-middle").attr("name");
	if (div) while(div.indexOf(".")>-1){div=div.replace(".","")}
	var centre = $("#"+div).height()+$("#liste-formation").height();
	/*alert("Right : "+$("#right").height());
	alert("Centre : "+centre);
	alert("Left : "+left);*/
	if( centre > $("#right").height() && centre > left ){
		$("#footer").css("margin-top",9);
	}
	else
	{
		if( $("#right").height() > left ){
			$("#footer").css("margin-top",($("#right").height()-centre)+5);
		}
		else{
			$("#footer").css("margin-top",(left-centre));
		}
	}
		
	$("#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").live("click", function(){
		document.recherche.submit("recherche.html");
	});
	
	$("#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); 
}

