// 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(){
$('#screen').serialScroll({
	target:'#novedades',
	items:'li', // Selector to the items (relative to the matched elements)
	prev:'img.prev',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
	next:'img.next',// Selector to the 'next' button (absolute too)
	duration:700,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
	force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
	onBefore:function( e, elem, $pane, $items, pos ){
		/**
		 * 'this' is the triggered element 
		 * e is the event object
		 * elem is the element we'll be scrolling to
		 * $pane is the element being scrolled
		 * $items is the items collection at this moment
		 * pos is the position of elem in the collection
		 * if it returns false, the event will be ignored
		 */
		 //those arguments with a $ are jqueryfied, elem isn't.
		e.preventDefault();
		if( this.blur )
			this.blur();
	}
});

});
