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'; fontTD(otxt); break;
		case '1.2em': otxt.style.fontSize='1.4em'; fontTD(otxt); break;
		case '1.4em': otxt.style.fontSize='1.6em'; fontTD(otxt); break;
		case '1.6em': otxt.style.fontSize='1em'; fontTD(otxt); break;
		default: otxt.style.fontSize='1.2em';
		}
	}
}
function fontTD(o){var r=o.getElementsByTagName("td");for(var i=0;i<r.length;i++)r[i].style.fontSize=o.style.fontSize;}
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 hits(){var i=0;var cURL=document.URL.toLowerCase();if(cURL.indexOf('?aid=')>0){var arr=cURL.split('?aid=');if(arr.length>0){i=(arr[1].indexOf('&')>0)?arr[1].split('&')[0]:arr[1];document.write('<img width=0 height=0 src="hits.ashx?i='+i+'">');}}}
function hits2(i){document.write('<img width=0 height=0 src="hits.ashx?i='+i+'">');}
function hideBoxes(boxID, objID){
	var box = document.getElementById(boxID);
	var obj = document.getElementById(objID);
	if(obj == null) box.style.display='none';
}