var initSerialScrollOffset = 0;

var initSerialScroll = function(o) {
		if(o > 0) {
			initSerialScrollOffset = o;

		}
		//alert(o)
		
		jQuery('#sections').serialScroll({
			items:'li', //selector to the items ( relative to the matched elements, '#sections' in this case )
			prev:'#screen span.prev',//selector to the 'prev' button (absolute!, meaning it's relative to the document)
			next:'#screen span.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:500,//length of the animation
			start: initSerialScrollOffset, //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: false,//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 ){},
//			onAfter:function( elem ){} 
		});
};

