window.addEvent('domready', function(){ 
	var totIncrement		= 0;
	var increment			= 600;
	var maxRightIncrement	= increment*(-16); //aumentar si se quiere agregar un item más
	var fx = new Fx.Style('myList', 'margin-left', {
			// Indicamos la velocidad en milisegundos que va a tardar en cambiar la imagen
			duration: 800,
			transition: Fx.Transitions.Back.easeInOut,
			wait: true
	});
	$('previous').addEvents({ 
	  'click' : function(event){ 
	  if(totIncrement<0){
				totIncrement = totIncrement+increment;
				fx.stop()
				fx.start(totIncrement);
			}
		}			  	  
	}); 
	$('next').addEvents({ 
	  'click' : function(event){ 
		 if(totIncrement>maxRightIncrement){
			 totIncrement = totIncrement-increment;
			fx.stop()
			fx.start(totIncrement);
		}
	  }		  		  
	})
});