(function( $ ){ $.fn.vsSlideDown = function(callback, animationSpeed) { if (!animationSpeed) { animationSpeed = aniSpeed; } return this.each(function() { $(this).effect('slidev', {direction: 'up', mode: 'show'}, animationSpeed, callback); }); }; $.fn.vsSlideUp = function(callback, animationSpeed) { if (!animationSpeed) { animationSpeed = aniSpeed; } return this.each(function() { $(this).effect('slidev', {direction: 'up', mode: 'hide'}, animationSpeed, callback); }); }; })( jQuery );