scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id)
{
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id)
{
  clearTimeout(timerRight);
  document.getElementById(id).scrollLeft+=scrollStep;
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10);
}

function scrollDivRight(id)
{
  clearTimeout(timerLeft);
  document.getElementById(id).scrollLeft-=scrollStep;
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10);
}

function toRight(id)
{
  var scrollable_width = document.getElementById('thumbs_height').value;
  document.getElementById(id).scrollLeft = (scrollable_width-400);
}

function stopMe()
{
  clearTimeout(timerRight);
  clearTimeout(timerLeft);
}

function thumbs_box_scroll_to(id, pos)
{
  document.getElementById(id).scrollLeft = pos;
}


