var scrollStep;
var timerLeft;
var timerRight;

scrollStep=2

timerLeft=""
timerRight=""

function faster(){
    scrollStep=6
}

function slower(){
    scrollStep=2
}

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight)
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}


function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollHeight
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function stopMe(){
  clearTimeout(timerRight)
  clearTimeout(timerLeft)
}
