var menu1=new Array()
menu1[0]="<a href=inst_mpu.htm>O Min.Público da União</a><br>"
menu1[1]="<a href=inst_mpt.htm>O Min.Público do Trabalho</a><br>"
menu1[2]="<a href=inst_prt7.htm>A PRT 7a.Região</a><br>"
menu1[3]="<font color=#ffffff>____________________________</font><br>"
menu1[4]="<a href=inst_prt7_membros.htm>Membros</a><br>"
menu1[5]="<a href=inst_prt7_setores.htm>Setores</a><br>"
menu1[6]="<a href=inst_prt7_servidores.htm>Servidores</a><br>"
menu1[7]="<a href=inst_prt7_planassiste.htm>Plan-Assiste</a><br>"
menu1[8]="<font color=#ffffff>________________________</font><br>"
menu1[9]="<a href=inst_mapa.htm>Procuradorias do Trabalho</a><br>"
menu1[10]="<a href=inst_tribunais.htm>Links Jurídicos</a><br>"
menu1[11]="<a href=index.html>Página Inicial</a><br>"

var menu2=new Array()
menu2[0]="<a href=proc_consulta.htm>Consultas</a><br>"
menu2[1]="<a href=proc_estatistica.htm>Estatísticas</a><br>"

var menu3=new Array()
menu3[0]="<a href=publ_artigos.htm>Artigos</a><br>"
menu3[1]="<a href=publ_cartilhas.htm>Cartilhas</a><br>"
menu3[2]="<a href=mpt_na_midia/2009/publ_mpt_na_midia.htm>MPT na mídia</a><br>"
menu3[3]="<a href=publ_pecas.htm>Peças</a><br>"
menu3[4]="<a href=publ_port_administracao.htm>Portarias Administr.</a><br>"
menu3[5]="<a href=publ_port_inq_civ.htm>Portarias Inq. Civil</a><br>"
menu3[6]="<a href=publ_tac.htm>T. Ajuste Conduta</a><br>"
menu3[7]="<a href=publ_ult_noticias.htm>Últimas Notícias</a><br>"

var menu4=new Array()
menu4[0]="<a href=c_publ_contratos.htm>Contratos</a><br>"
menu4[1]="<a href=c_publ_compras.htm>Compras</a><br>"
menu4[2]="<a href=http://www.pgt.mpt.gov.br/portaltransparencia>MPT Transparente</a><br>"

var menu5=new Array()
menu5[0]="<a href=lici_concluidas.htm>Lic.Concluídas</a><br>"
menu5[1]="<a href=lici_em_andam.htm>Lic.em Andamento</a><br>"
menu5[2]="<a href=lici_arp.htm>Registro de Preços</a><br>"

var menu6=new Array()
menu6[0]="<a href=conc_membros.htm>Membros</a><br>"
menu6[1]="<a href=conc_servidores.htm>Servidores</a><br>"
menu6[2]="<a href=conc_estagiarios.htm>Estagiários</a><br>"

var menu7=new Array()
menu7[0]="<a href=even_programacao.htm>Programação</a><br>"
menu7[1]="<a href=even_realizado.htm>Realizados</a><br>"

var zindex=100
var maisesq=0
var maiscima=3

function mostra(whichone)
{
	for (x=0;x<7;x++)hidemenu('dropmenu'+x)
	
	themenu=whichone
	if (document.all)
	   {
	   themenu.style.left=maisesq+document.body.scrollLeft+event.clientX-event.offsetX
	   themenu.style.top=maiscima+document.body.scrollTop+event.clientY-event.offsetY+21
	   themenu.style.visibility="visible"
	   themenu.style.zIndex=zindex++
	   }
}

function esconde(whichone)
{
	if (window.themenu&&themenu.id!=eval(whichone).id)
	   themenu.visibility="hide"
	themenu = whichone
		
	var esq = parseInt(themenu.style.left)
	var larg = parseInt(themenu.style.width)
	var topo = parseInt(themenu.style.top)
	var alt = parseInt(themenu.style.height)
	var eX = event.clientX
	
	//var eY = event.clientY	
	var eY = document.body.scrollTop+event.clientY-event.offsetY+21
		
	if(!((eX>esq)&&(eX<esq+larg)&&(eY>topo)&&(eY<topo+alt))){
		themenu=eval(whichone)
		themenu.style.visibility="hidden"    
		}	
	return false
}

function dropit(e,whichone)
{
	if (window.themenu&&themenu.id!=eval(whichone).id)
	   themenu.visibility="hide"
	themenu=eval(whichone)
	if (themenu.visibility=="hide")
	   themenu.visibility="show"
	else
	   themenu.visibility="hide"
	themenu.zIndex++
	themenu.left=e.pageX-e.layerX
	themenu.top=e.pageY-e.layerY//+21
	return false
}
function dropit2(whichone)
{
	if (window.themenu&&themenu.id!=whichone.id)
	   themenu.style.visibility="hidden"
	themenu=whichone
	if (document.all)
	   {
	   themenu.style.left=maisesq+document.body.scrollLeft+event.clientX-event.offsetX
	   themenu.style.top=maiscima+document.body.scrollTop+event.clientY-event.offsetY+21
	   if (themenu.style.visibility=="hidden")
	      {
	      themenu.style.visibility="visible"
	      themenu.style.zIndex=zindex++
	      }
	   else
	      {
	      hidemenu()
	      }
	   }
}

function hidemenu(whichone)
{
	if (window.themenu)
	   themenu.style.visibility="hidden"
}
if (document.all)
   document.body.onclick=hidemenu