function sNavs(oid){
	var cMenuz=5; var prfx = 'mnavh';
	for(var i=1;i<=cMenuz;i++)document.getElementById('mnavh'+i).style.display='none';
	document.getElementById('m'+oid).style.display='block';
	
}
function getCookie(name) {
	var prefix = name + "=";
	var cookieStartIndex = document.cookie.indexOf(prefix);
	if (cookieStartIndex == -1) return null;
	var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
	if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length;
	return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}
function setCookie(pName,pVal,pDur) {var d=new Date();d.setMinutes(d.getMinutes()+pDur);document.cookie=pName+'='+escape(pVal)+'; expires='+d.toUTCString()+';';}
function font(){
	var otxt = document.getElementById("c-txt");
	if(otxt){
		if(otxt.style.fontSize=="")otxt.style.fontSize='1.2em';
		switch(otxt.style.fontSize){
		case '1em': otxt.style.fontSize='1.2em'; break;
		case '1.2em': otxt.style.fontSize='1.4em'; break;
		case '1.4em': otxt.style.fontSize='1.6em'; break;
		case '1.6em': otxt.style.fontSize='1em'; break;
		default: otxt.style.fontSize='1.2em';
		}
	}
}
function openWin(url,w,h){open(url,"","width="+w+",height="+h+",directories=0,scrollbars=1,status=1,resizable=1");}
function addFav(){if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {window.external.AddFavorite(location.href, document.title );}}
function reSize(){ 	var plh = document.getElementById("div-plh"); resizeTo(document.body.clientWidth+30, plh.offsetHeight+130);}
function sH(src,o1,o2,o3){var h = document.getElementById("main").offsetHeight+"px";sHg(o1,h);sHg(o2,h);sHg(o3,h);}
function sHg(o,h){var t=document.getElementById(o); if(t) t.style.height=h;}

var ie5=document.all&&!window.opera;var ns6=document.getElementById;
function sObj(src,dst,x,y){if(!document.all&&!document.getElementById)return;hObj();clrObjTimer();var xy=gXY(src);obj=document.getElementById(dst);obj.style.top=(xy[1]+y)+'px';obj.style.left=(xy[0]+x)+'px';sFltr(obj);}
function hObj(){if(window.obj)obj.style.visibility='hidden';}
function gXY(o){var x=y=0;if(o.offsetParent){x=o.offsetLeft;y=o.offsetTop;while(o=o.offsetParent){x+=o.offsetLeft;y+=o.offsetTop;}}return [x,y];}
function sFltr(o){if(o.filters && o.filters.length>0)o.filters[0].Apply();o.style.visibility='visible';if(o.filters && o.filters.length>0)o.filters[0].Play();}
function hObjDyn(e){if(ie5&&!obj.contains(e.toElement))hObj();else if(ns6&&e.currentTarget!=e.relatedTarget&&!IsContainNS6(e.currentTarget,e.relatedTarget))hObj();}
function setObjTimer(){objTimer=setTimeout("hObj()",500);}
function clrObjTimer(){if(window.objTimer)clearTimeout(objTimer);}
function IsContainNS6(a,b){while(b.parentNode)if((b=b.parentNode)==a)return true;return false;}
if(ie5||ns6)document.onclick=hObj;

function hlMe(o){o.style.border='1px solid #aaa';o.style.background='#eee';}
function uhlMe(o){o.style.border='1px solid #fff';o.style.background='#fff';}

function selMenu(oid){document.getElementById("menu_1").className="";document.getElementById("menu_"+oid).className="sel";}
function setMenu(){
var cURL=document.URL.toLowerCase();
if((cURL.indexOf("=40")>-1)||(cURL.indexOf("person.")>-1)){selMenu(2);return}
if(cURL.indexOf("=21")>-1){selMenu(3);return}
if(cURL.indexOf("=22")>-1){selMenu(4);return}
if(cURL.indexOf("=43")>-1){selMenu(5);return}
if(cURL.indexOf("=75")>-1){selMenu(6);return}
if((cURL.indexOf("contactus.")>-1)||(cURL.indexOf("feedback.")>-1)){selMenu(7);return}
}