/**
 *  Originally copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 *  Customised to support text-size changes and IE6 by Alex Richter.
*/

(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {			
			if($(this).height() > tallest) {				
				tallest = $(this).height() + 1;
				
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {			
			$(this).css("min-height",tallest);
			if ($.browser.msie && $.browser.version.substr(0,1)<7) {
				// IE 6 fix
				$(this).css("height",tallest);
				
			}
		});
	}
})(jQuery);
