window.onload=function()
{ dynMenu("menu",500,1500)
cachetout();}
dynMenu = function(idMenu,delai_in,delai_out)
{ timeout=0; Menu=document.getElementById(idMenu); dls = Menu.getElementsByTagName("dl"); dds = Menu.getElementsByTagName("dd"); alist = Menu.getElementsByTagName("a"); temporisation_in=false; if (dds)
{ for (var i=0;i<dls.length;i++)
{ dls[i].onmouseover=function()
{ ElmtMenu=this.getElementsByTagName("a")[0]; clearTimeout(timeout); smenu=this.getElementsByTagName("dd")[0]; ElmtMenu.style.backgroundPosition='0 -20px'; ElmtMenu.style.backgroundRepeat='no-repeat'; if (temporisation_in == true)
{ timeout=setTimeout("montre()",delai_in);}
else
{ timeout=setTimeout("montre()",0);}
}
}
}
Menu.onmouseout=function()
{ clearTimeout(timeout); ElmtMenu.style.backgroundPosition='0 0'; ElmtMenu.style.backgroundRepeat='no-repeat'; timeout=setTimeout('cachetout()',delai_out);}
dls[0].onmouseover=function()
{ ElmtMenu=this.getElementsByTagName("a")[0]; clearTimeout(timeout); ElmtMenu.style.backgroundPosition='0 -20px'; ElmtMenu.style.backgroundRepeat='no-repeat'; if (temporisation_in == true)
{ timeout=setTimeout("montre2()",delai_in);}
else
{ timeout=setTimeout("montre2()",0);}
}
dls[0].onmouseout=function()
{ if (temporisation_in=true)
{ timeout=setTimeout("cachetout()",delai_in);}
}
}
function cachetout()
{ for (var j=0;j<dds.length;j++)
{ dds[j].style.display="none";}
temporisation_in=false;}
function montre()
{ cachetout(); smenu.style.display="block"; temporisation_in=true;}
function montre2()
{ cachetout(); temporisation_in=true;}

function ouvre_popup(nUrl,largeur,hauteur)
{
	if (navigator.userAgent.indexOf("Opera") != -1)
	{
		var winl = (window.innerWidth) ? (window.innerWidth-largeur)/2 : 0;
		var wint = (window.innerHeight) ? (window.innerHeight-hauteur)/2 : 0;
	}
	else
	{
		var winl = (screen.width) ? (screen.width-largeur)/2 : 0;
		var wint = (screen.height) ? (screen.height-hauteur)/2 : 0;
	}
	var options = ((hauteur && largeur) ? 'width='+ largeur +',height='+ hauteur +',top='+wint+',left='+winl+',' : '') +
	'toolbar=0, location=0, directories=0, status=0, scrollbars=' + (largeur == 270 ? 0 :1) +', resizable=no, copyhistory=0, menuBar=0';	
	if (window.neo && neo.closed == false)
		window.neo.close();
	neo=window.open(nUrl,"nom_popup",options);
}