/**
 * jQuery-Plugin to adjust the height of different objects to the highest or lowest value
 * 
 * based on 'setAllToMaxHeight' by Paul Irish 
 * http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/
 * 
 * @version: 1.0, 27.10.2011
 * 
 * @example: $('selector').objectToMaxHeight();
 * @example: $('selector').height($('selector').objectMinHeight());  
 *              
 * 
 */

(function ($) {
    $.fn.objectToMaxHeight = function(){
    return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
    }
    $.fn.objectMinHeight = function(){
    return Math.min.apply(this, $.map( this , function(e){ return $(e).height() }) );
    }
})(jQuery);

