var timeout; //ne pas toucher, c'est pour déclarer la variable
var blnOk=true;
var nbmenu=10;var delai=400; // en milliseconde

function MontrerMenu(strMenu) {
	if(blnOk) {
		AnnulerCacher();
		CacherMenus();
		if (document.getElementById(strMenu))//undefined
			with (document.getElementById(strMenu).style)
				display='block';
	}
}
function CacherDelai() {
	if (blnOk) {
		timeout = setTimeout('CacherMenus()',delai);
	}
}
function AnnulerCacher() {
	if (blnOk && timeout) {
		clearTimeout(timeout);
	}
}
function CacherMenus() {
	if(blnOk) {
		for(i=1;i<=nbmenu;i++) {
			if (document.getElementById("smenu"+i))//undefined
				with(document.getElementById("smenu"+i).style)
					display='none';
		}
	}
}








