if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"script type='text/javascript' src='../scripts/x_core.js'><"+"/script>");
  document.write("<"+"script type='text/javascript' src='../scripts/x_event.js'><"+"/script>");
  document.write("<"+"style type='text/css'>#footer{visibility:hidden;}<"+"/style>");
  window.onload = winOnLoad;
}
function winOnLoad()
{
  var ele = xGetElementById('leftColumn');
  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 mainHeight = xHeight('mainContent');
  var sideHeight = xHeight('leftColumn');
  var footerHeight = xHeight('footer');
  var header = 100; //header is fixed at 100pixels
  var screenHeight = xClientHeight();
  
  // position footer at bottom of page and size internal scrolling box
 // if ((mainHeight+footerHeight+header)  < screenHeight){
  	mainHeight = screenHeight-(footerHeight+header);
	var sb = xHeight('scrollBox');
	if (sb!=0){
		xHeight('scrollBox',mainHeight-75);
	}
 // }
 	
   
  // Find the maximum height
  var maxHeight = Math.max(mainHeight, sideHeight);
  // Assign maximum height to all columns
  xHeight('mainContent', maxHeight);
  xHeight('leftColumn', maxHeight);
  xHeight('rightColumn', maxHeight);

  // Show the footer
  xShow('footer');
}