window.onload = function()
{
	var news_container = document.getElementById("news");
	var scrolling_news = document.getElementById("scrolling_news");
	
	if (news_container)
	{
		news_container.onmouseover = function(e) 
		{
			scrolling_news.stop();
		}
		
		news_container.onmouseout = function(e) 
		{
			scrolling_news.start();
		}
	}

	var navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) 
	{
		var node = navRoot.childNodes[i];
		if (node.nodeName == "LI") 
		{
			node.onmouseover = function() 
			{
				this.className = "over";
			}
			
			node.onmouseout = function() 
			{
				this.className = "";
			}

			var subList = node.getElementsByTagName("ul")[0];
			if (subList)
			{
				subList.onmouseover = function(e) 
				{
					this.parentNode.className = "over";
				}
			
				subList.onmouseout = function(e) 
				{
					this.parentNode.className = "";
				}
			}
		}
	}
}

