//popupmevents.js

// (use this only if there is no table of contents additional menus)

with (pMenu)
{
startMenu('mInstructions', true, 100, -20, 300, hInstructions) ;
addItem('...Clicking Menu items goes to other pages...','','');
addItem('(follow cascaded menus to their headings)','','') ;
addItem('Site Guide summarises pages','siteguide_m.htm','') ;
}

// rest of this is straight out of the helix code

//object.onevent = function()

if (!isNS4)
{
 pMenu.update(true);
 //anotherMenu.update(true);
}
else
{
 var popOldOL = window.onload;
 window.onload = function()
 {
  if (popOldOL) popOldOL();
  pMenu.update();
 }
}

var nsWinW = window.innerWidth, nsWinH = window.innerHeight, popOldOR = window.onresize;
window.onresize = function()
{
 if (popOldOR) popOldOR();
 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) history.go(0);
 pMenu.position();
 //anotherMenu.position();
}

window.onscroll = function()
{
 pMenu.position();
}

if (isNS4)
{
 document.captureEvents(Event.CLICK);
 document.onclick = function(evt)
 {
  with (pMenu) if (overI) click(overM, overI);
  return document.routeEvent(evt);
 }
}

if (!isIE || isOp)
{
 var nsPX=pageXOffset, nsPY=pageYOffset;
 setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' +
 '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50);
}

































