<!--
//drop down menu function
function GoUrl(s) {
	var d = s.options[s.selectedIndex].value;
	window.top.location.href = d;
	s.selectedIndex=0;
}

//set up layer call
var isIE, isNS, isNS6, isDOM, lR, sR, vis, invis, myTimeOut, goName;
if (document.all) {isIE= true;lR="document.all.";sR=".style";vis="visible";invis="hidden";}
if (document.layers){isNS = true;lR="document.layers.";sR="";vis="show";invis="hide";}
if (document.getElementById &&!isIE) {isDOM=true;lR = "document.getElementById('";sR = "').style";invis ="hidden";vis = "visible"}
if (isDOM == true && navigator.appName =="Netscape") isNS6 = true;

var nestedwhich = 0;
var oldwhich = 1;
var loops=1;
var layerTimer;
	
//turn on layer and rollover
function layOver(which)
{
	loops=0;
	l = eval(lR + "l" + which + sR);

	if ((which != "6") && (which != "4") && (which != "5")) {
		if (oldwhich != which)
		{
			ol = eval(lR + "l" + oldwhich + sR);
			ol.visibility = invis;
			nestedwhich = 0;
			nl = eval(lR + "l2" + sR);
			nl.visibility = invis;
		}
	}
	else {
		if ((oldwhich != which) && (oldwhich != "2"))
		{
			ol = eval(lR + "l" + oldwhich + sR);
			ol.visibility = invis;
			nestedwhich = 0;
			nl = eval(lR + "l2" + sR);
			nl.visibility = invis;
		}
		nestedwhich = oldwhich;
	}
	
	l.visibility = vis;
	oldwhich = which;
	clearTimeout(layerTimer);
	return;
}
	
//turn off layer and rollover if user is completely off nav 
function stopOver()
{
	if (loops<3) {
		loops++;
	}
	else
	{
		ol = eval(lR + "l" + oldwhich + sR);
		ol.visibility = invis;
		
		if ((oldwhich == "6") || (oldwhich == "4") || (oldwhich == "5")) {
			ol = eval(lR + "l" + nestedwhich + sR);
			ol.visibility = invis;
		}
		MM_swapImage('rotind','','imagens/bot_rotind_off.gif',1);
		loops=0;
	}
	layerTimer = setTimeout("stopOver()",80)
}

function clearOver()
{
	loops=3;
	stopOver();
}

//reset the timer
function startOver()
{
	loops=0;
	clearTimeout(layerTimer);
}

//change subnav background color (ie5+ ns6+)
function changebg(item, color)
{
	if (document.getElementById)
	{
	theone = eval("document.getElementById('"+item+"')");
	theone.style.background = color;
	}	
}

function DropDown(Menu) {
	obj=MM_findObj(Menu,'');
	document.all.obj.style.height='39px';
}

function DropUp(Menu) {
	obj=MM_findObj(Menu,'');
	document.all.obj.style.height='22px';
}
//-->
