// 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( $ ){
	$('#slider-wrap').serialScroll({
		target:'#slider',
		items:'.panel',
		axis:'x',
		duration:500,
		force:true,
		interval:5000,
		onBefore:function( e, elem, $pane, $items, pos ){
			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
		}
	});
	
		$('.panel').hover(
		function(){
		$(this).trigger('stop');
		},
		function(){
		$(this).trigger('start');
		});
});