var sRepeat=null;
function doScroller(dir, src, amount) {
	// 3 arguments, dir: scroll "up" or "down", 
	// src is the string id of positioned element
	// amount (optional) is number of pixels to scroll 
	if (window.document.readyState=="loading") alert("Please wait until the page is finished loading.");
	if (amount==null) amount=10;
	if (dir=="down") {
	
		document.all[src].style.pixelTop -= amount;
		if (-document.all[src].style.pixelTop >= document.all[src].offsetHeight - document.all[src].offsetParent.offsetHeight)
			document.all[src].style.pixelTop =- document.all[src].offsetHeight + document.all[src].offsetParent.offsetHeight;

	}
	else if (dir=="up") {
		document.all[src].style.pixelTop += amount;
			
		if (document.all[src].style.pixelTop > 0)
			document.all[src].style.pixelTop = 0;
	}
	if (sRepeat==null)
		sRepeat = setInterval("doScroller('" + dir + "','" + src + "'," + amount + ")",100);
	return false;
}

window.document.onmouseup = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");

var ie;
var nc;
(document.all)?ie=true:ie=false;
(document.layers)?nc=true:nc=false;
