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

		jQuery(function( $ ){
	
			var intval = 5000;//how often to autoscroll (in milliseconds)
			
			$('#slideshow').serialScroll({
				target:'.case',
				items:'.case',
				prev:'#scroll a.back',
				next:'#scroll a.next',
				axis:'x',
				offset:0, 
				start:0, 
				duration:1000,
				force:true,
				jump:true,
				stop:true,
				interval:intval,
				cycle:true, 
				easing:'easeInOutQuart', 
			});
	// You can temove the .stop() to let it finish the active animation
	$('#slideshow').hover(function(){
		$(this).trigger('stop');
	},function(){
		$(this).trigger('start');
	});

	});