var sRepeat=null
function doScroller(dir, src, amount) {
	if (window.document.readyState=="loading") alert("目錄正在下載，請稍候.");
	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 {
		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 + ")",150);
	return false;
}


window.document.onmouseup = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");

