function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) 
			{document.getElementById('smenu'+i).style.display='none';}
		}
		if (d) {d.style.display='block';}
		}
var chiudi;

function nascondi() {
	if(chiudi) {
		clearTimeout(chiudi);
		chiudi = false;
	}
	chiudi = setTimeout("montre()",50);
}

function closse(dett) {
var a = document.getElementById(dett);
	for (var w = 1; w<=10; w++) {
		if (document.getElementById('secondo'+w)) 
			{document.getElementById('secondo'+w).style.display='none';}
		}
		if (a) {a.style.display='block';}
		}
var chiudi;

function nascondidett() {
	if(chiudi) {
		clearTimeout(chiudi);
		chiudi = false;
	}
	chiudi = setTimeout("closse()",50);
}