function adjustLayout() {
	
	if (1==1) {
	  // Get natural heights
	  var HeightCW = xHeight("contentw");
	  var Height1w = xHeight("col1w");
	  var Height3w = xHeight("col3w");
	  
	
	  // Find the maximum height
	  var maxHeight = Math.max(HeightCW, Math.max(Height1w, Height3w));

	  // Assign maximum height to all columns
	  xHeight("mainw", maxHeight + 1);

	  // Show the footer
	  xShow("footer");
	}
}

function windowResize() {
	
  xAddEventListener(window, "resize", adjustLayout, false);
  adjustLayout();
}