function MM_preloadImages() { var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0) { if (d.lv.value != '0') { d.last.style.display = 'none'; } d.area.style.display = 'block'; d.lv.value = div; } if (div == 'inicial') { gebi('newsrotativa').style.display = 'block'; } else { gebi('newsrotativa').style.display = 'none'; } if (div == 'produtos') { gebi('menuprods').style.display = 'block'; } else { gebi('menuprods').style.display = 'none'; } if (arquivo == 'local') { gebi('pmap').style.display = 'block'; } else { gebi('pmap').style.display = 'none'; } if (arquivo == 'news') { gebi('menunews').style.display = 'block'; } else { gebi('menunews').style.display = 'none'; } if ((d.area.innerHTML == "" && show > 0) || (show != 1)) { var ajax = XMLHTTPRequest(); ajax.open("GET", ("../links/"+arquivo+".php?op=" + action), true); ajax.onreadystatechange = function() { if (ajax.readyState == 1) { d.area.innerHTML = "

Carregando...
                   
"; } else if (ajax.readyState == 4) { if(ajax.responseText == false){ d.area.innerHTML = "
Erro: Arquivo inexistente.
"; }else{ d.area.innerHTML = ajax.responseText; //texto = unescape(ajax.responseText.replace(/\+/g," ")); texto = ajax.responseText; extraiScript(texto); } } } ; ajax.send(null); } } function conteudo(div,show,id) { gebi("temppage").innerHTML = ''; var d = { area: gebi(div), lv: gebi("last"), last: gebi(gebi("last").value) }; if (show > 0) { if (d.lv.value != '0') { d.last.style.display = 'none'; } d.area.style.display = 'block'; d.lv.value = div; } if (div == 'inicial') { gebi('newsrotativa').style.display = 'block'; } else { gebi('newsrotativa').style.display = 'none'; } if (div == 'produtos') { gebi('menuprods').style.display = 'block'; } else { gebi('menuprods').style.display = 'none'; } gebi('menunews').style.display = 'none'; gebi('pmap').style.display = 'none'; if ((d.area.innerHTML == "" && show > 0) || (show != 1)) { var ajaxCont = XMLHTTPRequest(); ajaxCont.open("GET", ("../conteudo.php?id=" + id), true); ajaxCont.onreadystatechange = function() { if (ajaxCont.readyState == 1) { d.area.innerHTML = "

Carregando...
                   
"; } else if (ajaxCont.readyState == 4) { if(ajaxCont.responseText == false){ d.area.innerHTML = "
Erro: Arquivo inexistente.
"; }else{ d.area.innerHTML = ajaxCont.responseText; //texto = unescape(ajax.responseText.replace(/\+/g," ")); texto = ajaxCont.responseText; extraiScript(texto); } } } ; ajaxCont.send(null); } } function popup(arquivo,janela,width,height,status) { window.open(arquivo, janela,'toolbar=0,scrollbars=0,location=0,status='+ status +',menubar=0,resizable=0,width='+width+',height='+height+',left = '+(screen.width - width)/2+',top = '+(screen.height - height)/2); } function popup2(arquivo,janela,width,height,scrolls) { window.open(arquivo, janela,'toolbar=0,scrollbars='+ scrolls +',location=0,status=0,menubar=0,resizable=0,width='+width+',height='+height+',left = '+(screen.width - width)/2+',top = '+(screen.height - height)/2); }