	var heightNS4 ,heightNS6 = new Number;
	heightNS6 = 0;
	heightNS4 = -6;

	function fnMain()
	{
		if ( (navNam == 'Netscape') && (parseInt(navVer) == 4) )
			{elemento = "LAYER";}
		else if ( (navNam == 'Netscape') && (parseInt(navVer) > 4) )
			{elemento = "DIV";}
		else
			{elemento = "DIV";}
	}

	function fn_addMenu(nameElemento,widthElemento,heightElemento)
	{
		// Se o browser do Cliente for superior ao Netscape 4
		if ( (navNam == 'Netscape') && (parseInt(navVer) > 4) )
			heightElemento += heightNS6;
		else if ( (navNam == 'Netscape') && (parseInt(navVer) == 4) )
			heightElemento += heightNS4;

		if (elemento == 'DIV')
		{
			document.write("<" + elemento + " id=\"" + nameElemento + "\" style=\"position:absolute; left: 0px; top: 0px; width: " + widthElemento + "px; height: " + heightElemento + "px; z-index: 100; visibility: hidden; border:1px solid #999999; background-color:#F1F1F1;\">");
			document.write("<" + elemento + " id=\"" + nameElemento + "frmt\" style=\"position:absolute; left: 0px; top: 0px; z-index: 101;\">");
		}
		else
		{
			document.write("<" + elemento + " name=\"" + nameElemento + "\" left=0 top=0 width=" + widthElemento + " height=" + heightElemento + " z-index=100 visibility=hidden bgcolor=\"#F1F1F1\" border=\"1 solid #999999\"><img src=../images1//%22images/sombra_menu.gif/%22 width=\"100%\" height=\"110%\">");
			document.write("<" + elemento + " name=\"" + nameElemento + "frmt\" left=0 top=0 z-index=101>");
		}
	}

	function fn_addSubMenu(nameElemento,nameSubElemento,widthSubElemento,heightSubElemento)
	{
		// Se o browser do Cliente for superior ao Netscape 4
		if ( (navNam == 'Netscape') && (parseInt(navVer) > 4) )
			heightSubElemento += heightNS6;

		if (elemento == 'DIV')
		{
			document.write("<" + elemento + " id=\"sub_" + nameElemento + "_" + nameSubElemento + "\" style=\"position:absolute; left: 0px; top: 0px; width: " + widthSubElemento + "px; height: " + heightSubElemento + "px; z-index: 100; visibility: hidden; border:1px solid #999999; background-color:#F1F1F1;\">");
			document.write("<DIV id=\"sub_" + nameElemento + "_" + nameSubElemento + "frmt\" style=\"position:absolute; left: 0px; top: 0px; z-index: 101;\">");
		}
		else
		{
			document.write("<" + elemento + " name=\"sub_" + nameElemento + "_" + nameSubElemento + "\" left=0 top=0 width=" + widthSubElemento + " height=" + heightSubElemento + " z-index=100 visibility=hidden bgcolor=\"#F1F1F1\" border=\"1 solid #999999\"><img src=../images1//%22images/sombra_menu.gif/%22 width=\"100%\" height=\"110%\">");
			document.write("<" + elemento + " name=\"sub_" + nameElemento + "_" + nameSubElemento + "frmt\" left=0 top=0 z-index=101>");
		}
	}

	function fn_addMenuItem(nameElemento,widthElemento,nameItem,itemID,itemTop,linkElemento,bSubMenu,rotuloItem,bSeparador)
	{
		var sSubMenu = "";
		var sSeta = "";
		var sSeparador = "";

		if (bSubMenu)
		{
			sSubMenu = "cFrame.ShowMenu('sub_" + nameElemento + "_" + nameItem + "', 0, 0, " + bSubMenu + ");"; 
			//sSeta = "<img align=\"right\" border=\"0\" src=../images1//%22images/menu_seta.gif/%22>";
		}
		if (bSeparador)
		{
			if (elemento == 'DIV')
			{
				sSeparador = "<" + elemento + " style=\"position:absolute; left: 0px; top: " + (itemTop+13) + "px; width: " + widthElemento + "px; height: 1px; z-index: 103\">";
				sSeparador += "<img src=../images1//%22images/separador.gif/%22 border=\"0\" width=\"100%\" height=\"1\">"
				sSeparador += "</" + elemento + ">"
			}
			else
			{
				sSeparador = "<" + elemento + " left=0 top=" + (itemTop+14) + " height=1 z-index=103>";
				sSeparador += "<img src=../images1//%22images/separador.gif/%22 border=\"0\" width=\"100%\" height=\"1\">"
				sSeparador += "</" + elemento + ">"
			}
		}
		
		if (elemento == 'DIV')
		{
			document.write("<" + elemento + " id=\"" + nameElemento + "_" + nameItem + "\" style=\"position:absolute; left: 0px; top: " + itemTop + "px; width: " + widthElemento + "px; height: 18px; z-index: 103\" onMouseOver=\"cFrame.HoverSel(0,this);" + sSubMenu + "\">");
			document.write("<TABLE cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><TR><TD width=\"100%\" nowrap>");
				document.write("<img src=\"" + nameElemento + "_" + itemID + ".gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"><font face=\"Verdana\" size=\"1\">&nbsp;<a href=\"" + linkElemento + "\" class=\"clsMenuSup\">" + rotuloItem + "</a></font></TD>");
			document.write("<TD>" + sSeta + "</TD></TR></TABLE>");
			document.write("</" + elemento + ">");
			document.write(sSeparador);
		}
		else
		{
			document.write("<" + elemento + " name=\"" + nameElemento + "_" + nameItem + "\" left=0 top=" + itemTop + " height=18 z-index=103 onMouseOver=\"cFrame.NSHoverSel(0,this);" + sSubMenu + "\">");
			document.write("<TABLE cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><TR><TD width=\"100%\" nowrap>");
				document.write("<img src=\"" + nameElemento + "_" + itemID + ".gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"><font face=\"Verdana\" size=\"1\">&nbsp;<a href=\"" + linkElemento + "\" class=\"clsMenuSup\">" + rotuloItem + "</a></TD>");
			document.write("<TD>" + sSeta + "</TD></TR></TABLE>");
			document.write("</" + elemento + ">");
			document.write(sSeparador);
		}
	}

	function fn_closeMenu()
	{
		document.write("</" + elemento + ">");
		document.write("</" + elemento + ">");
	}
