// layout2.js
// Cross-Browser.com & SitePoint.com - Equal Column Height Demo
function windowOpen(href)
{
	winPopup= window.open(href,'','width=300,height=400,scrolling=no,resizable=yes');
	winPopup.focus();
}
if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"script type='text/javascript' src='/js/x_core.js'><"+"/script>");
  document.write("<"+"script type='text/javascript' src='/js/x_event.js'><"+"/script>");
  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('left');
  var rHeight = xHeight('right');

  // Find the maximum height
  var maxHeight = Math.max(lHeight, rHeight);

  // Assign maximum height to all columns
//  xHeight('left', maxHeight);
//  xHeight('right', maxHeight);

//	alert(getElementById("menu").style.height);
  xClientHeight()<(maxHeight+101) ? document.getElementById("menu").style.top=maxHeight+'px' : document.getElementById("menu").style.bottom='0px';
  document.getElementById("menu").style.display='block';
}
