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

jQuery(function( $ ){
var $pane = $('#slideshow');
$pane.serialScroll({

	items:'li',
	axis:'y',
	prev:'#buttons a.prev',
	next:'#buttons a.next',
	offset:{left: 0, top:-70}, 
	start:0,
	duration:400,
	force:true,
	stop:true,
	lock:false,
	cycle:false,
	easing:'easeOutQuart', //use this easing equation for a funny effect
	jump: false //click on the images to scroll to them
	});

 $(document).keyup(function(e){
        switch( e.keyCode ){
        	case 40://up 
				$pane.trigger("next");
	    	break;
			case 38://down
				$pane.trigger("prev");
			break;
        }
    });
	
});


/************************************************
If you want to use up and down:
- use 38(up), and 40(down).

To see other keyCodes, check: http://rurl.org/pdl
*************************************************/
