
function setVariables() {
//if (document.layers) {
//var page = eval(document.logo);
//}
//else {


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";
}

if (document.getElementById) {
	var page= eval("document.getElementById('logo').style");
} else {
	if (document.all) {
		var page = eval(document.all.logo.style);
	}
}
xyz = 500;
//innerX = eval(iW) - 115;
//innerY = eval(iH) - 155;
innerX = 5;
innerY = 100;
object = "logo";
checkLocationA();

movex = 0;
movey = 0;
xdiff = 0;
ydiff = 0;
ystart = 0;
xstart = 0;
var toswap = 'disp1'
var swapper
var tm = 10000
var ct = 0;
}

function checkLocation() {
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;

page= eval("document.getElementById('logo').style")
page.top = ystart + innerY;
setTimeout("checkLocation()", 50);
}

function checkLocationA() {
ystart = eval(y);
xstart = eval(x);
}



function swapdisp(what) {
	if (document.all) {
		toswap.visibility="hidden"
		toswap=eval("document.all."+what+".style")
		swapper=eval("document.all."+what+".style")
		swapper.visibility="visible"
		eval(dS + what + sD + v + (ystart + innerY + 135));
	}
	if (document.layers) {
		toswap.visibility="hidden"
		toswap=eval("document."+what)
		swapper=eval("document."+what)
		swapper.visibility="visible"
		eval(dS + what + sD + v + (ystart + innerY + 135));
	}
}



