// 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( $ ){

		var $nav = $('#banner_block li');
		var $cur = $('#curbanner');
		
		/********* Home banner **********/
	$('#kiosk_homebanner').serialScroll({
		target:'#banner_block',
		items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		prev:'span.banner_prev',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
		next:'span.banner_next',// Selector to the 'next' button (absolute too)
		axis:'x',// The default is 'y' scroll on both ways
		//navigation:'#navigation li a',
		duration:300,// 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)		
		interval:5000,
		
		onBefore:function( e, elem, $pane, $items, pos ){
			
			$nav.removeClass('active');
			$nav.eq(pos).addClass('active');
			var curid= $nav.eq(pos).attr('id').substr(6,1);
			$cur.html(curid);
		}

	});
/***/

});

 
