/** * mm_menu 20MAR2002 Version 6.0 * Andy Finnell, March 2002 * Copyright (c) 2000-2002 Macromedia, Inc. * * based on menu.js * by gary smith, July 1997 * Copyright (c) 1997-1999 Netscape Communications Corp. * * Netscape grants you a royalty free license to use or modify this * software provided that this copyright notice appears on all copies. * This software is provided "AS IS," without a warranty of any kind. */ function mmLoadMenus() { if (window.mm_menu_4) return; window.mm_menu_4 = new Menu("root",88,18,"",12,"#000000","#FFFFFF","#CCCCCC","#7A9EE2","left","middle",3,0,1000,4,7,true,true,true,0,true,true); mm_menu_4.addMenuItem("Chemical Pump","window.open('contact.asp', '_top');"); mm_menu_4.addMenuItem("Filter System","window.open('contact2.asp', '_top');"); mm_menu_4.addMenuItem("Heat Exchanger","window.open('contact3.asp', '_top');"); mm_menu_4.hideOnMouseOut=true; mm_menu_4.bgColor='#FFFFFF'; mm_menu_4.menuBorder=1; mm_menu_4.menuLiteBgColor='#FFFFFF'; mm_menu_4.menuBorderBgColor='#999999'; window.mm_menu_1 = new Menu("Chemical pump",240,18,"",12,"#000000","#FFFFFF","#CCCCCC","#7A9EE2","left","middle",3,0,1000,4,7,true,true,true,0,true,true); mm_menu_1.addMenuItem("Engineering plastics Magnetically Driven","window.open('Product.asp?page=1&sCategory=0101', '_top');"); mm_menu_1.addMenuItem("Metals material Magnetically Driven","window.open('Product.asp?page=1&sCategory=0102', '_top');"); mm_menu_1.addMenuItem("Innovative Mag-Drive Pump","window.open('Product.asp?page=1&sCategory=0106', '_top');"); mm_menu_1.addMenuItem("Wheel gear Pump","window.open('Product.asp?page=1&sCategory=0103', '_top');"); mm_menu_1.addMenuItem("Diaphragm Metering Pump","window.open('Product.asp?page=1&sCategory=0104', '_top');"); mm_menu_1.addMenuItem("Pnematic Pump","window.open('Product.asp?page=1&sCategory=0105', '_top');"); mm_menu_1.hideOnMouseOut=true; mm_menu_1.childMenuIcon="images/arrows.gif"; mm_menu_1.bgColor='#FFFFFF'; mm_menu_1.menuBorder=1; mm_menu_1.menuLiteBgColor='#FFFFFF'; mm_menu_1.menuBorderBgColor='#999999'; window.mm_menu_2 = new Menu("Filter system",190,18,"",12,"#000000","#FFFFFF","#CCCCCC","#7A9EE2","left","middle",3,0,1000,4,7,true,true,true,0,true,true); mm_menu_2.addMenuItem("General Filtration","window.open('Product.asp?page=1&sCategory=0201', '_top');"); mm_menu_2.addMenuItem("Microfiltration","window.open('Product.asp?page=1&sCategory=0202', '_top');"); mm_menu_2.addMenuItem("Air Filtration and Dry machine","window.open('Product.asp?page=1&sCategory=0203', '_top');"); mm_menu_2.hideOnMouseOut=true; mm_menu_2.childMenuIcon="images/arrows.gif"; mm_menu_2.bgColor='#FFFFFF'; mm_menu_2.menuBorder=1; mm_menu_2.menuLiteBgColor='#FFFFFF'; mm_menu_2.menuBorderBgColor='#999999'; window.mm_menu_3 = new Menu("Heat Exchanger",250,18,"",12,"#000000","#FFFFFF","#CCCCCC","#7A9EE2","left","middle",3,0,1000,4,7,true,true,true,0,true,true); mm_menu_3.addMenuItem("Plate heat exchanger","window.open('Product.asp?page=1&sCategory=0301', '_top');"); mm_menu_3.addMenuItem("Compact Brazed Heat Exchanger","window.open('Product.asp?page=1&sCategory=0302', '_top');"); mm_menu_3.addMenuItem("Welded PHE","window.open('Product.asp?page=1&sCategory=0303', '_top');"); mm_menu_3.addMenuItem("Corkscrew Heat Exchanger","window.open('Product.asp?page=1&sCategory=0304', '_top');"); mm_menu_3.addMenuItem("Professional maintenance and after service","window.open('Product.asp?page=1&sCategory=0305', '_top');"); mm_menu_3.addMenuItem("Other brands of PHE spare","window.open('Product.asp?page=1&sCategory=0306', '_top');"); mm_menu_3.hideOnMouseOut=true; mm_menu_3.childMenuIcon="images/arrows.gif"; mm_menu_3.bgColor='#FFFFFF'; mm_menu_3.menuBorder=1; mm_menu_3.menuLiteBgColor='#FFFFFF'; mm_menu_3.menuBorderBgColor='#999999'; window.mm_menu_0 = new Menu("root",160,18,"",12,"#000000","#FFFFFF","#CCCCCC","#7A9EE2","left","middle",3,0,1000,4,7,true,true,true,0,true,true); mm_menu_0.addMenuItem(mm_menu_1); mm_menu_0.addMenuItem(mm_menu_2); mm_menu_0.addMenuItem(mm_menu_3); mm_menu_0.hideOnMouseOut=true; mm_menu_0.childMenuIcon="images/arrows.gif"; mm_menu_0.bgColor='#FFFFFF'; mm_menu_0.menuBorder=1; mm_menu_0.menuLiteBgColor='#FFFFFF'; mm_menu_0.menuBorderBgColor='#999999'; mm_menu_2.writeMenus(); } function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah) { this.version = "020320 [Menu; mm_menu.js]"; this.type = "Menu"; this.menuWidth = mw; this.menuItemHeight = mh; this.fontSize = fs; this.fontWeight = "plain"; this.fontFamily = fnt; this.fontColor = fclr; this.fontColorHilite = fhclr; this.bgColor = "#555555"; this.menuBorder = 1; this.menuBgOpaque=opq; this.menuItemBorder = 1; this.menuItemIndent = idt; this.menuItemBgColor = bg; this.menuItemVAlign = valgn; this.menuItemHAlign = halgn; this.menuItemPadding = pad; this.menuItemSpacing = space; this.menuLiteBgColor = "#ffffff"; this.menuBorderBgColor = "#777777"; this.menuHiliteBgColor = bgh; this.menuContainerBgColor = "#cccccc"; this.childMenuIcon = "images/arrows.gif"; this.submenuXOffset = sx; this.submenuYOffset = sy; this.submenuRelativeToItem = srel; this.vertical = vert; this.items = new Array(); this.actions = new Array(); this.childMenus = new Array(); this.hideOnMouseOut = true; this.hideTimeout = to; this.addMenuItem = addMenuItem; this.writeMenus = writeMenus; this.MM_showMenu = MM_showMenu; this.onMenuItemOver = onMenuItemOver; this.onMenuItemAction = onMenuItemAction; this.hideMenu = hideMenu; this.hideChildMenu = hideChildMenu; if (!window.menus) window.menus = new Array(); this.label = " " + label; window.menus[this.label] = this; window.menus[window.menus.length] = this; if (!window.activeMenus) window.activeMenus = new Array(); } function addMenuItem(label, action) { this.items[this.items.length] = label; this.actions[this.actions.length] = action; } function FIND(item) { if( window.mmIsOpera ) return(document.getElementById(item)); if (document.all) return(document.all[item]); if (document.getElementById) return(document.getElementById(item)); return(false); } function writeMenus(container) { if (window.triedToWriteMenus) return; var agt = navigator.userAgent.toLowerCase(); window.mmIsOpera = agt.indexOf("opera") != -1; if (!container && document.layers) { window.delayWriteMenus = this.writeMenus; var timer = setTimeout('delayWriteMenus()', 500); container = new Layer(100); clearTimeout(timer); } else if (document.all || document.hasChildNodes || window.mmIsOpera) { document.writeln(''); container = FIND("menuContainer"); } window.mmHideMenuTimer = null; if (!container) return; window.triedToWriteMenus = true; container.isContainer = true; container.menus = new Array(); for (var i=0; i