<!-- Browser Check -->
var iens6
var ns4
iens6=document.all||document.getElementById
ns4=document.layers

<!--GLOBAL SCROLLER VARIABLES-->

var scrollspeed = 20 <!-- scrollspeed, lower is faster -->

var step=5
var contentobj
var contentheight
var theobj
var theheight
var thename
var thecontainer
var theScroller
var timerup
var timerdown
var timerupname
var timerdownname
<!--END GLOBAL SCROLLER VARIABLES-->

<!--GLOBAL SCROLLER FUNCTIONS-->
function director(incomingScroller,theFunction) {
stopall()
theScroller=incomingScroller
theobj = "contentobj"+theScroller
theheight = "contentheight"+theScroller


if(iens6){
	thename = "content"+theScroller
	theobj=document.getElementById? document.getElementById(thename):document.all.thename
	if (theobj) theheight=theobj.offsetHeight; else theheight=0;
	if (document.getElementById&&!document.all){
   		step=5
	}
}else if(ns4){
	thename = "nscontent"+theScroller
	thecontainer = "nscontainer"+theScroller
	theobj = eval("document."+thecontainer+".document."+thename)
	if (theobj) theheight=theobj.clip.height
}
	if(theFunction=="sd") {
		timerdown="window.down"+theScroller
		timerdownname="down"+theScroller
		scrolldown()
	}else if(theFunction=="su") {
		timerup="window.up"+theScroller
		timerupname="up"+theScroller
		scrollup()
	}else if(theFunction=="sa") {
		stopall()
	}else if(theFunction=="st") {
		shifttotop()
	}
}
<!-- scroll down function -->
function scrolldown() {
	if (theobj) 
	{
	if(iens6&&parseInt(theobj.style.top)>=(theheight*(-1.3)+100)){
		theobj.style.top=parseInt(theobj.style.top)-step
	}else if(ns4&&theobj.top>=(theheight*(-1.3)+100)){
		theobj.top-=step
	}
	}
	timerdownname = setTimeout("scrolldown()",scrollspeed)
}
<!-- scroll up function -->
function scrollup() {
	if (theobj) 
	{
	if(iens6&&parseInt(theobj.style.top)<=0){
		theobj.style.top=parseInt(theobj.style.top)+step
	}else if(ns4&&theobj.top<=0){ 
		theobj.top+=step
	}
	}
	timerupname = setTimeout("scrollup()",scrollspeed)	
}
<!-- function to stop all scroll timers -->
function stopall() {
	if(timerup){
		clearTimeout(timerupname)
	}
	if(timerdown){
		clearTimeout(timerdownname)
	}
}
<!-- function that shifts the object to top -->
function shifttotop(){
	stopall()
	if (theobj)
	{
	if (iens6) {
		theobj.style.top=0
	}else{
		theobj.top=0
	}
	}
}
<!--END GLOBAL SCROLLER FUNCTIONS-->