function hideallMenu(id)
{
	var navroot = document.getElementById(id);
	if ( ! navroot ) return; 
	var li = navroot.getElementsByTagName("LI");
	for ( var i = 0; i < li.length; i++ ) {
		var actif = li[i].className.indexOf("actif");
		if ( actif >= 0 ) 
			li[i].className = li[i].className.substr(0,actif);
	}
}


function showMenu(alt)
{
	if ( ! alt )
		return;

	if ( alt.className.indexOf("actif") < 0 )
		alt.className += " actif";
}


function initMenu(id)
{
	var navroot = document.getElementById(id);
	if ( ! navroot ) return; 
	
	var li = navroot.getElementsByTagName("LI");
	for ( var i = 0; i < li.length; i++ ) {
		var ul = li[i].getElementsByTagName("UL");
		if ( ul.length > 0 ) {
			li[i].onmouseover = function() {

				if ( this.className.indexOf("actif") < 0 ) {
					hideallMenu(id);
					showMenu(this);
				}
			}
		}
	}
	
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function abre(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
