/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Original Horizontal Scrolling script Created by: Mr J | http://www.huntingground.net/ */
/* Vertical scroll edited by karamits.com */

scrollStep=3

timerTop=""
timerBottom=""

function toTop(id){
  document.getElementById(id).scrollTop=0
}

function scrollDivTop(id){
  clearTimeout(timerBottom) 
  document.getElementById(id).scrollTop+=scrollStep
  timerBottom=setTimeout("scrollDivTop('"+id+"')",2)
}

function scrollDivBottom(id){
  clearTimeout(timerTop)
  document.getElementById(id).scrollTop-=scrollStep
  timerTop=setTimeout("scrollDivBottom('"+id+"')",2)
}

function toBottom(id){
  document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function stopMe(){
  clearTimeout(timerBottom) 
  clearTimeout(timerTop)
}
