﻿// JScript File
// codigo do menu

function abrirlogin() {
	document.getElementById("loginaberto").style.visibility = ""
	document.getElementById("loginfechado").style.visibility = "hidden"
}


function fecharsub() {
	
	document.getElementById("novidades2").style.visibility = "hidden"
	document.getElementById("novidades1").style.background = "none"
	document.getElementById("novidades1").style.color = "#777777"
	
	document.getElementById("produtos2").style.visibility = "hidden"
	document.getElementById("produtos1").style.background = "none"
	document.getElementById("produtos1").style.color = "#777777"

	document.getElementById("empresa2").style.visibility = "hidden"
	document.getElementById("empresa1").style.background = "none"
	document.getElementById("empresa1").style.color = "#777777"

// Abre e ativa login
	document.getElementById("login1").style.visibility = "visible"

	}

function abrirsub(page1) {
	fecharsub();
	
// Fecha e desativa login
	document.getElementById("login1").style.visibility = "hidden"
	
	
	var menuobj2 = document.getElementById(page1+"2")
	var menuobj1 = document.getElementById(page1+"1")
	menuobj2.style.visibility = "visible"
	menuobj1.style.background = "transparent url('1/ico/sel1.gif') no-repeat"
	menuobj1.style.color = "#99cc00"
}


// Abrir nova janela para admin
function abrejanela1(endereco){
	cyber=window.open(endereco, "conexao1", "toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,height=520,width=700,top=20,left=20")
}
function imagem1(id) {
	cyber=window.open("imagem1.asp?id="+id, "conexao2", "toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,height=520,width=700,top=20,left=20")

}