// execute vertical scroll for items on homepage
jQuery(function() {
	
	jQuery.easing.custom = function (x, t, b, c, d) {
		var s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	}
	
	jQuery(".home-box-news").scrollable({
		easing: 'custom', 
		vertical: true, 
		circular: true, 
		next: "#actions-news .next",
		prev: "#actions-news .prev"
	}).autoscroll({ autoplay: true, interval: 6000 });
	var id = setTimeout(function(){
		jQuery(".home-box-film").scrollable({
			easing: 'custom', 
			vertical: true, 
			circular: true, 
			next: "#actions-film .next",
			prev: "#actions-film .prev"
		}).autoscroll({ autoplay: true, interval: 6000 });
	},200);
	var id2 = setTimeout(function(){
		jQuery(".home-box-image").scrollable({
			easing: 'custom', 
			vertical: true, 
			circular: true, 
			next: "#actions-image .next",
			prev: "#actions-image .prev"
		}).autoscroll({ autoplay: true, interval: 6000 });
	}, 400);
});
