/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/
Modified by Tito the 40oz King */

scrollStep=1

timerLeft=""
timerRight=""

function toUp(id){
  document.getElementById(id).scrollTop=0
}

function scrollDivUp(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollTop+=scrollStep
  timerRight=setTimeout("scrollDivUp('"+id+"')",10)
}

function scrollDivDown(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollTop-=scrollStep
  timerLeft=setTimeout("scrollDivDown('"+id+"')",10)
}

function toDown(id){
  document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}

