
if (!xIE4 && !xNN4) {
  window.onload = xOnload;
}

////--- Load Event Listener

function xOnload()
{
  // Compatibility check
  var me = xGetElementById('myMenu1');
  if (!xDef(me.nodeName, me.firstChild, me.nextSibling)) {
    return;
  }

  // myMenu1

var offset = -2;
if (opera || (!opera && !document.all)) {offset = -2;}
else {offset = -4;}


  var mo = new xMenu4(
    me,                       // id str or ele obj of outermost UL
    true,                     // outer UL position: true=absolute, false=static
    true,                     // main label positioning: true=horizontal, false=vertical
    0, offset,                     // box horizontal and vertical offsets
    [-3, -10, -6, -10],       // lbl focus clip array
    [-30, null, null, null],  // box focus clip array
    // css class names:
    'xmBar', 'xmBox',
    'xmBarLbl', 'xmBarLblHvr',
    'xmBarItm', 'xmBarItmHvr',
    'xmBoxLbl', 'xmBoxLblHvr',
    'xmBoxItm', 'xmBoxItmHvr'
  );

  xMnuMgr.add(mo);

  xMnuMgr.load(); // calls the load method of all menus
  xmWinOnResize(); // initial positioning
  myMenu = xGetElementById('topmenu');
  myMenu.style.visibility = "visible";
}

////--- Window Resize Event Listener

function xmWinOnResize() // reposition the 2 menus on the page
{
  xMnuMgr.paint(); // calls the paint method of all menus
}
