<!-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers

<!--GLOBAL SCROLLER VARIABLES-->
var scrollspeed = 1		// Lower, faster 
var step 		= 3		// Higher, faster

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
		theheight = theobj.offsetHeight
		if (document.getElementById&&!document.all){
			step=5
			}
		}
	else if(ns4){
		thename = "nscontent"+theScroller
		thecontainer = "nscontainer"+theScroller
		theobj = eval("document."+thecontainer+".document."+thename)
		theheight=theobj.clip.height
		}
		
	if(theFunction=="scrollDown") {
		timerdown="window.down"+theScroller
		timerdownname="down"+theScroller
		scrolldown()
		}
	else if(theFunction=="scrollUp") {
		timerup="window.up"+theScroller
		timerupname="up"+theScroller
		scrollup()
		}
	else if(theFunction=="stop") {
		stopall()
		}
	}
<!-- scroll down function -->
function scrolldown() {
	if(iens6&&parseInt(theobj.style.top)>=(theheight*(-1)+100)){
		theobj.style.top=parseInt(theobj.style.top)-step
		}
	else if(ns4&&theobj.top>=(theheight*(-1)+100)){
		theobj.top-=step
		}
	timerdownname = setTimeout("scrolldown()",scrollspeed)
	}

<!-- scroll up function -->
function scrollup() {
	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)
		}
}
<!--END GLOBAL SCROLLER FUNCTIONS-->
