// Source from: http://dsgdev.wordpress.com/2006/09/25/simple-div-scrolling/

var ourInterval;
var scrollSpeed = 60;
var scrollHeight = 5;


function scrollStart(direction, divID, elementID){

// REPEATED CALL EITHER scrollUp OR scrollDown
ourInterval = setInterval("scroll"+direction+"('"+divID+"')", scrollSpeed);
}
function scrollEnd(which){
// STOP CALLING THE SCROLL FUNCTION
clearInterval(ourInterval);
}


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;
}
