
// 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;
};

function InfoStop() {
	$('#s2').stop().trigger( 'stop' );
}

function InfoStart() {
	$('#s2').stop().trigger( 'start' );
}
function InfoPrev() {
	$('#s2').stop().trigger( 'prev' );
}
function InfoNext() {
	$('#s2').stop().trigger( 'next' );
}

function LanceInfo() {
	
	var $news = $('#s2');

	$news.serialScroll({
		items:'div',
		duration:8000,
		force:true,
		axis:'y',
		easing:'linear',
		lazy:true,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval:1, // yeah! I now added auto-scrolling
		step:1 // scroll 2 news each time
	});

 	$('#s2').hover(function(){
		$(this).stop().trigger('stop');
	},function(){
		$(this).stop().trigger('start');
	});
	
			//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)		
		//start: 0, // On which element (index) to begin ( 0 is the default, redundant in this case )		


}
