function BrowserCheck() {
	var os= navigator.platform
	if (os.indexOf("Mac")!=-1) {
		this.os = "mac"
	} else {
		this.os = "pc"
	}
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.v = parseInt(navigator.appVersion);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
}
is = new BrowserCheck();

function showNav(which,lang){

	thePath = eval("'../../images/' + which + '_hi_' + lang + '.gif'");
	document[which].src = thePath;

	if ((is.os == "pc") && (is.ie4 || is.ie5)){
		theLayer = eval(which + '_Div.style');
		metaNavLayer = metaNavDiv.style;
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
		metaNavLayer = document.getElementById("metaNavDiv");
	}

//	theLPos=document.images[which].offsetLeft;
//	theLayer.left=theLPos + "px";
	theLayer.visibility = "visible";
}

function hideNav(which,lang){
	thePath = eval("'../../images/' + which + '_lo_' + lang + '.gif'");
	document[which].src = thePath;
	if (is.ie4 || is.ie5){
		theLayer = eval(which + '_Div.style');
	}else{
		theLayer = eval('document.getElementById("' + which + '_Div").style');
	}
	theLayer.visibility = "hidden";
}




function GetElmParent(which) {
	if (document.images[which] && document.images[which].parentNode.parentNode){
		return document.images[which].parentNode.parentNode;
	} else if (document.images[which] && document.images[which].parentElement.parentElement){
		return document.images[which].parentElement.parentElement.name;
	} else {
		return null;
	}
}

function hiLite(which){
	theLNK = GetParent(which);
	theLNK.className = "mainNavSingleAct";
}
function loLite(which){
	theLNK = GetParent(which);
	theLNK.className = "mainNavSingle";
}

function GetParent(which) {
	if (which && which.parentNode.parentNode){
		return which.parentNode;
	} else if (which && which.parentElement.parentElement){
		return which.parentElement.parentElement.name;
	} else {
		return null;
	}
}


function legal(url) {
	window.open(url,"Legal","width=500,height=450,scrollbars=yes,resizeable=no,menubar=yes,status=yes,top=50,left=100");
}
