// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready
$(document).ready(function() {

$(".bt-overlay").overlay({
	effect: 'drop',
	expose: '#000'
});
});
// create custom animation algorithm for jQuery called "drop" 
$.easing.drop = function (x, t, b, c, d) {
	return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
};

// create custom overlay effect for jQuery Overlay
$.tools.overlay.addEffect("drop",  
	
	// loading animation
	function(done) { 
		var animateProps = {
			top: '+=55', 
			opacity: 1
			//width: '+=20'
		};
		this.getOverlay().animate(animateProps, "medium", 'drop', done).show();
	}, 
	
	// closing animation
	function(done) {
		var animateProps = {
			top: '-=55', 
			opacity: 0
			//width: '-=20'
		};
		this.getOverlay().animate(animateProps, "fast", 'drop', function()  {
			$(this).hide();
			done.call();		
		});
	}
);


$(".bt-overlay").overlay({
	effect: 'drop',
	expose: '#000'
});
//$(document).ready(function(){
////Default Action
//$("li.homenavbt").addClass("current_page_item").show(); //Activate first tab
//}); 

