menu_IE = function() {
	if (document.all && document.getElementById && document.getElementById("menuPrincipal") != null) {
		navRoot = document.getElementById("menuPrincipal").firstChild;
		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", "");
				}
				/*
				node.childNodes[2].onmouseover = function() {
					this.parentNode.className += " over";
				}
				node.childNodes[2].onmouseout = function() {
					this.parentNode.className = this.parentNode.className.replace(" over", "");
				}
				*/
			}
		}
	}
	try{
		paginaIniciar();
	} 
	catch(e){
	}	
}
window.onload = menu_IE;

function jumpMenu(targ,selObj,restore)
{
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex = 0;
}

function abrePop(url,larg,alt)
{
	var top = (screen.height - alt) / 2;
	var left = (screen.width - larg) / 2;
	window.open(url,'popup','width='+larg+',height='+alt+',top='+top+',left='+left+',resizable=no,toolbars=no,scrollbars=yes,status=no,location=no');
}

function abrePopNoscroll(url,larg,alt)
{
	var top = (screen.height - alt) / 2;
	var left = (screen.width - larg) / 2;
	window.open(url,'popup','width='+larg+',height='+alt+',top='+top+',left='+left+',resizable=no,toolbars=no,scrollbars=no,status=no,location=no');
}

function fechaPopup()
{
	window.close(this);
}

/****************************************************************
* As funções abaixo ( expandone() e contractall() )
* servem para realizar a modificação de campos no arquivo
* "acompanhamentoProcessual.asp" sem realizar o refresh da página.
*
* Combo-Box Viewer script- Created by and © Dynamicdrive.com
* Visit http://www.dynamicdrive.com/ for this script and more
* This notice MUST stay intact for legal use
*****************************************************************/

function expandone(){
if (document.getElementById){
var selectedItem=document.dropmsgform.dropmsgoption.selectedIndex
contractall()
document.getElementById("dropmsg"+selectedItem).style.display="block"
}
}

function contractall(){
if (document.getElementById){
var inc=0
while (document.getElementById("dropmsg"+inc)){
document.getElementById("dropmsg"+inc).style.display="none"
inc++
}
}
}

