$.browser.msie6 = $.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent);

jQuery.fn.fixBox = function() {
  return this.each(function() {
    var $$ = $(this);
    var hd = $$.outerHeight() - $$.height();
    var wd = $$.outerWidth() - $$.width();
    
    if (!$$.boxModel) {
      if ($$.css("height") != "auto" && hd > 0) $$.height($$.outerHeight() + hd);
      if ($$.css("width") != "auto" && wd > 0) $$.width($$.outerWidth() + wd);
    }
  });
};

jQuery.fn.fixMinHeight = function() {
  return this.each(function() {
    if ($(this).height() < parseInt($(this).css("min-height"))) $(this).height($(this).css("min-height"));
  });
};