//calcula centro da tela
var left = ((window.screen.width-778)/2)-10;
var posicaoTabela = '<div id="pTable" style="position:absolute; left:'+left+'px; border:none; top:0px; bottom:0px; width:778px; height:100%; z-index:1">';

// function reload if resize
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();
}

// preload function
function preload(image) {
	eval(image+"_0 = new Image()");	eval(image+"_0.src = '/images/nav/nav_"+image+".gif'");
	eval(image+"_1 = new Image()");	eval(image+"_1.src = '/images/nav/nav_"+image+"_over.gif'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// drop-down menus
var menus = [
	new ypSlideOutMenu("menuEmpresa", "down", 300, 198, 155, 60),
	new ypSlideOutMenu("menuProdutos", "down", 388, 198, 140, 115),
	new ypSlideOutMenu("menuServicos", "down", 473,198, 150, 97),
	new ypSlideOutMenu("menuRepresentantes", "down", 556,198, 153, 120),
	new ypSlideOutMenu("menuContatos", "down", 673,198, 104, 78)
	];
// page variables
nav = new Array("empresa","produtos","servicos","representantes","contatos");
for (i = 0; i < nav.length; i++) preload(nav[i]);

var iTopMenu = '<DIV id=menuEmpresaContainer><DIV class=menu id=menuEmpresaContent><DIV class=options><A href="historico_triches.html">Histórico da Empresa</A><A href="qualidadeISO.html">Politica da Qualidade</A><A href="mapa_acesso.html">Mapa de Acesso</A></DIV></DIV></DIV><DIV id=menuProdutosContainer><DIV class=menu id=menuProdutosContent><DIV class=options><A href="prod_tubos.html">Tubos de Aço</A><A href="prod_chapas.html">Chapas de Aço</A><A href="prod_telhas_zinc.html">Telhas Zincadas</A><A href="prod_telhas_cinc.html">Telhas Cincalum</A><A href="prod_slitter.html">Fitas de Aço</A><A href="prod_perfis.html">Perfis Estruturais</A></DIV></DIV></DIV><DIV id=menuServicosContainer><DIV class=menu id=menuServicosContent><DIV class=options><A href="serv_corte_transv.html">Corte Transversal</A><A href="serv_corte_long.html">Corte Longitudinal</A><A href="serv_tubos.html">Fabricação de Tubos</A><A href="serv_telhas.html">Fabricação de Telhas</A><A href="serv_perfis.html">Fabricação de Perfis</A></DIV></DIV></DIV><DIV id=menuRepresentantesContainer><DIV class=menu id=menuRepresentantesContent><DIV class=options><A href="rep_reg_sul.html">Região Sul</A><A href="rep_reg_sudeste.html">Região Sudeste</A><A href="rep_reg_coeste.html">Região Centro Oeste</A><A href="rep_reg_norte.html">Região Norte</A><A href="rep_reg_nordeste.html">Região Nordeste</A><A style="BORDER-TOP: silver 1px solid" href="seja_representante.html">Seja Representante</A></DIV></DIV></DIV><DIV id=menuContatosContainer><DIV class=menu id=menuContatosContent><DIV class=options><A href="sol_orcamento.html">Orçamentos</A><A style="BORDER-TOP: silver 1px solid" href="depto_comercial.html">Dp.Comercial</A><A href="depto_industrial.html">Dp.Industrial</A><A href="depto_financeiro.html">Dp.Financeiro</A></DIV></DIV></DIV>';