// Standard functions - some derived from the Dithered 1k JS library: http://www.dithered.com/javascript/
d=document;l=d.layers;op=navigator.userAgent.indexOf('Opera')!=-1;var ie=d.all?1:0;var w3c=d.getElementById?1:0;
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){l?e.visibility='show':e.style.visibility='visible';}
function hE(e){l?e.visibility='hide':e.style.visibility='hidden';}
function gX(e){if(l){return e.left;}else if(ie){return e.style.pixelLeft;}else{s=getComputedStyle(e,null);return parseInt(s.getPropertyValue('left'));}}
function gY(e){if(l){return e.top;}else if(ie){return e.style.pixelTop;}else{s=getComputedStyle(e,null);return parseInt(s.getPropertyValue('top'));}}
function gW(e){if(l) return e.clip.width; else return e.offsetWidth;}
function gH(e){if(l) return e.clip.height; else return e.offsetHeight;}
function sZ(e,z){l?e.zIndex=z:e.style.zIndex=z;}
function sX(e,x){l?e.left=x:op?e.style.pixelLeft=x:e.style.left=x;}
function sY(e,y){l?e.top=y:op?e.style.pixelTop=y:e.style.top=y;}
function sW(e,w,m){if(!m)m=0;l?e.clip.width=w:op?e.style.pixelWidth=w:e.style.width=w-m;}
function sH(e,h,m){if(!m)m=0;l?e.clip.height=h:op?e.style.pixelHeight=h:e.style.height=h-m;}
function sC(e,t,r,b,x){l?(X=e.clip,X.top=t,X.right=r,X.bottom=b,X.left=x):e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}
function wH(e,h){if(l){Y=e.document;Y.open();Y.write(h);Y.close();}else if(e.innerHTML)e.innerHTML=h;}
function mL(e,x,y){sX(e,x);sY(e,y);}	// Move layer
function rL(e,w,h,m){if(ie)m=0;sW(e,w,m);sH(e,h,m);}	// Resize layer
function bW(){if(!ie) return window.innerWidth;else return document.body.clientWidth;}
function bH(){if(!ie) return window.innerHeight;else return document.body.clientHeight;}
function rO(n,i,s){e=gE(n);e.src=(s==1)?imgDir+i+"-over.gif":imgDir+i+".gif";}
function sI(n,i){e=gE(n);e.src=imgDir+i+".gif";}
function pI(){d.pli=new Array();var i,j=d.pli.length,a=pI.arguments;for(i=0;i<a.length;i++) if(a[i].indexOf("#")!=0){d.pli[j]=new Image;d.pli[j++].src=a[i];}}

