startList = function() 
{
	if (document.all && document.getElementById || true) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					hideMenues();
					this.className+=" over";
					// document.getElementById("content").style.z="hidden";
				}

				node.onmouseout=function() 
				{
					//this.className=''; // this.className.replace(" over", "");
				}
			}
		}
	}
	
	initHandler("contentContainer");
	
	function initHandler(uElementName)
	{
		locObj = document.getElementById(uElementName)
		locObj.onmouseover=function()
		{
			hideMenues();
		}
		
	}
	
	function hideMenues()
	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.className = "submnu";
			}
		}
	}
}

window.onload=startList;

function mnuShow(uMenu, uVisible)
{
	locContent = document.getElementById(uMenu + "Content");
	if (locContent != null)
		locContent.style.left = uVisible ? 0 : -1000;
		//locContent.style.visibility = (uVisible == true) ? "" : "hidden";
}

function mnuHilight(uMenu, uColor)
{
	//uMenu.style.background = uHilight ? "#daeefa" : "#ffffff";
	uMenu.style.background = uColor;
}

function getPage()
{
	locQueryString = window.location.search;
	if (locQueryString != "")
	{
		locPos = locQueryString.indexOf("page=");
		if (locPos > -1)
		{
			return locQueryString.substring(locPos + 5);
		}
	}
	return "main.html?page=news";
}

function getContent(uName)
{
	locVar = getPage() + uName;
	return eval(locVar);
}

