var isNav = (navigator.appName.indexOf("Netscape") !=-1);
var iHoldHeight = self.innerHeight;
var iHoldWidth = self.innerWidth;


if (isNav){
// document.captureEvents(Event.MOUSEMOVE);
window.captureEvents(Event.RESIZE);
}

// document.onmousemove = handlerMM;
window.onresize = handlerResize;



function handlerResize(e){
	if (((isNav) && (iHoldWidth != self.innerWidth)) || (iHoldHeight != self.innerHeight)){
		window.location.reload();
	}
}


function setVariables(){
	if (navigator.appName == "Netscape") {
		v=".top=";h=".left=";dS="document.";sD="";
		y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="window.innerHeight"

	}

	else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
		y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body.clientWidth";iH="document.body.clientHeight"

	}

	object="logo";
	checkLocationA()
}

movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0

function checkLocation(){
//	innerX=1;
	innerX = (isNav) ? 3 : 1;	
	if ((eval(y) < 115) && (eval(y) > 60)){
//		innerY = Math.abs((1 - (eval(y)/100))*95) + 30;
		innerY = (isNav) ? 35 : 35;
	}

	else if (eval(y) > 115){
		innerY= (isNav) ? 13 : 10;
	}
	else{
		innerY = (isNav) ? 148 : 148;
	}

if(!isNav){
	if ((eval(iH) > 500) || (innerY == 134)){
//		if (document.layers){innerY-=10;innerX-=10}
		yy=eval(y);
		xx=eval(x);
		ydiff=ystart-yy;
		xdiff=xstart-xx;
		if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
		// if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex
	}
}
	
	eval(dS+object+sD+v+(ystart+innerY));
	eval(dS+object+sD+h+(xstart+innerX));
//}
	setTimeout("checkLocation()",10)}

function checkLocationA(){ystart=eval(y);xstart=eval(x);}


function check(){alert(
xxxx = document.all["logo"].style.pixelHeight)
alert(xxxx);}


function acheckLocation(){
	innerX=1

	if (eval(iH) > 750){
		if (document.layers){innerY-=10;innerX-=10}
		yy=eval(y);
		xx=eval(x);
		ydiff=ystart-yy;
		xdiff=xstart-xx;
		if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
		// if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex
	}


	if (eval(y) > 120){
		innerY=10;
	}
	else{
		innerY=125;
	}
		

		eval(dS+object+sD+v+(ystart+innerY));
		eval(dS+object+sD+h+(xstart+innerX));
//}
	setTimeout("checkLocation()",10)}




