	
// Gjør bokshøyde som den største for alle som bruker denne klassen - $(".classenavn").bokshoyde();
$.fn.bokshoyde=function(px){$(this).each(function(){var h=0;$(this).children().each(function(i){var height=$(this).height();if(height>h){h=height;}});$(this).children().css({"height": h});});return this; }  
$.fn.equalHeights = function(minHeight, maxHeight) {
	tallest = (minHeight) ? minHeight : 0;
	this.each(function() {
		if($(this).height() > tallest) {
			tallest = $(this).height();
		}
	});
	if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
	return this.each(function() {
		$(this).height(tallest).css("overflow","auto");
	});
} 
