scrollStep=1

timerLeft=""
timerRight=""

var jump

function toLeft(id){
  //alert(jump)
  if (typeof(jump) == "undefined" || jump == 0) {
		jump = 0
	} else if (jump == 560) {
		jump = 0
	} else if (jump == 1020) {
		jump = 560
  } else if (jump == 1580) {
		jump = 1020
	} else if (jump == 2140) {
		jump = 1580
	} else if (jump == 2480) {
		jump = 2140
	} 
	//alert(jump)
  document.getElementById(id).scrollLeft=jump
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep	
	timerRight=setTimeout("scrollDivLeft('"+id+"')",15)
  
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",15)
}

function toRight(id){
	if (typeof(jump) == "undefined" || jump==0) {
		jump = 560
	} else if (jump == 560) {
		jump = 1020
	} else if (jump == 1020) {
		jump = 1580
	} else if (jump == 2140) {
		jump = 2140
	} else if (jump == 2140) {
		jump = 2480
	} else if (jump == 2480) {
		jump = 2480
	}
  
  //document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
  document.getElementById(id).scrollLeft=jump
  //alert(document.getElementById(id).offsetParent.offsetLeft)
  //alert(document.getElementById(id).style.posLeft)
  
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}
