/*
 * jQuery equalheights plugin
 * Copyright (c) 2009 Michael Eichelsdoerfer
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 */

// Browser sniffing is deprecated since jQuery 1.3;
// so we hope that IE6 shall vanish from our planet soon.

(function($){
	$.fn.equalHeights = function(){
		var tallest = 0;
		$(this).each(function(){
			$(this).css({'min-height': '0'});				
			if($.browser.msie && $.browser.version < 7){
				$(this).css({'height': '0'});
			}
			if($(this).height() > tallest){
				tallest = $(this).height();
			}
		});
		$(this).each(function(){
			$(this).css({'min-height': tallest+'px'});			
			if ($.browser.msie && $.browser.version < 7){
				$(this).css({'height': tallest+'px'});
			}
		});
	};
})(jQuery);

