function adjustLayout() {

	// Get natural heights
	var cHeight = xHeight("content");
	var lHeight = xHeight("navigation");
	
	// Find the maximum height
	var maxHeight = Math.max(cHeight, lHeight);
	
	// Assign maximum height to all columns
	xHeight("contentContainer", maxHeight);
	xHeight("navigationContainer", maxHeight);
	
	// Show the footer
	xShow("footer");
}
	// open a dialog //
	function openWindow(url,wndWidth,wndHeight){
	var posX = (screen.width / 2) - (wndWidth / 2);
	var posY = (screen.height / 2) - (wndHeight / 2);
	winProps = 'height='+wndHeight+',width='+wndWidth+',top='+posY+',left='+posX+', scrollbars=yes'
	var newWindow = window.open (url, '', winProps);
	if (window.focus) {
	newWindow.focus()
	};
}
window.onload = function()
{
  xAddEventListener(window, "resize", adjustLayout, false);
  adjustLayout();
}




