/**
* @author Mathieu Habegger
* @url http://www.habegger-bros.ch
*/

(function($) { 
		   
	$.fn.equalHeight = function(options) {
	//function equalHeight(group) {
		// in 1.3+ we can fix mistakes with the ready state
		if (this.length == 0) {
			if (!$.isReady && this.selector) {
				var s = this.selector, c = this.context;
				$(function() {
					$(s,c).equalHeight(options);
				});
			}
			return this;
		}
		
		var tallest = 0;
		this.each(function() {
			var thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		this.height(tallest);
	}
	
})(jQuery);
