var minspeed = 1var maxscrollspeed = 5var scrollspeedvar accelerating = falsevar deccelerating = falsevar acceleration = .15var decceration = .2var currentDirection = nullscrolling = falsethelength = 1368;function initialize(){	upArrow = document.all? parent.document.all.upArrow : parent.document.getElementById("upArrow");	downArrow = document.all? parent.document.all.downArrow : parent.document.getElementById("downArrow");	marqueeheight=document.all? parent.document.all.scrollMenu.height : parent.document.getElementById("scrollMenu").getAttribute("height")	upArrow.onmouseover=checkScroll;	upArrow.onmouseout=stopScroll;	downArrow.onmouseover=checkScroll;	downArrow.onmouseout=stopScroll;		dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")		// allow short period so that real offsetHeight of dataobj can be calculated	// IE 5 WIN often displays 0	setScrollTop=setTimeout("setTop()",200)}function setTop()  {	thelength=dataobj.offsetHeight	dataobj.style.top=(thelength/2) * -1 - vOffset	if (setScrollTop){		clearInterval(setScrollTop);	}}function checkScroll() {	if(this.id == "upArrow") {		direction = 1	} else {		direction = -1	}	// scroll has been stopped	if(currentDirection == null) {		currentDirection = direction;		scrolling = true		accelerating = true		deccelerating = false		scrollspeed = minspeed		// user has moved off arrow and moved back on 		// while scroll is still moving	} else if(currentDirection == direction){		// change of direction				if (recursiveScroll){			clearInterval(recursiveScroll); 		}		accelerating = true		deccelerating = false	} else {		if (recursiveScroll){			clearInterval(recursiveScroll); 		}		currentDirection = direction;		accelerating = true		deccelerating = false		scrollspeed = minspeed		}						scrolltest(direction)}function scrolltest(direction){		if(scrollspeed == null) {		//accelerating = true		//scrollspeed = minspeed	}	if(accelerating) {		if (scrollspeed < maxscrollspeed) {			scrollspeed = scrollspeed + acceleration		} else {			accelerating = false			scrollspeed = maxscrollspeed		}	}		if(deccelerating) {		if (scrollspeed > 0) {			scrollspeed = scrollspeed - decceration		} else {					deccelerating = false			scrollspeed = 0			killScroll()			return		}							}				var newPosition = parseInt(dataobj.style.top)+(scrollspeed * direction)	if ( newPosition < thelength/2*(-1)) {		newPosition = newPosition + (thelength/2)	}		if (newPosition>=0) {	newPosition = newPosition - (thelength/2)	}		dataobj.style.top=newPosition	recursiveScroll=setTimeout("scrolltest(" + direction + ")",50)}		function stopScroll() {	accelerating = false	deccelerating = true			}function killScroll() {		if (recursiveScroll){		clearInterval(recursiveScroll);		recursiveScroll = null		deccelerating = false		scrollspeed = null		scrolling = false		currentDirection = null;	}			}
