function lang_over (o_menuItem) { 
  o_menuItem.style.borderColor = "#4A84FF";  // light blue  
}

function lang_out (o_menuItem) { 
  o_menuItem.style.borderColor = "#222";  // grey
}

/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////

var win_width = 0, win_height = 0;

function get_win_size () {
  if (typeof(window.innerWidth) == 'number') {
    // non-IE
    win_width = window.innerWidth;
    win_height = window.innerHeight;
  } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
    // IE 6+ in 'standards compliant mode'
    win_width = document.documentElement.clientWidth;
    win_height = document.documentElement.clientHeight;
  } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
    // IE 4 compatible
    win_width = document.body.clientWidth;
    win_height = document.body.clientHeight;
  }
}  // end function get_win_size



/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// functions which hide "container" till everything is loaded and properties set, and then reveal the completed object

var original_bgColor;

function _onbeforeload () {
  document.body.style.visibility = 'hidden';
  original_bgColor = document.body.style.backgroundColor;
  document.body.style.backgroundColor = '#222';
  }

function _onafterload () {
  vertical_realign();
  document.body.style.backgroundColor = original_bgColor;
  document.body.style.visibility = 'visible';
  }



/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// realigns welcome_table vertically to have ideal height of red bottom border

function vertical_realign () {
  
  var o_welcome_table = document.getElementById("welcome_table");
  var o_container = document.getElementById("container");
    
  get_win_size ();

  if (win_height < o_welcome_table.offsetHeight) {
    document.body.style.paddingTop = 0;
    o_container.style.top = '0px';
  } else {
    document.body.style.paddingTop = 0;
    o_container.style.top = (win_height / 2) - Math.round(o_container.offsetHeight / 2) + 'px';
  }
}  // end function vertical_realign



/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////

