if (document.getElementById || document.all) {
	window.onload = winOnLoad;
}

function winOnLoad()
{
	var ele = xGetElementById('left');
	if (ele && xDef(ele.style, ele.offsetHeight)) { // another compatibility check
		adjustLayout();
		xAddEventListener(window, 'resize', winOnResize, false);
  	}
}

function winOnResize()
{
	adjustLayout();
}

function adjustLayout()
{
	// Get content heights
	var lHeight = xHeight('leftContent');
	var rHeight = xHeight('rightContent');
	
	// Find the maximum height
	var maxHeight = Math.max(lHeight, rHeight);
	
	// Assign maximum height to all columns
	xHeight('left', maxHeight);
	xHeight('right', maxHeight);
}
