// JavaScript Document
startList = function() {
	if (document.all&&document.getElementById)
	{
		itensMenuRoot = document.getElementById("nav");
		for (i=0; i<itensMenuRoot.childNodes.length; i++)
		{
			node = itensMenuRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function() 
				{
					hideTagSelect(false);
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					hideTagSelect(true);
					this.className=this.className.replace
					(" over", "");
				}
				
				try 
				{
					itensSubMenu = node.getElementsByTagName("ul");
					for (j=0; j<itensSubMenu.length; j++) 
					{
						nodeSubUL = itensSubMenu[j];
						for(k=0; k<nodeSubUL.childNodes.length; k++)
						{
							nodeSub = nodeSubUL.childNodes[k];
							if (nodeSub.nodeName=="LI") 
							{
								nodeSub.onmouseover=function() 
								{
									hideTagSelect(false);
									this.className+=" over";
								}
								nodeSub.onmouseout=function() 
								{
									hideTagSelect(true);
									this.className=this.className.replace
									(" over", "");
								}
							}
						}
					}
				} catch(e) {alert(e);}
			}
		}
	}
}

function criaIframe(o)
{
	try 
	{
		o.style.zIndex = 1000;
		ie = navigator.userAgent.toLowerCase().indexOf("msie");
		h = o.scrollHeight;
		w = o.scrollWidth;
		o_iframe = document.createElement("iframe");
		o_iframe.src="javascript:void(0);";
		o_iframe.id = "iframeHidden";
		o_iframe.className = o.id+"_iframe";
		o_iframe.style.width = (w+(ie!=-1 ? 2 : -1))+"px";
		o_iframe.style.height = (h+(ie!=-1 ? 2 : -1))+"px";
		o_iframe.style.zIndex= 900;
		o_iframe.frameBorder = "0px";
		o_iframe.style.border= "0px";
		if (!document.getElementById("iframeHidden")){
			o.appendChild(o_iframe);
		}		
	} catch (e) { alert(e); }
}
function removeIframe(o) 
{
	if (document.getElementById("iframeHidden"))
	{
		o.removeChild(document.getElementById("iframeHidden"));
	}
}