var bln;

function Navega(targ,selObj,restore)
{
	if ((selObj.options[selObj.selectedIndex].value.indexOf("AbrePop") != -1) || (selObj.options[selObj.selectedIndex].value.indexOf("window.open") != -1))
	{
		eval(selObj.options[selObj.selectedIndex].value);
	}
	else
	{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	}
	
	if (restore) selObj.selectedIndex=0;
}


function cTd (td, strColor ){
	if( document.getElementById || ( document.all && !( document.getElementById ) ) )
	{
		td.style.backgroundColor = strColor;
	}
}

function cClass (obj, strClass ){
	if( document.getElementById || ( document.all && !( document.getElementById ) ) )
	{
		obj.className = strClass;
	}
}

function showSubmenu (nu_menu) {
	var obj;
	
	obj = document.getElementById("submenu_" + nu_menu);
	
	if (obj) {
		obj.style.display = "inline";
		bln = true;
	}
} 

function showMenuLateral (nu_menu) {
	var obj;
	
	obj = document.getElementById("NetosMenuLateral_" + nu_menu);

	if (obj) {
		obj.style.display = "inline";
		bln = true;
	}
} 

function hideSubmenu (nu_menu) {
	bln = false;
	setTimeout("hide(" + nu_menu + ")", 500);
}	

function hide (nu_menu) {
	var obj;
	
	if (!bln) {
		obj = document.getElementById("submenu_" + nu_menu);
		
		if (obj) {
			obj.style.display = "none";
		}				
	}
} 

function hideMenuLateral (nu_menu) {
	var obj;
	
	obj = document.getElementById("NetosMenuLateral_" + nu_menu);
		
	if (obj) {
		obj.style.display = "none";
	}				
} 

function hideAll()
{
	for (i=1; i <= 6; i++)
	{
		hide(i);
	}
}

function hideAllMenuLateral()
{
	for (i=1; i <= 5; i++)
	{
		hideMenuLateral(i);
	}
}


function ExibeBeneficio (nu_beneficio) {
	
	hideAllBeneficios();

	var obj;
	obj = document.getElementById("beneficio_" + nu_beneficio);

	if (obj) {
		obj.style.display = "inline";
		bln = true;
	}
} 

function hideAllBeneficios()
{
	for (i=1; i <= 100; i++)
	{
		hideBeneficio(i);
	}
}


function hideBeneficio (nu_beneficio) {
	var obj;
	
	obj = document.getElementById("beneficio_" + nu_beneficio);
		
	if (obj) {
		obj.style.display = "none";
	}				
}

function hideDiv (no_div) {
	var obj;
	
	obj = document.getElementById(no_div);
		
	if (obj) {
		obj.style.display = "none";
	}				
} 