		$.easing.elasout = function(x, t, b, c, d) {
			var s=1.70158;var p=0;var a=c;
			if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
			if (a < Math.abs(c)) { a=c; var s=p/4; }
			else var s = p/(2*Math.PI) * Math.asin (c/a);
			return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
		};
	
		jQuery(function( $ ){
			$('#sections').serialScroll({
				items:'li', //selector to the items ( relative to the matched elements, '#sections' in this case )
				prev:'#screen img.prev',//selector to the 'prev' button (absolute!, meaning it's relative to the document)
				next:'#screen img.next',//selector to the 'next' button (absolute too)
				axis:'x',//the default is 'y'
				event:'click',//on which event to react (click is the default, you probably won't need to specify it)
				stop: false,//each click will stop any previous animations of the target. (false by default)
				lock: true, //ignore events if already animating (true by default)
				duration:800,//length of the animation
				start: 0, //on which element (index) to begin ( 0 is the default, redundant in this case )
				force:true, //force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
				cycle: true,//cycle endlessly ( constant velocity, true is the default )
				step: 1, //how many items to scroll each time ( 1 is the default, no need to specify )
				jump: false, //if true, items become clickable (or w/e 'event' is, and when activated, the pane scrolls to them)
				lazy:false,//(default) if true, the plugin looks for the items on each event(allows AJAX or JS content, or reordering)
				onBefore:function( e, elem, $pane ){
					/**
					 * '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
					 * if it returns false, the event will be ignored
					 */
				},
				onAfter:function( elem ){
					//'this' is the element being scrolled
				}
			});
			
			/**
			 * No need to have only one element in view, you can use it for 
			 * slideshows or similar. In this case, clicking the images, scrolls to them.
			 */
			
			$('#slideshow').serialScroll({
				items:'li',
				prev:'#screen2 a.prev',
				next:'#screen2 a.next',
				axis:'x',
				offset:-230, //when scrolling to photo, stop 250 before reaching it (from the left)
				start:1, //as we are centering it, start at the 2nd
				duration:1200,
				force:true,
				cycle:false, //don't pull back once you reach the end
				easing:'elasout', //use this easing equation for a funny effect
				jump: true //click on the images to scroll to them
			});
			
			/**
			 * The call below, is just to show that you are not restricted to prev/next buttons
			 * In this case, the plugin will react to a custom event on the container
			 * You can trigger the event from the outside.
			 */
			
			var $newsTicker = $('#news-ticker');
			$newsTicker.serialScroll({
				items:'div',
				next: $newsTicker,//odd huh, the container itself will get bound
				duration:700,
				force:true,
				axis:'y',
				lazy:true,//NOTE: it's set to true, meaning you can/remove/reorder the items and the changes are taken into account.
				step:1, //scroll 2 news each time
				event:'showNext' //just a random event name
			});
			
			setInterval(function(){//scroll each 5 seconds
				$newsTicker.trigger('showNext');
			}, 4000 );
			
			/**
			 * The following you don't need to see, is just for the "Add 2 Items" and "Shuffle"" button
			 * This exemplifies the use of the option 'lazy'.
			 */
			$('#add-news').click(function(){
				var 
					$items = $newsTicker.find('div'),
					num = $items.length + 1;
					
				$items.slice(-2).clone().find('h4').each(function(i){
					$(this).text( 'News ' + (num + i) );
				}).end().appendTo($newsTicker);
			});
			$('#shuffle-news').click(function(){//don't shuffle the first, don't wanna deal with css
				var shuffled = $newsTicker.find('div').slice(1).get().sort(function(){
					return Math.round(Math.random())-0.5;
				});
				$(shuffled).appendTo($newsTicker);
			});
		});