(function($) {
    $.fn.equalHeights = function(minHeight, maxHeight) {
        tallest = (minHeight) ? minHeight : 0;
        this.each(function() {
            if(jQuery(this).height() > tallest) {
                tallest = jQuery(this).height();
            }
        });
        if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
        return this.each(function() {
            jQuery(this).height(tallest).css("overflow","auto");
        });
    }
})(jQuery);
