//*******************************************************
// ItemStyles for newsroomrmenu
//*******************************************************

var mainM = new ItemStyle(25, 1, '', 0, 3, '#848484', '#999999', 'mainOff', 'mainOn', '', '',
  null, null, 'hand', 'default');
var popM = new ItemStyle(12, 1, '&raquo;', -10, 0, '#999999', '#B4B4B4', 'popOff', 'popOn', '', '',
  null, null, 'hand', 'default');

//*******************************************************
// newsroomrmenu
//*******************************************************

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

//*******************************************************
// Start of editable menu section
//*******************************************************

startMenu('root', true, 27, 99, 128, mainM); // This is for your main menu

addItem('&nbsp; Certificates', 'http://www.mtl-inst.com/certs_1.nsf/vwSeries?OpenForm', '');
//addItem('&nbsp; Compatibilty', 'http://www.mtl-inst.com/compati.nsf/vwSupplier?OpenForm', '');
//addItem('&nbsp; Equivalents', 'http://www.mtl-inst.com/cequival.nsf/vwManufacturer?OpenForm', '');
addItem('&nbsp; Downloads', 'http://www.mtl-inst.com/download.nsf/vwDownload?OpenForm', '');
addItem('&nbsp; ', '#', '');
addItem('&nbsp; Product Support', 'popm1', 'sm:');
//addItem('&nbsp; 8000 Sales Info.', 'popm2', 'sm:'); //not for non-distributors
//addItem('&nbsp; Project Tracking', 'http://www.mtl-inst.com/salespro.nsf/vwProjects?OpenForm&ExpandView', '');
addItem('&nbsp; Feedback', 'http://www.mtl-inst.com/mtlsupport.nsf/Feedback?OpenForm', '');
addItem('&nbsp; Logout', 'http://www.mtl-inst.com/mtlsupport.nsf?logout', '');
addItem('&nbsp; ', '#', '');
addItem('&nbsp; ', '#', '');
addItem('&nbsp; ', '#', '');

startMenu('popm1', true, 125, 0, 120, popM); // Product Support popup menu

addItem('&nbsp; By Group', 'http://www.mtl-inst.com/psupport.nsf/vwGroup?OpenForm', '');
addItem('&nbsp; By Series', 'http://www.mtl-inst.com/psupport.nsf/vwSeries?OpenForm', '');
addItem('&nbsp; By Product', 'http://www.mtl-inst.com/psupport.nsf/vwProduct?OpenForm', '');
addItem('&nbsp; By Purpose', 'http://www.mtl-inst.com/psupport.nsf/vwPurpose?OpenForm', '');
addItem('&nbsp; By Document Title', 'http://www.mtl-inst.com/psupport.nsf/vwSubject?OpenForm', '');

//startMenu('popm2', true, 125, 0, 120, popM); // 8000 SIP popup menu - not for non-distributors

//addItem('&nbsp; Sales Tools', 'http://www.mtl-inst.com/8000faq_1.nsf/vwAdverts?OpenForm', '');
//addItem('&nbsp; Benefits', 'http://www.mtl-inst.com/8000faq_1.nsf/vwBenefits?OpenForm', '');
//addItem('&nbsp; Competiton', 'http://www.mtl-inst.com/8000faq_1.nsf/vwCompetition?OpenForm', '');
//addItem('&nbsp; FAQs', 'http://www.mtl-inst.com/8000faq_1.nsf/vwFAQs?OpenForm', '');
//addItem('&nbsp; Glossary', 'http://www.mtl-inst.com/8000faq_1.nsf/vwGlossary?OpenForm', '');
//addItem('&nbsp; Host Interface', 'http://www.mtl-inst.com/8000faq_1.nsf/vwHostInterface?OpenForm', '');
//addItem('&nbsp; Industries and Markets', 'http://www.mtl-inst.com/8000faq_1.nsf/vwIndustries?OpenForm', '');
//addItem('&nbsp; Release Notes', 'http://www.mtl-inst.com/8000faq_1.nsf/vwReleaseNotes?OpenForm', '');

//*******************************************************
// End of editable menu section
//*******************************************************

showDelay = 500;
hideDelay = 500;
}

if (!isNS4)
{
 pMenu.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();
}

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);
 }
}



