// g_site.js, developped by G. Guerin
// Copyright (C) 2005 G. GUERIN - Do not Distribute
// File Rev: 1

function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("b_center_internal");
  var lHeight = xHeight("b_left_internal");
  var rHeight = xHeight("b_right_internal");
  
  //alert(cHeight);
  //alert(lHeight);
  //alert(rHeight);

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

  // Assign maximum height to all columns
  xHeight("b_center", maxHeight);
  xHeight("b_left", maxHeight);
  xHeight("b_right", maxHeight);

  // Show the footer
  // xShow("b_footer");
}
function myBodyId(c_id)
{
  // @ Gilbert Guerin
  document.getElementsByTagName('body')[0].id=c_id;
}
function myTopMenuId(c_id)
{
		alert ("1");
  alert (c_id);
  // @ Gilbert Guerin
  document.getElementsById('id_topmenu').id=c_id;
}
window.onload = function()
{
  xAddEventListener(window, "resize", adjustLayout, false);
  adjustLayout();
}