tms=new Array()

//Mostra o submenu no mouseover
function over(n){
	if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
	document.getElementById("s"+n).style.visibility="visible"
}
//Esconde o submenu no mouseout
function out(n){
	tms[n]=setTimeout('document.getElementById("s'+n+'").style.visibility="hidden"',5000)
}

function ativa_topo() {
	objFlash = '<object type="application/x-shockwave-flash" data="imagens/fotos_ani.swf" width="491" height="200">'
	objFlash += '<param name="movie" value="imagens/fotos_ani.swf" />'
	objFlash += '<param name="quality" value="high" />'
	objFlash += '<param name="wmode" value="transparent" />'
	objFlash += '</object>'
	
	$("flash").innerHTML = objFlash

}

// JavaScript Document

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;



var newwindow; 
var wheight = 0, wwidth = 0; 
function popitup5(url, title, iwidth, iheight) { 
var pwidth, pheight; 

if ( !newwindow ||newwindow.closed ) { 
pwidth=iwidth+0; 
pheight=iheight+0; 
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=5,left=10'); 
wheight=iheight; 
wwidth=iwidth; 
} 

if (wheight!=iheight ||wwidth!=iwidth ) { 
pwidth=iwidth+30; 
pheight=iheight+60; 
newwindow.resizeTo(pwidth, pheight); 
wheight=iheight; 
wwidth=iwidth; 
} 

newwindow.document.clear(); 
newwindow.focus(); 
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <META http-EQUIV="imagetoolbar" CONTENT="no"><\/head> <body bgcolor="#000" topmargin="0" leftmargin="0" marginheight="0"> <center>'); 
newwindow.document.writeln('<img src=' + url + '>'); 
newwindow.document.writeln('<\/center> <\/body> <\/html>'); 
newwindow.document.close(); 
newwindow.focus(); 
} 

// Routines to tidy up popup windows when page is left 
// Call with an onUnload="tidy5()" in body tag 

function tidy5() { 
if (newwindow && !newwindow.closed) { newwindow.close(); } 
} 


//alert(document.documentElement.clientHeight);

//script banner randomico
		function BannerRandomico(){
		var texto = new Array();
		texto[0] = "<img src='imagens/tit_missao.gif'><p>Prover soluções personalizadas no transporte aéreo, focadas na <strong>segurança</strong> e <strong>qualidade</strong> das operações, transparência nos negócios, rentabilidade nas atividades e respeito ao meio ambiente e bem estar de clientes e colaboradores.</p>"
		texto[1] = "<img src='imagens/tit_visao.gif'><p>Ser reconhecida por clientes e público em geral como padrão de excelência no seu segmento, considerando os aspectos de: <strong>Segurança das operações</strong>; <strong>Qualidade e eficiência</strong>; <strong>Responsabilidade social e ambiental</strong>; <strong>Rentabilidade</strong>.</p>"
		document.write(texto[parseInt("0"+(Math.random()*texto.length))]);
		}
