// wait until document is fully scriptable
jQuery(document).ready(function() {
	// select #flowplanes and make it scrollable. use circular and navigator plugins
	jQuery("#flowpanes").scrollable({size: 1, easing: 'custom', speed: 700}).circular().autoscroll({interval:10000}).navigator({
		// select #flowtabs to be used as navigator
		navi: "#flowtabs",
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current'
	});
});

jQuery.easing.custom = function (x, t, b, c, d) {
    var s = 1.10158;
    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;
}

