(function($) {
  $.fn.minHeight = function(minHeight) {
    tallest = (minHeight) ? minHeight : 0;
    this.each(function() {
      if ($(this).height() > tallest) {
        $(this).height($(this).height());
      } else {
        $(this).height(tallest);
      }
    });

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