
// wait until document is fully scriptable
$(document).ready(function() {
 
	// select #flowplanes and make it scrollable. use circular and navigator plugins
	$("#content").scrollable({ 
	
	circular: false, 
	mousewheel: false,
	speed: 1000,
	easing: 'custom'
	
	}).navigator({
 
		// select #flowtabs to be used as navigator
		navi: "#globalnav",
 
		// 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',
 
		// make browser's back button work
		history: true,
	});
	
	
	
	
	
	
	
	
	// select #flowplanes and make it scrollable. use circular and navigator plugins
	$("#trajitems").scrollable({ 
	
	circular: false, 
	mousewheel: true,
	speed: 400,
	easing: 'custom'
	
	}).navigator({
 
		// select #flowtabs to be used as navigator
		navi: "#trajnav",
 
		// 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',
 
		// make browser's back button work
		history: true,
	});
	
	
	$("#trajnav_first").addClass("current");

	
});



$.easing.custom = function (x, t, b, c, d, s) {
		if (s == undefined) 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;

}
