// This javascript works in conjunction with navmenu.css.  The menu's HTML is found in header.ascx.
// The menu works using pure CSS in standards-compliant browsers.  For those browsers that are not
// standards-compliant, the menu uses this JavaScript to work.  In standards-compliant browsers,
// the menu would still work even if JavaScript is disabled since it uses pure CSS.

window.onload = function()
{
	var getDocObj;
	var menu_td;

	// getDocObj is assigned the appropriate function (depending on the user's browser).
	// objName should be the value of an element's id attribute in the HTML.
	if(document.all)
		getDocObj = function(objName) { return document.all[objName] }
	else if(document.getElementById)
		getDocObj = function(objName) { return document.getElementById(objName) }
	else
		return;

	for(var i = 1; menu_td = getDocObj("menu_td" + i); i++)
	{
		menu_td.onmouseover = function() { this.className = "mouseover"; }
		menu_td.onmouseout = function() { this.className = ""; }
	}
}