/* * * * * Misc. jQuery application of design * * * * */

/* SHARED PAGE TEMPLATE STYLES */

$(document).ready(function() {
	/*$("div.menuBar ul").tabs("div.mainContent > div", {
		effect: 'horizontal'												 
	});*/

	$("div.mainContent").scrollable({ easing: 'custom', speed: 700, mousewheel: false }).navigator({
		navi: ".menu",
		naviItem: 'a',
		activeClass: 'active',
		history: true
	});
	// 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*=(.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(.525))+1)*t + s) + 2) + b;
	}
	
	$(".playLink").fancybox({
		'width' : 1024,
		'height' : 768,
		'overlayOpacity' : 0,
		'autoScale' : false,
		'titleShow' : false,
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'easingIn' : 'easeOutBack',
		'easingOut' : 'easeInBack'
	}); 
});
