 

//window.onload=montre;

var menutime;


function montre(id,exception) {
	//alert("montre "+id+" ex."+exception);
	clearTimeout(menutime);
	var d = document.getElementById(id);
	hideall();
	if (d) d.style.display='block';
}

function hideall(exception) {
	//alert("hideall  ex."+exception);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i) && exception!=i) {document.getElementById('smenu'+i).style.display='none';}
	}
	
	if (exception && document.getElementById('smenu'+exception)) {
		if (document.getElementById('current')) {
			document.getElementById('current').className='lightbg';
			}
		
		document.getElementById('smenu'+exception).style.display='block';
		
		}
	 
}

function menuquit(exception) {
	//alert("quit "+exception)
	menutime = window.setTimeout("hideall("+exception+")",750);
	}

function menuover() {
	clearTimeout(menutime);
}

 
 