// 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( $ ){
	$('#slideshow').serialScroll({
		items:'li',
		prev:'#bsprev',
		next:'#bsnext',
		offset:2,  
		start:5, 
		duration:1200,
		step:4,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		constant: false,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //don't click on the images to scroll to them
	});
	
	$('#bsslide').serialScroll({
		items:'li',
		prev:'#bsprev',
		next:'#bsnext',
		offset:2,  
		start:0, 
		duration:1200,
		step:4,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		constant: false,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //don't click on the images to scroll to them
	});

	$('#newslide').serialScroll({
		items:'li',
		prev:'#newprev',
		next:'#newnext',
		offset:2,  
		start:0, 
		duration:1200,
		step:4,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		constant: false,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //don't click on the images to scroll to them
	});
	
	$('#featuredslide').serialScroll({
		items:'li',
		prev:'#featuredprev',
		next:'#featurednext',
		offset:2,  
		start:0, 
		duration:1200,
		step:4,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		constant: false,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //don't click on the images to scroll to them
	});
});