/*Redirect to The Web Standards Project Browser Upgrade Campaign
if (!document.getElementById) {
    window.location = 
	   "http://www.webstandards.org/upgrade/"
}*/

/* totop positioning */
initOK = false;

window.onload = init;

function init() {
	bottomPanel = gE("bottom");
	sY(bottomPanel,winH() + winT() - 30);
	sE(bottomPanel);
	moveBottom = setInterval("setBottomPosition()",15);
	initOK = true;
}

function setBottomPosition() {
	place = winT() + winH() - 19; /* the higher the number the higher up the up button is */
	if (gY(bottomPanel) < place) {
		newPlace = gY(bottomPanel) - Math.floor((gY(bottomPanel) - place) / 10);
		sY(bottomPanel,newPlace);
	}
	if (gY(bottomPanel) > place) {
		newPlace = gY(bottomPanel) - Math.ceil((gY(bottomPanel) - place) / 10);
		sY(bottomPanel,newPlace);
	}
}

d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;ie=(d.all)?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){if(l)e.visibility='show';else e.style.visibility='visible';}
function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}

function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x+'px';}
function gX(e){if(l)return e.left;else if(op)return e.style.pixelLeft;else return parseInt(e.style.left);}
function sY(e,y){if(l)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y+'px';}
function gY(e){if(l)return e.top;else if(op)return e.style.pixelTop;else return parseInt(e.style.top);}
function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}
function gW(e){if(l)return e.clip.width;else if(op)return e.style.pixelWidth;else return parseInt(e.style.width);}
function sH(e,h){if(l)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;}
function gH(e){if(l)return e.clip.height;else if(op)return e.style.pixelHeight;else return parseInt(e.style.height);}

function wH(e,h){if(l){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=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+'px '+r+'px '+b+'px '+x+'px)';}

function winW(){if(window.innerWidth)return window.innerWidth;else return d.body.clientWidth;}
function winH(){if(window.innerHeight)return window.innerHeight;else return d.body.clientHeight;}
function winL(){if(ie)return d.body.scrollLeft;else return window.pageXOffset;}
function winT(){if(ie)return d.body.scrollTop;else return window.pageYOffset;}