var browser = getBrowser();

var optionsAr = new Array();
optionsAr[0] = "L1";
optionsAr[1] = "L2";
optionsAr[2] = "L3";
optionsAr[3] = "L4";
optionsAr[4] = "L5";
optionsAr[5] = "L6";
optionsAr[6] = "L7";
optionsAr[7] = "L8";
optionsAr[8] = "L9";
optionsAr[9] = "L10";

if (typeof(highlight) == "undefined") var highlight="none";

var LocationUrl = top.menuFrame.location.href;
	if (LocationUrl.indexOf("?") != -1) {
		var SplitString = LocationUrl.split("?");
		var QueryString = SplitString[1];
		var number = unescape(QueryString);
		highlight = "L"+number;
	}

function blurMe(){
	if (browser.indexOf("ie") >= 0){
		this.blur();
	};
}

function selectEntry(x){
	highlight=x;
	if (browser.indexOf("ie") >= 0 || browser == "ns6") {
		var id = getLayerStyleRef(x);
		id.color="#0065A5";
	}
	clearEntry();

}

function clearEntry(){
	if (browser.indexOf("ie") >= 0 || browser == "ns6") {
		for (i=0; i<noe; i++){
			if (optionsAr[i] != highlight){
				var id = getLayerStyleRef(optionsAr[i]);
				id.color="#676765";
			}
		}
	}
	
}


function ieOver (x) {
	if (x != highlight) {
			if (browser.indexOf("ie") >= 0 || browser == "ns6") {
			var id = getLayerStyleRef(x);
			id.color="#0065A5";
			return;
			}
	}
}

function ieOut (x) {
	if (x != highlight) {
		var id = getLayerStyleRef(x);
		
			if (browser.indexOf("ie") >= 0 || browser == "ns6") {
			id.color="#676765";
			return;
			}
	}
}


function initHighlight () {
	if (highlight != "none"){
		if (browser.indexOf("ie") >= 0 || browser == "ns6") {
			var id = getLayerStyleRef(highlight);
			id.color="#0065A5";
		}
	};
}

function getBrowser()
{
	var notsupported = "notsupported";
	if (navigator.appName == "Netscape")
	{
		var ver = parseInt (navigator.appVersion);
		if (ver == 4) return "ns4";
		if (ver >= 5) return "ns6";
		return (notsupported);
	}

	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if (navigator.appVersion.indexOf ("MSIE 4") >= 0) return ("ie4");
		if (navigator.appVersion.indexOf ("MSIE 5") >= 0) return ("ie5");
		if (navigator.appVersion.indexOf ("MSIE 6") >= 0) return ("ie5");
		return (notsupported);
	}

	return (notsupported);
}



function getLayerStyleRef (layername)
{
	var b = getBrowser();
	if (b == "ns4")									return (document.layers[layername]);
	if (b == "ie5" || b == "ns6")		if (document.getElementById(layername)) return (document.getElementById(layername).style);
	if (b == "ie4")									if (document.all[layername]) return (document.all[layername].style);
	return null;
}
