var aceitaDHTML=0;var aceitaLayers=0;var aceitaAll=0;var aceitaID=0;var InternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;if(document.getElementById){aceitaID=1;aceitaDHTML=1;}
else{if(document.layers){aceitaLayers=1;aceitaDHTML=1;}
else{if(document.all){aceitaAll=1;aceitaDHTML=1;}}}
function findDOM(Objecto,Estilo){if(Estilo==1){if(aceitaID){return(document.getElementById(Objecto).style);}
else{if(aceitaAll){return(document.all[Objecto].style);}
else{if(aceitaLayers){return(document.layers[Objecto]);}};}}
else{if(aceitaID){return(document.getElementById(Objecto));}
else{if(aceitaAll){return(document.all[Objecto]);}
else{if(aceitaLayers){return(document.layers[Objecto]);}};}}}
function esconde(Objecto){var meuobjecto=findDOM(Objecto,1);meuobjecto.position="absolute";meuobjecto.visibility="hidden";}
function mostral(subm){subm.style.display='';subm.style.visibility='visible';subm.style.overflow='hidden';subm.style.height=10;}
function escondel(subm){subm.style.display='none';subm.style.visibility='hidden';subm.style.overflow='hidden';}
function mostramenu1(subm){subm.style.display='';subm.style.visibility='visible';subm.style.position='relative';if(parseInt(subm.style.height)<60){subm.style.height=parseInt(subm.style.height)+1;expandir=setTimeout("mostramenu1(ponto1)",5);}}
function mostrasub1(subm){subm.style.display='';subm.style.visibility='visible';subm.style.overflow='hidden';subm.style.height=60}
function escondemenu1(subm){subm.style.visibility='visible';subm.style.overflow='hidden';if(parseInt(subm.style.height)>1){subm.style.height=parseInt(subm.style.height)-1;expandir=setTimeout("escondemenu1(ponto1)",1);}}
function mostramenu2(subm){subm.style.display='';subm.style.visibility='visible';subm.style.overflow='hidden';if(parseInt(subm.style.height)<30){subm.style.height=parseInt(subm.style.height)+1;expandir2=setTimeout("mostramenu2(submenu2)",10);}}
function mostrasub2(subm){subm.style.display='';subm.style.visibility='visible';subm.style.overflow='hidden';subm.style.height=30}
function escondemenu2(subm){subm.style.visibility='visible';subm.style.overflow='hidden';if(parseInt(subm.style.height)>1){subm.style.height=parseInt(subm.style.height)-1;expandir2=setTimeout("escondemenu2(submenu2)",10);}}
function mostramenu6(subm){subm.style.display='';subm.style.visibility='visible';subm.style.overflow='hidden';if(parseInt(subm.style.height)<30){subm.style.height=parseInt(subm.style.height)+1;expandir6=setTimeout("mostramenu6(submenu6)",10);}}
function escondemenu6(subm){subm.style.visibility='visible';subm.style.overflow='hidden';if(parseInt(subm.style.height)>1){subm.style.height=parseInt(subm.style.height)-1;expandir6=setTimeout("escondemenu6(submenu6)",10);}}
function largura_janela(){if(e4==true){return(document.body.clientWidth);}
else{return(window.innerWidth-1);}}
n4=(document.layers)?true:false
e4=(document.all)?true:false
var win=null;function novo_pop(pagina,titulo,largura,altura,scroll,posicao){if(posicao=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-largura)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-altura)-75)):100;}
if(posicao=="center"){LeftPosition=(screen.width)?(screen.width-largura)/2:100;TopPosition=(screen.height)?(screen.height-altura)/2:100;}
else if((posicao!="center"&&posicao!="random")||pos==null){LeftPosition=0;TopPosition=20}
settings='width='+largura+',height='+altura+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';win=window.open(pagina,titulo,settings);}
function restaura(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function procura(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=procura(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function troca(){var i,j=0,x,a=troca.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=procura(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function preload_imagens(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=preload_imagens.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
