function flash (url, wid, hei, trans) {
	if (trans) {
		trans1 ='<param name="Wmode" value="Transparent" />';
		trans2 = 'Wmode = "transparent"';
	} else {
		trans1 ='';
		trans2 = '';
	}
document.write ('<object classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" width="'+ wid +'" height="'+ hei +'"><param name="movie" value="'+ url +'" />'+trans1+'<embed src="'+ url +'" quality="high" '+trans2+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ wid +'" height="'+ hei +'"></embed></object>');
}
function EnviarMateria(url) {
	window.open('../ferramentas/enviar.asp?url='+url, '', 'location=no,menubar=no,directories=no,resizable=no,scrollbars=on,toolbar=no,status=no,width=374,height=260,left=50,top=30')
	}

function ImprimirMateria(url) {
	window.open(url, '', 'location=no,menubar=no,directories=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,width=500,height=400,left=50,top=30')
	}

function AjudaLogin() {
	window.open('../assinatura/ajudalogin.asp', '', 'location=no,menubar=no,directories=no,resizable=no,scrollbars=yes,toolbar=no,status=no,width=300,height=300,left=50,top=30')
	}

function RecupSenha() {
	window.open('../assinatura/recuperarsenha', '', 'location=no,menubar=no,directories=no,resizable=no,scrollbars=yes,toolbar=no,status=no,width=430,height=150,left=50,top=30')
	}

function AbreSetor() {
	var valor = document.menutopo.setor.selectedIndex
	window.location = document.menutopo.setor.options[valor].value
	}

function AbreConteudo() {
	var valor = document.menutopo.conteudo.selectedIndex
	window.location = document.menutopo.conteudo.options[valor].value
	}

function AbreServico() {
	var valor = document.menutopo.servicos.selectedIndex
	window.location = document.menutopo.servicos.options[valor].value
	}

// PopUp
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}
descarray = new Array(
"Fale conosco",
"Mapa do Site",
"Busca no Site",
"Opinião do Leitor",
"</center><font color='#FF0000'>::</font>&nbsp;<a href='../institucional/entendaoglobal21.asp'>Entenda o Global 21</a><br><font color='#FF0000'>::</font>&nbsp;<a href='../institucional/quemsomos.asp'>Quem Somos</a><br><font color='#FF0000'>::</font>&nbsp;<a href='../institucional/missao.asp'>Missão</a>"
);
overdiv="0";
function popLayer(a){
if(!descarray[a]){descarray[a]="<font color=red>Este popup (#"+a+") está errado!</font>";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
else {pad="1"; bord="0";}
desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=#000000><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=#FFFFFF><center><font size=1>\n"
	+descarray[a]
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	document.object1.left=x+10;
	document.object1.top=y+15;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+10;
	object1.style.pixelTop=y+15;
	teste.innerHTML=desc;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+10;
	document.getElementById("object1").style.top=y+15;
	}
}
function hideLayer(){
if (overdiv == "0") {
	if(navigator.family =="nn4") {eval(document.object1.top="-500");}
	else if(navigator.family =="ie4"){object1.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	}
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
// Fim PopUp
