﻿
jQuery(function ($) {
    
	/**
	 * Most jQuery.serialScroll's settings, actually belong to jQuery.ScrollTo, check it's demo for an example of each option.
	 * @see http://flesler.demos.com/jquery/scrollTo/
	 * You can use EVERY single setting of jQuery.ScrollTo, in the settings hash you send to jQuery.serialScroll.
	 */
	/**
	 * 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 $news = $('#news-ticker');//we'll re use it a lot, so better save it to a var.
	$news.serialScroll({
		items:'div',
		duration:1500,//mills time for cycling
		force:true,//Scroll is forced at start
		axis: 'y', //Scrolls the Y axis
		lazy: true,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval: 4000, // Millis to stop between autoscrolling
		step:1 // scroll 2 news each time
	});	
	
});


