function doPreload() {
							  
	MM_preloadImages("images/m_contactos.gif", "images/m_contactos_h.gif", 
							  "images/m_catalogo.gif", "images/m_catalogo_h.gif",
							  "images/m_empresa.gif", "images/m_empresa_h.gif",
							  "images/m_localizacao.gif", "images/m_localizacao_h.gif",
							  "images/m_referencias.gif", "images/m_referencias_h.gif",
							  "images/bg_topo.jpg", "images/foto_inicio.gif");
}

function mEvent(Id, lnk, iEvent)
{
	if (iEvent==1) document.getElementById(Id).innerHTML="["+ lnk +"]";
	else document.getElementById(Id).innerHTML=lnk;
}
	
function SetMainMenu (ID){
	var sMenu;
	sMenu="<div>";
	sMenu+='<span class="simple" id="empresa.html">Empresa</span>';
    sMenu+='</div><div>';
    sMenu+='<span>Produtos</span>';
	sMenu+='<a class="sub" href="prod_prfv.html">PRFV</a>';
	sMenu+='<a class="sub" href="prod_arm_liq_0.html">Armazenamento de Líquidos</a>';
	sMenu+='<a class="sub" href="prod_aguas_res_dom.html">Trat. águas resid. domésticas</a>';
	sMenu+='<a class="sub" href="prod_silos.html">Silos</a>';
	sMenu+='<a class="sub" href="prod_pultrudidos.html">Pultrudidos</a>';
	//sMenu+='<a class="sub" href="#">_Tinas de retenção</a>';
	//sMenu+='<a class="sub" href="prod_acessorios.html">Acessórios</a>';
	sMenu+='<a class="sub" href="prod_revestimentos.html">Revestimentos</a>';	
    sMenu+='</div><div>';
	sMenu+='<span class="simple" id="glossario.html">Glossário</span>';
    sMenu+='</div><div>';
    sMenu+='<span class="simple" id="fichaprodutos.html">Ficha de Produtos</span>';
    sMenu+='</div><div>';
    sMenu+='<span class="simple" id="galeria1.html">Galeria</span>';
    sMenu+='</div><div>';
    sMenu+='<span class="simple" id="garantias.html">Garantias</span>';
    sMenu+='</div><div>';
    sMenu+='<span class="simple" id="certificados.html">Qualidade</span>';
    sMenu+='</div><div>';
    sMenu+='<span class="simple" id="contactos.html">Contactos</span>';
    sMenu+='</div>';	
	document.getElementById(ID).innerHTML=sMenu;
}
function ProductDetails(sProd){
	if (sProd=='vr') window.open('prod_arm_liq_vr.html','_self');
	else if (sProd=='vcs') window.open('prod_arm_liq_vcs.html','_self');
	else if (sProd=='filtro') window.open('prod_arm_liq_filtro.html','_self');
	else if (sProd=='vcp') window.open('prod_arm_liq_vcp.html','_self');
	else if (sProd=='cet') window.open('prod_arm_liq_cet.html','_self');
	else if (sProd=='cct') window.open('prod_arm_liq_cct.html','_self');
	else if (sProd=='vra') window.open('prod_arm_liq_vra.html','_self');
	else if (sProd=='vcsa') window.open('prod_arm_liq_vcsa.html','_self');
	else if (sProd=='hcp') window.open('prod_arm_liq_hcp.html','_self');
	else if (sProd=='hss') window.open('prod_arm_liq_hss.html','_self');
	else if (sProd=='tc_tci_cel_cil') window.open('prod_arm_liq_tc_tci_cel_cil.html','_self');
}
function ShowImage2(image)
{
	var html = "<HTML><HEAD><title>.: PALVIDRO :.</title><LINK REL=stylesheet HREF=\"css/styles.css\"></HE" + "AD>";
	html += "<center>";
	html += "<img border=\"0\" onclick=\"window.close();\" src=\"" + image + "\" style=\"border:#000000 1px solid;cursor:pointer;\"><br><br>";
	html += "<span class=\"cContext\">Clique na imagem para fechar a janela.</span>";
	html += "</center></BO" + "DY></HT" + "ML>";
	var printWin = window.open("","","scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=700,height=650");
	printWin.document.open();
	printWin.document.write(html);
	printWin.document.close();
}
function ShowImage3(image)
{
	window.open("gal_sequence.html?"+image,"","scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=700,height=650");
}
function ShowImage1(image)
{
	var html = "<HTML><HEAD><title>.: PALVIDRO :.</title><LINK REL=stylesheet HREF=\"css/styles.css\"></HE" + "AD>";
	html += "<center>";
	html += "<img border=\"0\" onclick=\"window.close();\" src=\"" + image + "\" style=\"border:#000000 1px solid;cursor:pointer;\"><br><br>";
	html += "<span class=\"cContext\">Clique na imagem para fechar a janela.</span>";
	html += "</center></BO" + "DY></HT" + "ML>";
	var printWin = window.open("","","scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=450,height=320");
	printWin.document.open();
	printWin.document.write(html);
	printWin.document.close();
}
function PopupWindow (sLink) {
	window.open(sLink,"","scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=1,resizable=0,width=650,height=460");
}
