function ExplorerFix() 
{
	for (a in document.links)
		document.links[a].onfocus = document.links[a].blur; 
}

if(document.all) document.onmousedown = ExplorerFix;

function wndOpenSimple(url,name,width,height)
{
	width = (width == null ? 550 : width)
	height = (height == null ? 400 : height)

	window.open(url,name,'status=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height);
	return false;
}
function wndOpenImg(url,width,height)
{
	window.open('/includes/blowup.shtml?src='+escape(url)+'%20width='+width+'%20height='+height,'_blank','status=yes,scrollbars=no,resizable=no,width='+width+',height='+(height+40));
	return false;
}
function printPage()
{
	window.print();
}

// 1k DHTML API // original from cnott at www.dithered.com (minor mods by byron - line 2 ns reload on resize - line15,16 getX,Y)
var op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;
if(document.layers){iW=innerWidth;iH=innerHeight;onresize=function(){if(innerWidth!=iW||innerHeight!=iH)location.reload()};}
function gE(e,f){if(document.layers){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(document.all)return document.all[e];return document.getElementById(e);}
function sE(e){if(document.layers)e.visibility='show';else e.style.visibility='visible';}
function hE(e){if(document.layers)e.visibility='hide';else e.style.visibility='hidden';}
function sZ(e,z){if(document.layers)e.zIndex=z;else e.style.zIndex=z;}
function sX(e,x){if(document.layers)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x;}
function sY(e,y){if(document.layers)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y;}
function sW(e,w){if(document.layers)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}
function sH(e,h){if(document.layers)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;}
function sC(e,t,r,b,x){if(document.layers){X=e.clip;X.top=t;X.right=r;X.bottom=b;X.left=x;}else e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}
function wH(e,h){if(document.layers){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;}

function gX(e){if(document.layers)x=e.left;else if(op)x=e.style.pixelLeft;else x=e.style.left;return x;}
function gY(e){if(document.layers)y=e.top;else if(op)y=e.style.pixelTop;else y=e.style.top;return y;}
function gW(e){return((document.layers)?e.clip.width:parseInt(e.style.width));}
function gH(e){return((document.layers)?e.clip.height:parseInt(e.style.height));}

// Added Cow
function sE2(e){if(document.layers){e.visibility='show';e.position='static';}else{e.style.visibility='visible';e.style.position='static';}}
function hE2(e){if(document.layers){e.visibility='hide';e.position='absolute';}else{e.style.visibility='hidden';e.style.position='absolute';}}
function sCl(e,cl){if(e.className)e.className=cl;}
function gCl(e){return(e.className?e.className:'');}
function gX2(e){var x=0;if(e.offsetParent == null)return gX(e);do{x+=e.offsetLeft;e=e.offsetParent;}while(e);return x;}
function gY2(e){var y=0;if(e.offsetParent == null)return gY(e);do{y+=e.offsetTop;e=e.offsetParent;}while(e);return y;}
function gX2r(e){var x=0;if(e.offsetParent == null)return gX(e);do{x+=e.offsetLeft;e=e.offsetParent;}while(e && e.currentStyle.position!='relative');return x;}
function gY2r(e){var y=0;if(e.offsetParent == null)return gY(e);do{y+=e.offsetTop;e=e.offsetParent;}while(e && e.currentStyle.position!='relative');return y;}
function gW2(e){return (e.offsetWidth ? e.offsetWidth : e.clientWidth);}
function gH2(e){return (e.offsetHeight ? e.offsetHeight : e.clientHeight);}
function hEx(nm){var e=gE(nm);if(e)hE(e);}

function gOb(nm){return (document.all ? document.all[nm] : document.getElementById(nm));}
function pE(e){return (e && e.parentElement ? e.parentElement : (e.parentNode ? e.parentNode : null) );}



