(function($){

	$.fn.equalizeHeights = function() {
		var opt = {};
		var height;
		this.each(function(){
			// extend our default options with anything passed in by user
			$.extend(opt, $.fn.equalizeHeights.defaults, arguments[0] || {});
			
			// our extended element
			var el = $(this);
			if(!height)
				height = el.height();
			else
				height = (el.height() > height) ? el.height() : height;
		});
		
		return this.each(function(){
			$(this).height(height);
		});
				
	};
	
	// Default options for the plugin.
	$.fn.equalizeHeights.defaults = {};
	
})(jQuery);