/* Written by Concentric Sky [Wiggins] (Sep 2009) */

jQuery.fn.equalize = function(options) {
  var defaults = {
    'field': "height"
  };
  var options = $.extend(defaults, options);

  var max_height = 0;
  for (var i=0; i < this.length; i++) {
    var cur_height = $(this[i])[options.field]()
    if (cur_height > max_height)
      max_height = cur_height;
  }
  return this.each(function() {
    $(this).css(options.field, max_height + "px");
  })
}
