// create custom animation algorithm for jQuery called "drop"  
$.easing.drop = function (x, t, b, c, d) { 
	return -c *(t/=d)*(t-2) + b;
}; 
 
// create custom overlay effect for jQuery Overlay 
$.tools.overlay.addEffect("drop",   
     
    // loading animation 
    function(done) {  
        var animateProps = { 
            top: '50',  
            opacity: 1
        };
        this.getOverlay().animate(animateProps, 700, '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();         
        }); 
    } 
);