// JavaScript Document


var ourInterval;
var scrollSpeed = 10;
var scrollHeight = 2;

function scrollStart(direction, divID, elementID){	
	scrollInterval = setInterval("scroll"+direction+"('"+divID+"')", scrollSpeed);// REPEATED CALL EITHER scrollUp OR scrollDown
}
function scrollEnd(which){
	clearInterval(scrollInterval);// STOP CALLING THE SCROLL FUNCTION
}
function scrollUp(which){
	// SET THE SCROLL TOP
	document.getElementById(which).scrollTop = document.getElementById(which).scrollTop - scrollHeight;
}
function scrollDown(which){
	// SET THE SCROLL TOP
	document.getElementById(which).scrollTop = document.getElementById(which).scrollTop + scrollHeight;
}
