// common.js

function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("content");
  var lHeight = xHeight("left");
  var rHeight = xHeight("right-in");

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

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

  // Show the footer
  xShow("bot-wrapper");
}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}


/*------------------------------------------------------------------
---  toggle sub section
------------------------------------------------------------------*/
function openSection(id,issub,force) {
   var mye;

   if (document.getElementById) {
      mye = document.getElementById(id);
   } else if (document.all) {
      mye = eval("document.all."+id);
   }
   if (!mye) return;

   if (force) {
      mye.style.display = "";
   } else {
      if (mye.style.display.indexOf("none") >=0)  mye.style.display = "";
      else if (mye.style.display == "")  mye.style.display = "none";
   }
/*   ucalClose(); */
}



// end commmon.js