// 1k DHTML API
//Assumes IE4+, NS6+ or OPera 5+

d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;

function gE(e,f){if(l){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(d.all)return d.all[e];return d.getElementById(e);}

function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';}

function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}

function gX(e){if(l) return e.left;else if(d.all)return e.style.pixelLeft;else return e.style.left}
//get left posn

function gY(e){if(l) return e.top;else if (d.all)return e.style.pixelTop;else return e.style.top}
//get top posn

function gW(e){if(l) return e.width;else return e.style.width}
//get left posn
function gH(e){if(l) return e.height;else return e.style.height}
//get top posn


function gZ(e){if(l) return e.zIndex;else return e.style.zIndex} 
//get z-index

function sZ(e,z){if(l)e.zIndex=z;else e.style.zIndex=z;} //set z-index
function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x;}//set left
function sY(e,y){if(l)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y;}//set top
function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}
function sH(e,h){if(l)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;}
function sC(e,t,r,b,x){if(l){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(l) {e.document.write(h);e.document.close();return true}
	//Y=e.document;Y.write(h);Y.close()
	
if(e.innerHTML)
	{
	e.innerHTML=h
	}
}


