/**
 * Fix Heights
 *
 * @author		Luke Robinson <luke@rejuvenateproductions.com>
 * @copyright	Luke Robinson 2010
 * @version		0.6
 */
;(function($){

	$.fn.fixHeights = function(){
		return this.height('auto')
		.height(Math.max.apply(this, $(this).map(function(i,e){return $(e).outerHeight();}).toArray()))
		.each(function(){
			var $e = $(this);
			$e.height($e.height() - ($e.outerHeight() - $e.height()));	   
		});
}

})(jQuery);
