/*
*
* jQuery.slider 1.0
* jQuery JavaScript Library v1.3.2
* http://jquery.com/

*
* Example
* $('.box').slider({
*    time: 600
* });
*
*/

(function($){
    $.fn.slider = function(options) {
        var
        defaults = {
            time: 300
        },
        settings = $.extend({}, defaults, options);

        this.each(function() {
            var $this = $(this);
            var padding = parseInt($this.find(".content p").css("padding-top")) + parseInt($this.find(".content p").css("padding-bottom"));

            $this.hover(function(){
                $this.find(".content").stop().animate({
                    height: $this.find("p").height() + padding
                }, settings.time );
            }, function() {
                $this.find(".content").stop().animate({
                    height: 0
                }, settings.time );
            });
        });
        // returns the jQuery object to allow for chainability.
        return this;
    }
})(jQuery);

