// JavaScript Document allowing subcontent nav items to remain highlighted after they are rolled off

nodeArray = new Array();

//-----------subcontent nav highlights --------------------------
function sc_RollOut()
{	
	for (z = 0; z < nodeArray.length; ++z)
	{
		nodeArray[z].className = nodeArray[z].className.replace("over", "");
	}
}

navList = function()
{
	navRoot = document.getElementById("sc_nav");
	n = 0;
	
	for (i = 0; i < navRoot.childNodes.length; i++)
	{
		if (navRoot.childNodes[i].nodeName=="LI")
		{
			nodeArray[n] = navRoot.childNodes[i];
			++n;
		}		
		
		this.className+=" over";
	}
	
	for (x=0; x<nodeArray.length; ++x)
	{
		nodeArray[x].onmouseover=function()
		{			
			sc_RollOut();
			
			this.className+=" over";
		}
	}
}