// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){

	/**
	 * No need to have only one element in view, you can use it for slideshows or similar.
	 * In this case, clicking the images, scrolls to them.
	 * No target in this case, so the selectors are absolute.
	 */
	
	$('#slideshow').serialScroll({
		items:'li',
		prev:'#promostrip a.prev',
		next:'#promostrip a.next',
		offset:0,
		start:0,
		force:true,
		stop:false,
		cycle:true, //don't pull back once you reach the end
		jump: false, //click on the images to scroll to them
		duration:1000, // how long to animate.
		axis:'x', // which of top and left should be scrolled
		event:'click', // on which event to react.
		step:4, // how many elements to scroll on each action
		lock:false,// ignore events if already animating
		cycle:true, // cycle endlessly ( constant velocity )
		constant:true // use contant speed ?

	});	
});