// 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( $ ){
	$('#scroll').serialScroll({
		target:'#sections',
		items:'div.sc',
		prev:'a.prev',
		next:'a.next',
		axis:'x',
		duration:500,
		force:true,
		interval:5000
	});
	
	$('.ref').serialScroll({
		target:'.sections',
		items:'div.sc',
		prev:'a.prev',
		next:'a.next',
		axis:'x',
		duration:500,
		force:true
	});
});
