/** 
	JQuery plugin til at lave samme højde på DIV tags
	Usage: $("#LeftPane, #ContentPane, #RightPane").makeSameHeight();
	Licens: GPL
**/
(function($) {
	$.fn.makeSameHeight = function(){
		var defheight = 0; /* default height */
		var div = this.css("height", "auto").each(function(){
			defheight = Math.max(defheight, this.offsetHeight); /* Set default height to max */
		});
		
		div.css("height", defheight).each(function() {
			var oh = this.offsetHeight;
			if (oh > defheight) {
				$(this).css("height", defheight - (oh-defheight));
			};
		});
	};
	
})(jQuery);