$(document).ready(function() {
	
	$('#cadre_taux_fixe').corner("keep");
	$('#cadre_taux_revisable').corner("keep");
	
	
	// 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;
		}
	
	 
	var root = $(".scrollable").scrollable({easing: 'custom',speed: 700,   vertical: true, mousewheel: true, circular: true }).autoscroll({ autoplay: false });	
	window.api = root.data("scrollable");
	api.play();
	
	});
