
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - jquery.equalizecols.js - */
/**
 *
 * Copyright (c) 2007 Tom Deater (http://www.tomdeater.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */
 
(function(jq) {
	/**
	 * equalizes the heights of all elements in a jQuery collection
	 * thanks to John Resig for optimizing this!
	 * usage: jq("#col1, #col2, #col3").equalizeCols();
	 */
	 
	jq.fn.equalizeCols = function(){
		var height = 0,
			reset = jq.browser.msie ? "1%" : "auto";
  
		return this
			.css("height", reset)
			.each(function() {
				height = Math.max(height, this.offsetHeight);
			})
			.css("height", height)
			.each(function() {
				var h = this.offsetHeight;
				if (h > height) {
					jq(this).css("height", height - (h - height));
				};
			});
			
	};
	
})(jQuery);

/* - itst_frontpage.js - */
// http://www.itst.dk/portal_javascripts/itst_frontpage.js?original=1
jq(document).ready(function(jq){var jqels=jq(".imagePortletsThreeInContentRow .portletItem").equalizeCols();jq(document).bind("fontresize", function(){jqels.equalizeCols()})});

