scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){
  if (document.getElementById(id).scrollLeft == 0)
  {
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
  }
  else
  {
  document.getElementById(id).scrollLeft=0
  }
  
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",0)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",0)
}

function toRight(id){
 
  if (document.getElementById(id).scrollLeft == 982)
  {
  document.getElementById(id).scrollLeft=0
  }
  else
  {
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
  }
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}

