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

//1jQuery(function( $ ){
$(document).ready(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.
	 */


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

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

        $('#revista-avivir-texto').serialScroll({
		items:'b',
		duration : 1000,
		force: true,
		axis:'y',
		constant: true,
		easing:'easeOutQuart',
		stop : true,
		interval: 10000, // yeah! I now added auto-scrolling
		step: 1 // scroll 2 news each time
	});


});
