// JS for FLOW3 website, requires jQuery
// @author christian jul jensen, http://mocsystems.com

// '$' replaced with 'jQuery' - conflict / rating plugin anders@linkfactory.dk

equalHeightCols = {
	selectors: '#left-container, #middle-container, #right-container',

	colHeight: null,

	resize: function() {
		jQuery(equalHeightCols.selectors)
		.each(
			function(){
				equalHeightCols.colHeight = Math.max(jQuery(this).height(),equalHeightCols.colHeight);
			}
		).each(
			function(){
				jQuery(this).height(equalHeightCols.colHeight);
			}
		);
	}
}

doc = {
	load : function() {
		//fixing border for last element in Rabat
		jQuery(".csc-textpic:last").css({"border":"0"});
		jQuery(document).resize(doc.resize);
		doc.resize();
	},

	resize : function() {
		equalHeightCols.resize();
	}
}

jQuery(doc.load);


