startList = function(navRoot)
{
    //if IE 5 or IE 6
	if (document.all && document.getElementById)
	{
		navRoot = GetElement("trPnav");
		if(navRoot)
		{
		    for (i = 0; i < navRoot.childNodes.length; i++)
		    {
			    node = navRoot.childNodes[i];
			    if ((node.nodeName == "LI") || (node.nodeName == "TD"))
			    {
				    node.onmouseover = function()
				    {
					    this.className += " over";
				    }
				    node.onmouseout = function()
				    {
					    this.className = this.className.replace(" over", "");
				    }
			    }
		    }
		}
	}
	
	//find all empty tables and hide their parent divs
	var tables = document.getElementsByTagName("table");
	for(i = 0; i < tables.length; i++)
	{
	    var table = tables[i];
	    if(table.className.contains('empty'))
	    {
	        var parentDiv = table.parentNode;	        
	        while(parentDiv.tagName != 'DIV') parentDiv = parentDiv.parentNode
	        
	        parentDiv.style.display = "none";
	    }
	}
	
	//preload images
	//defined in required.js
	PreloadImages();
}
window.onload = startList;

