// Global Browser Variables
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer == 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS5up = (bName == "Netscape" && bVer > 4);
var rangeRef, styleObj, endObj;

// Global Menu Variables
var menuActive = false;
var timeOn = null;
var openMenu;

// Browser Cross-compatibility
if (NS4 || NS5up || IE4) {
	if (NS4) {
		rangeRef="document.layers[";
		styleObj="]";
		endObj="]";
	}
	else if (NS5up) {
			rangeRef="document.getElementById(";
			styleObj=").style";
			endObj=")";
		}
		else {
			rangeRef="document.all[";
			styleObj="].style";
			endObj="]";
	}
}

// Button MouseOver
function highlightMenu(itemName) {
	if (NS4 || NS5up || IE4) {
		if (NS4) {
			document[openMenu].document.tables[itemName].style.backgroundColor = "#0000FF"
		} else {
			eval(rangeRef+'"'+itemName+'"'+endObj+'.style.backgroundColor = "#FF0000"');
			eval(rangeRef+'"'+itemName+'"'+endObj+'.style.color = "#FFFFFF"');
		}
	}
}

// Button MouseOut
function unhighlightMenu(itemName) {
	if (NS4 || NS5up || IE4) {
		if (NS4) {
			document[openMenu].document.table[itemName].style.backgroundColor = "#DDDDDD";
		} else {
			eval(rangeRef+'"'+itemName+'"'+endObj+'.style.backgroundColor = "#DDDDDD"');
			eval(rangeRef+'"'+itemName+'"'+endObj+'.style.color = "#0000FF"');
		}
	}

}
