function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",175,15,"Arial, Helvetica, sans-serif",10,"#666666","#66ccff","#ffffff","#ffffff");
  fw_menu_0.addMenuItem("CONTINUOUS INK JET","location='../products.asp?Tech=CIJ'");
  fw_menu_0.addMenuItem("DOD INK JET","location='../products.asp?Tech=DOD'");
  fw_menu_0.addMenuItem("LASER CODING","location='../products.asp?Tech=LAS'");
  fw_menu_0.addMenuItem("LABEL PRINTER APPLICATORS","../location='products.asp?Tech=LPA'");
  fw_menu_0.addMenuItem("LABEL APPLICATORS","location='../products.asp?Tech=LA'");
  fw_menu_0.addMenuItem("IN-LINE THERMAL TRANSFER","location='../products.asp?Tech=TTO'");
  fw_menu_0.addMenuItem("LABEL PRINTERS & SOFTWARE", "location='datamax_teklynx/cat_label_printers.htm'");
  fw_menu_0.addMenuItem("SOFTWARE", "location='../products.asp?Tech=SFW'");
  //fw_menu_0.addMenuItem("SCANNERS & ACCESSORIES","location='cat_scanners.htm'");
  //fw_menu_0.addMenuItem("OFFSET PRINTERS","location='../matthews/cat_offset_printers.htm'");
  fw_menu_0.addMenuItem("NEW PIG ABSORBENTS","window.open('http://www.newpig.com.au','_blank');");
  //To add a new category item, copy the above code, change "NEW PIG ABSORBENTS" to "your category name",
  //and change "location='cat_offset_printers.htm'" to "location='your_category.htm'"
  
  // create info menu
  window.fw_menu_1 = new Menu("root",175,15,"Arial, Helvetica, sans-serif",10,"#666666","#66ccff","#ffffff","#ffffff");
  fw_menu_1.addMenuItem("NEWS @ MATTHEWS","location='../news/news.asp'");
  fw_menu_1.addMenuItem("APPLICATION STORIES","location='../news/application.asp'");
  fw_menu_1.addMenuItem("INDUSTRY INFO","location='../news/IndustryInfo.asp'");
  fw_menu_1.addMenuItem("HINTS & TIPS","location='../news/Hints&Tips.asp'");
  fw_menu_1.addMenuItem("PRIVACY POLICY","location='../news/privacy.htm'");
  fw_menu_1.addMenuItem("TERMS & CONDITIONS","location='../news/terms&conditions.htm'");
  fw_menu_1.addMenuItem("THE CHAMELEON","location='../news/TheChameleon.htm'");
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
  // To add a new menu item to this menu, copy the following line of code, paste before
  // this comment section, uncomment and change the values as required.
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
    
  // create support menu
  window.fw_menu_2 = new Menu("root",175,15,"Arial, Helvetica, sans-serif",10,"#666666","#66ccff","#ffffff","#ffffff");
  fw_menu_2.addMenuItem("CUSTOMER SUPPORT","location='../support.htm'");
  fw_menu_2.addMenuItem("DOWNLOADS","location='../Downloads.htm'");
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
  // To add a new menu item to this menu, copy the following line of code, paste before
  // this comment section, uncomment and change the values as required.
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
    
  // create newsletter menu
  window.fw_menu_3 = new Menu("root",115,15,"Arial, Helvetica, sans-serif",10,"#666666","#66ccff","#ffffff","#ffffff");
  fw_menu_3.addMenuItem("SUBSCRIBE","location='../subscribe.htm'");
  fw_menu_3.addMenuItem("CURRENT","location='../subscribe1.htm'");
  fw_menu_3.addMenuItem("LAST MONTH","location='../news/newsletter/IntelligentInfolast.asp'");
  fw_menu_3.addMenuItem("ARCHIVE","location='../news/newsletter/archive.asp'");
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");
  // To add a new menu item to this menu, copy the following line of code, paste before
  // this comment section, uncomment and change the values as required.
  //fw_menu_1.addMenuItem("<-- ADD MENU OPTION HERE -->","location='default.htm'");

    // create about menu
  window.fw_menu_4 = new Menu("root",155,15,"Arial, Helvetica, sans-serif",10,"#666666","#66ccff","#ffffff","#ffffff");
  fw_menu_4.addMenuItem("COMPANY PROFILE","location='../about.htm'");
  fw_menu_4.addMenuItem("CAREERS AT MATTHEWS","location='../careers.htm'");

  fw_menu_0.hideOnMouseOut=true;
  fw_menu_1.hideOnMouseOut=true;
  fw_menu_2.hideOnMouseOut=true;
  fw_menu_3.hideOnMouseOut=true;
  fw_menu_4.hideOnMouseOut=true;
    
  fw_menu_0.writeMenus();
  fw_menu_1.writeMenus();
  fw_menu_2.writeMenus();
  fw_menu_3.writeMenus();
  fw_menu_4.writeMenus();

} // fwLoadMenus()
