function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


var values;

//ActiveX fix
objects = document.getElementsByTagName("object"); 
for (var i = 0; i < objects.length; i++) 
{ 
    objects[i].outerHTML = objects[i].outerHTML; 
}
	 
/////////////////////////// Menu chama.....	

	 //HOME
	 function getHome(){ 
	 parent.document.getElementById('dados').src="./setup/home.asp"; }

	 //EMPRESA
	 function getEmpr(){ 
	 parent.document.getElementById('dados').src="./htm/empresa.htm"; }
		
     //CONTACTOS
	 function getCont(){ parent.document.getElementById('dados').src="./htm/contactos.htm"; }

     //NOVIDADES
	 function getNews(){ parent.document.getElementById('dados').src="./setup/novidades.asp?id=76"; }

 	 // NOVIDADE (ID)
	 function getNovidade(id){ 
		parent.document.getElementById('dados').src="./SETUP/novidades.asp?id=76&idNot=" + id;}
	 
	 //FEIRAS
	 function getFeiras(){ parent.document.getElementById('dados').src="./setup/novidades.asp?idCatFilho=83"; }
	 
     //PRODUTOS
	 function getProd(){ parent.document.getElementById('dados').src="./setup/catalogo.asp"; }	

 //CATÁLOGO
	 function getCat(){ parent.document.getElementById('dados').src="./htm/catalogo.htm"; }
	 
//Encomendas
	 function getEncomenda(){ parent.document.getElementById('dados').src="./htm/encomenda.htm"; }
	 
	 //AREA CLIENTES
	 function getClient(){ 
	 parent.document.getElementById('dados').src="./htm/pesquisa_resultados.htm"; }
 
 	//AREA CLIENTES PEDIDO DE ACESSO
	 function getCat(){ 
	 parent.document.getElementById('dados').src="./htm/catalogo.htm";}
	 	 
	 //ACESSO RESERVADO
	 function getAcReserv(){ 
	 
	 
		username = document.form1.username.value;
		password = document.form1.password.value;
		login = document.form1.login.value;
		
		parent.document.getElementById('dados').src="./catalogoSite.asp?username=" + username + "&password=" + password + "&login=" + login ; }

function getLogin(){
	 
		parent.document.getElementById('login').src="./loginCatalogo.asp?showUser=true"; }
	 
	