// JavaScript Document
var toLeft = function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

var scrollDivLeft = function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

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

var toRight = function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

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

/*
window.addEvent('domready', function(){
	// First Example
	var el = document.getElementById('myElement');

	var id = 'container';
	document.getElementById('container').scrollLeft=document.getElementById('container').scrollWidth;
	var step = document.getElementById('container').scrollLeft;
	document.getElementById('container').scrollLeft=0;
	
	// Create the new slider instance
	new Slider(el, document.getElementById('knob'), {
		steps: step,	// There are 35 steps
		range: [0],	// Minimum value is 8
		onChange: function(value){
			// Everytime the value changes, we change the font of an element
  			document.getElementById('container').scrollLeft=value;
	  	
		}
	});






});*/
