
//	script name: EasyScroller 1.0
//	this script was written by Benjamin Smith
//	e-mail: benji@yarnfarm.com
//	copyright (c) 2000, ScrewDriver-Scripts
//	Permission granted for the use and modification of this script if notice remains intact.
//	Thanks for using ScrewDriver-Scripts!!
//	:-)

<!--Begin hiding from stupid browsers

var timerID=null;

function doit()
{
self.scrollBy(0,1); //change the x,y values (pixels) eg. scrollBy(8,8) is 8px,8px (faster scrolling)
}

function scrolldown()
{
timerID = self.setInterval('doit()', 1); //sets the smoothness of scrolling (eg. 1 = very smooth, 10 = glitchy)
}


//WARNING!! DO NOT ALTER BELOW THIS LINE, 'CEPT IF YOU KNOW WHAT YOU'RE DOING :-)

function stopscroll()
{
self.clearInterval(timerID); //this invokes the scrolling
}

function totop()
{
self.scrollTo(0,0) //this is the coordinates the user goes to when pressing a key
}

if(document.layers)
{   
document.captureEvents(Event.MOUSEUP | Event.ONDBLCLICK | Event.KEYDOWN);
}

document.ondblclick=scrolldown;
document.onmouseup=stopscroll;
document.onkeydown=totop;

window.onload=scrolldown
//end hiding-->
