// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

activerMenu = function(nav) {
	if (document.all && document.getElementById(nav).currentStyle) {  
		var navroot = document.getElementById(nav);
        var lis=navroot.getElementsByTagName("LI");
		for (i=0; i<lis.length; i++) {
            if(lis[i].lastChild.tagName=="UL"){
             	lis[i].onmouseover=function() {		
				   //cause un léger problème de performance quand on survole rapidement le contenu du sous-menu
				   if(this.className != "onglet_actif") this.className = "onglet_survol";
				   //
				   this.lastChild.style.visibility="visible";
				   cacherLesChampsSelect();
      			}
				lis[i].onmouseout=function() {  
				   //cause un léger problème de performance quand on survole rapidement le contenu du sous-menu
					if(this.className != "onglet_actif") this.className = "";
					//
					this.lastChild.style.visibility="hidden";
					afficherLesChampsSelect();
				}
            }
		}
	}
}

/* I do this differently on the test page to fix a problem float container problem in IE5 Mac*/
/*Uncomment the function below*/
window.onload= function(){
	activerMenu('menu_principal');
	onclickQuestion();
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0  
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  
	if (restore) selObj.selectedIndex=0;
}
