
/*function frteste() {
	if (document.location.pathname == top.document.location.pathname) {
		top.document.location.href = 'ndex.htm';
	}
}*/


function inicia() {
	for (ref = 0; ref < aba.length; ref++) {
		if (aba[ref][1]) {
			acao = "visible";
		} else {
			acao = "hidden";
		}
	document.getElementById(aba[ref][0]).style.visibility = acao;
	}
	document.onmouseup = fechatudo;
}

function mouseover(menu) {
	for (ref = 0; ref < aba.length; ref++) {
		document.getElementById(aba[ref][0]).style.visibility = "hidden";
	}
	document.getElementById(aba[menu][0]).style.visibility = "visible";
	aba[menu][2] = 1;
}

function clique(menu) {
	for (ref = 0; ref < aba.length; ref++) {
		document.getElementById(aba[ref][0]).style.visibility = "hidden";
	}
	if (aba[menu][2]) {
		document.getElementById(aba[menu][0]).style.visibility = "hidden";
		aba[menu][2] = 0;
	} else {
		document.getElementById(aba[menu][0]).style.visibility = "visible";
		aba[menu][2] = 1;
	}
}


function fechatudo() {
	for (ref = 0; ref < aba.length; ref++) {
		document.getElementById(aba[ref][0]).style.visibility = "hidden";
	}
}

function pop(menuName,mostra) {
		if (mostra) {
		document.getElementById(menuName).style.visibility = "visible";
		} else {
		document.getElementById(menuName).style.visibility = "hidden";
	}
}

t=0;

function tempo() {
	t=setTimeout("fechatudo()", 1200);
}

function para() {
	clearTimeout(t);
}
