function setVariables() {
	if (navigator.appName == "Netscape") {
	innerH="window.innerHeight";
	offsetY="window.pageYOffset";
	}
	else {
	innerH="document.body.clientHeight";
	offsetY="document.body.scrollTop";
	}
}

function checkLocation() {
	var availableY=eval(innerH);
	var currentY=eval(offsetY);
	y=availableY-(300)+currentY;
	moveToY(y);
	setTimeout("checkLocation()",300);
}

function moveToY(y) {
	if (document.getElementById) {
	document.getElementById("slider").style.top = y;
	}
}
