jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};


$(document).ready(function(){
	$('#home_products_list').serialScroll({
		items:'li',
		prev:'#home_products_nav a.prev',
		next:'#home_products_nav a.next',
		offset:-510, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0,
		duration:1200,
		force:true,
		stop:true,
		interval:1500,
		easing:'linear',
		lock:false,
		cycle:true, //don't pull back once you reach the end
		jump: false //click on the images to scroll to them
	});
	
	// You can temove the .stop() to let it finish the active animation
	$('#home_products_list').hover(function(){
		$(this).stop().trigger('stop');
	},function(){
		$(this).stop().trigger('start');
	});
	
	
/*	$('a.prev').hover(function(){
		$('#home_products_list').stop().trigger('prev');
	},function(){
		$('#home_products_list').stop().trigger('start');
	});
	
	$('a.next').hover(function(){
		$('#home_products_list').stop().trigger('next');
	},function(){
		$('#home_products_list').stop().trigger('start');
	});	
*/
	
});