/* 
// custom easing called "custom"
$.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;
}

// execute your scripts when DOM is ready. this is a good habit

$.easing.custom = function (x, t, b, c, d) {
 var s = 1.70158;
if ((t/=d/2) < 1) return c/5*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}

// use the custom easing
$("div.scrollable").scrollable({easing: 'custom', speed: 700, circular: true}); 


*/



$.easing.custom = function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}


}


$(function() {		
		
	// initialize scrollable 
	$("div.scrollable").scrollable({
		size: 4,
		items: '#thumbs',  
		hoverClass: 'hover',
		circular: true,
		speed:800,
		easing: 'custom',
	});	
	
	

});





