function stopMe() { clearTimeout(timerRight); clearTimeout(timerLeft) } function toRight(a) { document.getElementById(a).scrollLeft = document.getElementById(a).scrollWidth } function scrollDivRight(a) { clearTimeout(timerLeft); document.getElementById(a).scrollLeft -= scrollStep; timerLeft = setTimeout("scrollDivRight('" + a + "')", 10) } function scrollDivLeft(a) { clearTimeout(timerRight); document.getElementById(a).scrollLeft += scrollStep; timerRight = setTimeout("scrollDivLeft('" + a + "')", 10) } function toLeft(a) { document.getElementById(a).scrollLeft = 0 } scrollStep = 4; timerLeft = ""; timerRight = ""
