<!--
var moveX=0;
var moveY=0;
var diffX=0;
var diffY=0;
var startX=0;
var startY=0;

function setVariables(){
	if (!document.all)
		{
		 t=".top=";
		 l=".left=";
		 dS="document.";
		 sD="";
		 ySb="window.pageYOffset";
		 xSb="window.pageXOffset";
		 iW="window.innerWidth";
		 iH="window.innerHeight"
		 }

	else if(document.all)
		{
		 t=".pixelTop=";
		 l=".pixelLeft=";
		 dS="document.all.";
		 sD=".style";
		 ySb="document.body.scrollTop";
		 xSb="document.body.scrollLeft";
		 iW="document.body.clientWidth";
		 iH="document.body.clientHeight"
		 }

startY=eval(ySb);
startX=eval(xSb);
}

var stickyButton = "backToTop";

function checkLocation(){
//	innerX=eval(iW)-200;
	innerX=eval(732);
	innerY=eval(iH)-54;
	
	if (document.layers)
		{
		 innerY-=10;
		 innerX-=10;
		 }
		
	yy = eval(ySb);
	xx = eval(xSb);
	
	diffY = startY-yy;
	diffX = startX-xx;

	if ((diffY<(-1))||(diffY>(1))) 
		{
		 moveY=Math.round(diffY/10);
		 startY-=moveY;
		 }
		
	if ((diffX<(-1))||(diffX>(1)))
		{
		 moveX=Math.round(diffX/10);
		 startX-=moveX;
		 }
if(document.all||document.layers)
	{ 
	eval(dS+stickyButton+sD+t+(startY+innerY));
	eval(dS+stickyButton+sD+l+(startX+innerX));
	}
else
	{
	eval("document.getElementById('"+stickyButton+"').style.top="+parseInt((startY+innerY)));
	eval("document.getElementById('"+stickyButton+"').style.left="+parseInt((startX+innerX)));
	
	}
setTimeout("checkLocation()",10);
}


//-->