function setVariables() {
	imgwidth=40;  // logo width, in pixels
	imgheight=40;  // logo height, in pixels
	if (navigator.appName == "Netscape") {
		horz=".left";
		vert=".top";
		docStyle="document.";
		styleDoc="";
		innerW="window.innerWidth";
		innerH="window.innerHeight";
		offsetX="window.pageXOffset";
		offsetY="window.pageYOffset";
	} else {
		horz=".pixelLeft";
		vert=".pixelTop";
		docStyle="";
		styleDoc=".style";
		innerW="document.body.clientWidth";
		innerH="document.body.clientHeight";
		offsetX="document.body.scrollLeft";
		offsetY="document.body.scrollTop";
	}
}

function checkLocation() {
	objectXY="totopdiv";
	var availableX=eval(innerW);
	var availableY=eval(innerH);
	var currentX=eval(offsetX);
	var currentY=eval(offsetY);
	x=availableX-(imgwidth+15)+currentX;
	y=availableY-(imgheight+20)+currentY;
	evalMove();
	setTimeout("checkLocation()",5);
}

function evalMove() {
	eval(docStyle + objectXY + styleDoc + horz + "=" + x);
	eval(docStyle + objectXY + styleDoc + vert + "=" + y);
}

var n = null;
var m = null;

function mes(m) {
	window.status = m;
}

function bover(n,m) {
	if (document.images) {
		document [n].src = "media/" + n + "_o.gif";
	}
	window.status = m;
}

function bdown() {
	window.status = "Go!";
}

function bout(n) {
	if (document.images) {
		document [n].src = "media/" + n + "_n.gif";
	}
	window.status = " ";
}