var temposet = ""
var temposetextra = ""
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function fechamenu(num) {
	obj2 = document.getElementById("sub"+num);
	obj2.style.display = "none"
	obj = document.getElementById("menu"+num);
	obj.className = "menu-out";
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function menuover(num) {
	for (i=1;i<8;i++) {
		fechamenu(i);
	}
	obj = document.getElementById("menu"+num);
    obj.className = "menu-over";
	obj2 = document.getElementById("sub"+num);
	obj2.style.display = "block"
	clearTimeout(temposet);
}
function menuout(num) {
	temposet = setTimeout('fechamenu('+num+')', 500);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function subover(num) {
	clearTimeout(temposet);
}
function subout(num) {
	temposet = setTimeout('fechamenu('+num+')', 500);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function subextraclosing() {
	for (i=1;i<8;i++) {
		obj3 = document.getElementById("subextra"+i);
		obj3.style.display = "none";
	}
}
function subextraclose() {
	subextraclosing();
}
function subextraopen(numextra) {
	subextraclosing();
	clearTimeout(temposetextra);
	obj3 = document.getElementById("subextra"+numextra);
	obj3.style.display = "block";
}
function subextraover(numextra) {
	clearTimeout(temposetextra);
}
function subextraout(numextra) {
	temposetextra = setTimeout('subextraclosing()', 500);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
