// Cascading Popup Menus v5.2 - Single Frame Menu example script.

// If you're upgrading from v5.1, you can paste your existing menu data in, and if you're
// upgrading from v5.0 you need to add 'cursor' settings to your ItemStyles.
//
// And before going ANY further, you must have READ and AGREE TO the script license!
// It can be found on my site, in the syntax helpfile, or in the demo script document.

// 'horizontal Bar' style: menu items that use this ItemStyle are 40px wide, have 10px gaps
// between them, no popout indicator (the ">" in some menus) or popout indicator position,
// 0px padding of the text within items, #336699 background colour, a hover colour of #6699CC,
// 'highText' is the stylesheet class used for the menu text both normally and when highlighted,
// no border styles, 'null' means fully opaque items (set them to numbers between 0 and 100 to
// enable semitranslucency), and the 'hand'/'default' cursors are used for linked/submenu items.
var hBar = new ItemStyle(180, 15, '', 0, 0, '15#006685', '10#006685', 'highText', 'highText', '', '',
 null, 80, 'hand', 'default');

// The 'sub Menu' items: these have popout indicators of "Greater Than" signs ">" 15px from their
// right edge, and CSS borders. Text class also changes on mouseover.
var subM = new ItemStyle(22, 0, '&raquo;', -15, 3, '#006685', '#C0D9E0', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

// The 'sub Menu' items: these have popout indicators of "Greater Than" signs ">" 15px from their
// right edge, and CSS borders. Text class also changes on mouseover.
var subM3 = new ItemStyle(22, 0, '&raquo;', -15, 3, '#FF9900', '#FEDE9A', 'highText', 'highText',
 'itemBorder', 'itemBorder', 75, null, 'hand', 'default');

// 'subBlank' is similar, but has an 'off' border the same colour as its background so it
// appears borderless when dim, and 1px spacing between items to show the hover border.
//var subBlank = new ItemStyle(22, 1, '&gt;', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText',
// 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');

var subBlank = new ItemStyle(22, 0, '&raquo;', -15, 3, '#006685', '#C0D9E0', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorderBlank', null, null, 'hand', 'default');

// The purplish 'button' style also has 1px spacing to show up the fancy border, and it has
// different colours/text and less padding. They also have translucency set -- these items
// are 80% opaque when dim and 95% when highlighted. It uses the 'crosshair' cursor for items.
var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#006633', '10#CC6600', 'buttonText', 'buttonHover',
 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');


// Create a PopupMenu() object, and pass its own name so it can reference itself later on.
// We also use a 'with' block to work with its properties and functions below.

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

// Here's what the values in the next startMenu() command mean, in order:
//  'root': the name of this menu.
//   false: orientated as a horizontal menu (true creates a vertical menu).
//      10: the 'left' offset of this menu in pixels.
//       0: the 'top' offset of this menu in pixels.
//      17: the height of this menu (for vertical menus, this becomes the menu width).
//    hBar: the ItemStyle used to give this menu colours and layout/formatting.
//      '': this menu does not display within a frame (see the Frameset Example Script to do that).
//   false: this menu shows submenus on mouseover. 'true' means show on click.
//
// Most of the items are 'sm:' items popping out submenus, except the last 'js:' JavaScript command
// to pop open a new window. I've also given each item a length in pixels, overriding the ItemStyle.

startMenu('root', true, 'window.page.elmPos("left_menu").x', 'window.page.elmPos("left_menu").y + 20', 180, hBar);
addItem('<img src="images/home-off.gif" align="left" border="0">', 'default.asp', '', null, 30);
addItem('<img src="images/profile-off.gif" align="left" border="0">', 'mProfile', 'sm:', null, 30);
addItem('<img src="images/video-off.gif" align="left" border="0">', 'mVideos', 'sm:', null, 30);
addItem('<img src="images/whatsnew-off.gif" align="left" border="0">', 'whatsnew.asp', '', null, 30);
addItem('<img src="images/products-off.gif" align="left" border="0">', 'mProducts', 'sm:', null, 40);
addItem('<img src="images/drawings-off.gif" align="left" border="0">', 'webdrawings/drawings.aspx', '', null, 40);
addItem('<img src="images/promos-off.gif" align="left" border="0">',  'window.open("http://evapcoinc.promoshop.com")', 'js:', null, 40);
addItem('<img src="images/parts-off.gif" align="left" border="0">', 'window.open("http://www.mrgoodtower.com")', 'js:', null, 40);
addItem('<img src="images/findrep-off.gif" align="left" border="0">', 'window.open("http://www.evapco.com/findarep")', 'js:', null, 40);
addItem('<img src="images/equipment-off.gif" align="left" border="0">', 'window.open("http://www.evapco.com/evapspec/welcome.asp")', 'js:', null, 40);
addItem('<img src="images/industry-off.gif" align="left" border="0">', 'mIndustry', 'sm:', null, 40);
addItem('<img src="images/employment-off.gif" align="left" border="0">', 'employment.asp', '', null, 40);
addItem('<img src="images/contact-off.gif" align="left" border="0">', 'contact.asp', '', null, 30);
addItem('<img src="images/authorized-off.gif" align="left" border="0">', 'window.open("http://www.evapco.com/evapspec/welcome.asp")', 'js:', null, 50);


// This is a vertical menu positioned 0px across and 22px down from its trigger, and is 80px wide.
// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!
// Also note how the types are '', indicating these links open in the current frame/window.
// The last item here changes its text on mouseover (^ separates the two strings), links to my site,
// and has a custom ItemStyle and length specified so it's longer than the rest.

// START PROFILE MENU LAYOUT
startMenu('mProfile', true, 195, 0, 210, subM, '', false);
addItem('Profile', 'profile.asp', '');
addItem('History', 'history.asp', '');
addItem('World Locations', 'world_locations.asp', '');
addItem('Research & Development', 'research.asp', '');
addItem('Employment', 'employment.asp', '');
addItem('Promotional Merchandise', 'window.open("http://evapcoinc.promoshop.com")', 'js:');
addItem('Imagine EVAPCO Corporate Video', 'mVideoLang', 'sm:');
addItem('Corporate Brochure', 'window.open("media/pdf/Corporate-Brochure.pdf")', 'js:');
// END PROFILE MENU LAYOUT


// START VideoLanguages MENU LAYOUT
startMenu('mVideoLang', true, 315, 0, 225, subM, '', false);
addItem('<img src="images/LANG_US.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=US")', 'js:');
addItem('<img src="images/LANG_British.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=Br")', 'js:');
addItem('<img src="images/LANG_Flemish.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=Fl")', 'js:');
addItem('<img src="images/LANG_French.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=Fr")', 'js:');
addItem('<img src="images/LANG_German.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=G")', 'js:');
addItem('<img src="images/LANG_Italian.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=I")', 'js:');
addItem('<img src="images/LANG_Mandarin.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=C")', 'js:');
addItem('<img src="images/LANG_Spanish.gif" align="left" border="0">', 'window.open("evapco_videos.asp?vID=Corp&Lang=S")', 'js:');



// START PRODUCTS MENU LAYOUT
startMenu('mProducts', true, 195, 0, 225, subM, '', false);
addItem('Factory Assembled Cooling Towers', 'mCoolingTowers', 'sm:');
addItem('Field Erected Cooling Towers', 'window.open("http://www.evaptech.com")', 'js:');
addItem('Low Sound Solutions', 'mLowSound', 'sm:');
addItem('Closed Circuit Coolers', 'mClosedCircuit', 'sm:');
addItem('Non-Chemical Water Treatment', 'mWaterTreatment2', 'sm:');
addItem('Thermal Ice Storage', 'mIceThermal', 'sm:');
addItem('Evaporative Condensers', 'mEvapCondensers', 'sm:');
addItem('Evaporators', 'mEvaporators', 'sm:');
addItem('Critical Process Air Units Systems', 'mCriticalProcess', 'sm:');
addItem('ASME Pressure Vessels', 'mPressureVessels', 'sm:');
addItem('ASME Recirculator Systems', 'window.open("media/pdf/asme-recircular.pdf")', 'js:');

//addItem('ASME Vessel Systems', 'mVesselSystem', 'sm:');
//addItem('ASME Recirculator Systems', 'mRecircular', 'sm:');
// END PRODUCTS MENU LAYOUT


// START COOLING TOWERS MENU LAYOUT
startMenu('mCoolingTowers', true, 230, 0, 205, subM, '', false);
addItem('All Towers', 'cooling_towers.asp', '');
addItem('UT', 'mUT', 'sm:');
addItem('USS', 'mUSS', 'sm:');
addItem('AT', 'mAT', 'sm:');
addItem('cAT', 'mcAT', 'sm:');
//addItem('REP', 'mREP', 'sm:');
//addItem('ICT', 'mICT', 'sm:');
//addItem('UBT', 'mUBT', 'sm:');
addItem('LPT', 'mLPT', 'sm:');
addItem('LSTB', 'mLSTB', 'sm:');
addItem('Non-Chemical Water Treatment', 'mWaterTreatment3', 'sm:');

startMenu('mUT', true, 210, 0, 160, subM, '', false);
addItem('UT Product Literature', 'mUT_literature', 'sm:');
addItem('UT Drawings', 'webdrawings/drawings.aspx?model=UT', '');
addItem('UT Highlights', 'utcooling.asp', '');
addItem('Design Features', 'ut_principle_of_operations.asp', '');
addItem('Maintenance Features', 'ut_easy_access.asp', '');
addItem('Drive Systems', 'ut_fan_motors.asp', '');
addItem('Optional Equipment', 'ut_sloped_access.asp', '');
addItem('Unit Specifications', 'ut_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mUT_literature', true, 210, 0, 170, subM, '', false);
addItem('UT Product Features', 'ut_brochures.asp', '');
//addItem('UT Product Engineering', 'ut_engineering.asp', '');
addItem('UT Operation/Maintenance', 'ut_operation.asp', '');
addItem('UT Rigging/Assembly', 'ut_assembly.asp', '');

startMenu('mAT', true, 210, 0, 160, subM, '', false);
addItem('AT Product Literature', 'mAT_literature', 'sm:');
addItem('AT Drawings', 'webdrawings/drawings.aspx?model=AT', '');
addItem('AT Highlights', 'atcooling.asp', '');
addItem('Design Features', 'at_principle_of_operations.asp', '');
addItem('Maintenance Features', 'at_easy_access.asp', '');
addItem('Drive Systems', 'at_fan_motors.asp', '');
addItem('Optional Equipment', 'at_sloped_access.asp', '');
addItem('Unit Specifications', 'at_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mAT_literature', true, 210, 0, 170, subM, '', false);
addItem('AT Product Features', 'at_brochures.asp', '');
//addItem('AT Product Engineering', 'at_engineering.asp', '');
addItem('AT Operation/Maintenance', 'at_operation.asp', '');
addItem('AT Rigging/Assembly', 'at_assembly.asp', '');

startMenu('mcAT', true, 210, 0, 160, subM, '', false);
addItem('cAT Product Literature', 'mcAT_literature', 'sm:');
addItem('cAT Drawings', 'webdrawings/drawings.aspx?model=cAT', '');
addItem('cAT Highlights', 'c-atcooling.asp', '');
addItem('Design Features', 'c-at_principle_of_operations.asp', '');
addItem('Maintenance Features', 'c-at_easy_access.asp', '');
addItem('Drive Systems', 'c-at_fan_motors.asp', '');
addItem('Optional Equipment', 'c-at_sloped_access.asp', '');
addItem('Unit Specifications', 'c-at_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mcAT_literature', true, 210, 0, 170, subM, '', false);
addItem('cAT Product Features', 'c-at_brochures.asp', '');
//addItem('AT Product Engineering', 'at_engineering.asp', '');
addItem('cAT Operation/Maintenance', 'c-at_operation.asp', '');
addItem('cAT Rigging/Assembly', 'c-at_assembly.asp', '');

startMenu('mICT', true, 210, 0, 160, subM, '', false);
addItem('ICT Product Literature', 'mICT_literature', 'sm:');
addItem('ICT Drawings', 'webdrawings/drawings.aspx?model=ICT', '');
addItem('ICT Highlights', 'ictcooling.asp', '');
addItem('Design Features', 'ict_principle_of_operations.asp', '');
addItem('Maintenance Features', 'ict_easy_access.asp', '');
addItem('Drive Systems', 'ict_fan_motors.asp', '');
addItem('Optional Equipment', 'ict_stainless_steel_construction.asp', '');
addItem('Unit Specifications', 'ict_specifications.asp', '');

startMenu('mICT_literature', true, 210, 0, 170, subM, '', false);
addItem('ICT Product Features', 'ict_brochures.asp', '');
addItem('ICT Product Engineering', 'ict_engineering.asp', '');
addItem('ICT Operation/Maintenance', 'ict_operation.asp', '');
addItem('ICT Rigging/Assembly', 'ict_assembly.asp', '');

startMenu('mLPT', true, 210, 0, 160, subM, '', false);
addItem('LPT Product Literature', 'mLPT_literature', 'sm:');
addItem('LPT Drawings', 'webdrawings/drawings.aspx?model=LPT', '');
addItem('LPT Highlights', 'lptcooling.asp', '');
addItem('Design Features', 'lpt_principle_of_operations.asp', '');
addItem('Maintenance Features', 'lpt_steel_cold_water.asp', '');
addItem('Drive Systems', 'lpt_fan_motors.asp', '');
addItem('Optional Equipment', 'lpt_sound_attenuation.asp', '');
addItem('Unit Specifications', 'lpt_specifications.asp', '');

startMenu('mLPT_literature', true, 210, 0, 170, subM, '', false);
addItem('LPT Product Features', 'lpt_brochures.asp', '');
//addItem('LPT Product Engineering', 'lpt_engineering.asp', '');
addItem('LPT Operation/Maintenance', 'lpt_operation.asp', '');
addItem('LPT Rigging/Assembly', 'lpt_assembly.asp', '');

startMenu('mLSTB', true, 210, 0, 160, subM, '', false);
addItem('LSTB Product Literature', 'mLSTB_literature', 'sm:');
addItem('LSTB Drawings', 'webdrawings/drawings.aspx?model=LSTB', '');
addItem('LSTB Highlights', 'lstbcooling.asp', '');
addItem('Design Features', 'lstb_principle_of_operations.asp', '');
addItem('Maintenance Features', 'lstb_motor_mount.asp', '');
addItem('Drive Systems', 'lstb_fan_motors.asp', '');
addItem('Optional Equipment', 'lstb_steel_basin.asp', '');
addItem('Unit Specifications', 'lstb_specifications.asp', '');

startMenu('mLSTB_literature', true, 210, 0, 170, subM, '', false);
addItem('LSTB Product Features', 'lstb_brochures.asp', '');
//addItem('LSTB Product Engineering', 'lstb_engineering.asp', '');
addItem('LSTB Operation/Maintenance', 'lstb_operation.asp', '');
addItem('LSTB Rigging/Assembly', 'lstb_assembly.asp', '');

startMenu('mREP', true, 210, 0, 160, subM, '', false);
addItem('REP Product Literature', 'mREP_literature', 'sm:');
addItem('REP Drawings', 'webdrawings/drawings.aspx?model=REP', '');
addItem('REP Highlights', 'repcooling.asp', '');
addItem('Design Features', 'rep_principle_of_operations.asp', '');
addItem('Maintenance Features', 'rep_easy_access.asp', '');
addItem('Drive Systems', 'rep_fan_motors.asp', '');
addItem('Optional Equipment', 'rep_sloped_access.asp', '');
addItem('Unit Specifications', 'rep_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mREP_literature', true, 210, 0, 170, subM, '', false);
addItem('REP Product Features', 'rep_brochures.asp', '');
addItem('REP Product Engineering', 'rep_engineering.asp', '');
addItem('REP Operation/Maintenance', 'rep_operation.asp', '');
addItem('REP Rigging/Assembly', 'rep_assembly.asp', '');

startMenu('mUBT', true, 210, 0, 160, subM, '', false);
addItem('UBT Product Literature', 'mUBT_literature', 'sm:');
addItem('UBT Drawings', 'webdrawings/drawings.aspx?model=UBT', '');
addItem('UBT Highlights', 'ubtcooling.asp', '');
addItem('Design Features', 'ubt_principle_of_operations.asp', '');
addItem('Maintenance Features', 'ubt_easy_access.asp', '');
addItem('Drive Systems', 'ubt_fan_motors.asp', '');
addItem('Optional Equipment', 'ubt_sloped_access.asp', '');
addItem('Unit Specifications', 'ubt_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mUBT_literature', true, 210, 0, 170, subM, '', false);
addItem('UBT Product Features', 'ubt_brochures.asp', '');
addItem('UBT Product Engineering', 'ubt_engineering.asp', '');
addItem('UBT Operation/Maintenance', 'ubt_operation.asp', '');
addItem('UBT Rigging/Assembly', 'ubt_assembly.asp', '');

startMenu('mUSS', true, 210, 0, 160, subM, '', false);
addItem('USS Product Literature', 'mUSS_literature', 'sm:');
addItem('USS Drawings', 'webdrawings/drawings.aspx?model=USS', '');
addItem('USS Highlights', 'usscooling.asp', '');
addItem('Design Features', 'uss_principle_of_operations.asp', '');
addItem('Maintenance Features', 'uss_easy_access.asp', '');
addItem('Drive Systems', 'uss_fan_motors.asp', '');
addItem('Optional Equipment', 'uss_sloped_access.asp', '');
addItem('Unit Specifications', 'uss_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mUSS_literature', true, 210, 0, 170, subM, '', false);
addItem('USS Product Features', 'uss_brochures.asp', '');
addItem('USS Product Engineering', 'uss_engineering.asp', '');
addItem('USS Operation/Maintenance', 'uss_operation.asp', '');
addItem('USS Rigging/Assembly', 'uss_assembly.asp', '');
// END COOLING TOWERS MENU LAYOUT


// START LOW SOUND MENU LAYOUT
startMenu('mLowSound', true, 230, 0, 160, subM, '', false);
addItem('Low Sound Features', 'low_brochures.asp', '');
addItem('Super Low Sound Fan Technology', 'window.open("evapco_videos.asp?vID=lss1")', 'js:');
addItem('Energy Efficient Super Low Sound Fans', 'window.open("evapco_videos.asp?vID=lss2")', 'js:');
addItem('Low Sound Highlights', 'lowsound.asp', '');
addItem('Product Bulletin', 'low_brochures.asp', '');
addItem('Design Features', 'low_super_low.asp', '');
addItem('Unit Specifications', 'low_specifications.asp', '');
// END LOW SOUND MENU LAYOUT


// START CLOSED CIRCUIT MENU LAYOUT
startMenu('mClosedCircuit', true, 230, 0, 205, subM, '', false);
addItem('All Units', 'closed_circuit_title.asp', '');
addItem('ESWA', 'mESW', 'sm:');
addItem('ATWB', 'mATWB', 'sm:');
addItem('cATWB', 'mcATWB', 'sm:');
addItem('LRWB', 'mLRWB', 'sm:');
addItem('LSWB', 'mLSWB', 'sm:');
//addItem('UBW', 'mUBW', 'sm:');
addItem('WDW', 'mWDW', 'sm:');
addItem('Non-Chemical Water Treatment', 'mWaterTreatment4', 'sm:');

startMenu('mESW', true, 210, 0, 160, subM, '', false);
addItem('ESWA Product Literature', 'mESWA_literature', 'sm:');
addItem('ESWA Drawings', 'webdrawings/drawings.aspx?model=ESWA', '');
addItem('ESWA Highlights', 'eswunit.asp', '');
addItem('Design Features', 'esw_principle.asp', '');
addItem('Maintenance Features', 'esw_access.asp', '');
addItem('Drive Systems', 'esw_fan_motor.asp', '');
addItem('Optional Equipment', 'esw_steelcoils.asp', '');
addItem('Unit Specifications', 'esw_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mESWA_literature', true, 210, 0, 180, subM, '', false);
addItem('ESWA Product/Engineering', 'esw_brochures.asp', '');
addItem('ESWA Operation/Maintenance', 'esw_operation.asp', '');
addItem('ESWA Rigging/Assembly', 'esw_assembly.asp', '');

startMenu('mATWB', true, 210, 0, 160, subM, '', false);
addItem('ATWB Product Literature', 'mATWB_literature', 'sm:');
addItem('ATWB Drawings', 'webdrawings/drawings.aspx?model=ATW', '');
addItem('ATWB Highlights', 'atwunit.asp', '');
addItem('Design Features', 'atw_principle.asp', '');
addItem('Maintenance Features', 'atw_access.asp', '');
addItem('Drive Systems', 'atw_fan_motor.asp', '');
addItem('Optional Equipment', 'atw_steelcoils.asp', '');
addItem('Unit Specifications', 'atw_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mATWB_literature', true, 210, 0, 190, subM, '', false);
addItem('ATWB Product/Engineering', 'atw_brochures.asp', '');
addItem('ATWB Operation/Maintenance', 'atw_operation.asp', '');
addItem('ATWB Rigging/Assembly', 'atw_assembly.asp', '');

startMenu('mcATWB', true, 210, 0, 160, subM, '', false);
addItem('cATWB Product Literature', 'mcATWB_literature', 'sm:');
addItem('cATWB Drawings', 'webdrawings/drawings.aspx?model=ATW', '');
addItem('cATWB Highlights', 'c-atwunit.asp', '');
addItem('Design Features', 'c-atw_principle.asp', '');
addItem('Maintenance Features', 'c-atw_access.asp', '');
addItem('Drive Systems', 'c-atw_fan_motor.asp', '');
addItem('Optional Equipment', 'c-atw_steelcoils.asp', '');
addItem('Unit Specifications', 'c-atw_specifications.asp', '');
//addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mcATWB_literature', true, 210, 0, 190, subM, '', false);
addItem('cATWB Product/Engineering', 'c-atw_brochures.asp', '');
addItem('cATWB Operation/Maintenance', 'c-atw_operation.asp', '');
addItem('cATWB Rigging/Assembly', 'c-atw_assembly.asp', '');

startMenu('mLRWB', true, 210, 0, 160, subM, '', false);
addItem('LRWB Product Literature', 'mLRWB_literature', 'sm:');
addItem('LRWB Drawings', 'webdrawings/drawings.aspx?model=LRWB', '');
addItem('LRWB Highlights', 'lrwunit.asp', '');
addItem('Design Features', 'lrw_principle.asp', '');
addItem('Maintenance Features', 'lrw_cold_water.asp', '');
addItem('Drive Systems', 'lrw_fan_motor.asp', '');
addItem('Optional Equipment', 'lrw_steelcoils.asp', '');
addItem('Unit Specifications', 'lrw_specifications.asp', '');

startMenu('mLRWB_literature', true, 210, 0, 170, subM, '', false);
addItem('LRWB Product/Engineering', 'lrw_brochures.asp', '');
addItem('LRWB Operation/Maintenance', 'lrw_operation.asp', '');
addItem('LRWB Rigging/Assembly', 'lrw_assembly.asp', '');

startMenu('mLSWB', true, 210, 0, 160, subM, '', false);
addItem('LSWB Product Literature', 'mLSWB_literature', 'sm:');
addItem('LSWB Drawings', 'webdrawings/drawings.aspx?model=LSWB', '');
addItem('LSWB Highlights', 'lswaunit.asp', '');
addItem('Design Features', 'lswa_principle.asp', '');
addItem('Maintenance Features', 'lswa_fan_motor_mount.asp', '');
addItem('Drive Systems', 'lswa_fan_motor.asp', '');
addItem('Optional Equipment', 'lswa_steelcoils.asp', '');
addItem('Unit Specifications', 'lswa_specifications.asp', '');

startMenu('mLSWB_literature', true, 210, 0, 180, subM, '', false);
addItem('LSWB Product/Engineering', 'lswa_brochures.asp', '');
addItem('LSWB Operation/Maintenance', 'lswa_operation.asp', '');
addItem('LSWB Rigging/Assembly', 'lswa_assembly.asp', '');

startMenu('mUBW', true, 210, 0, 160, subM, '', false);
addItem('UBW Product Literature', 'mUBW_literature', 'sm:');
addItem('UBW Drawings', 'webdrawings/drawings.aspx?model=UBW', '');
addItem('UBW Highlights', 'ubwunit.asp', '');
addItem('Design Features', 'ubw_principle.asp', '');
addItem('Maintenance Features', 'ubw_access.asp', '');
addItem('Drive Systems', 'ubw_fan_motor.asp', '');
addItem('Optional Equipment', 'ubw_steelcoils.asp', '');
addItem('Unit Specifications', 'ubw_specifications.asp', '');

startMenu('mUBW_literature', true, 210, 0, 170, subM, '', false);
addItem('UBW Product/Engineering', 'ubw_brochures.asp', '');
addItem('UBW Operation/Maintenance', 'ubw_operation.asp', '');
addItem('UBW Rigging/Assembly', 'ubw_assembly.asp', '');

startMenu('mWDW', true, 210, 0, 160, subM, '', false);
addItem('WDW Product Literature', 'mWDW_literature', 'sm:');
addItem('WDW Highlights', 'wdwunit.asp', '');

startMenu('mWDW_literature', true, 210, 0, 170, subM, '', false);
addItem('WDW Product/Engineering', 'wdw_brochures.asp', '');
addItem('WDW Operation/Maintenance', 'wdw_operation.asp', '');
addItem('WDW Rigging/Assembly', 'wdw_assembly.asp', '');
// END CLOSED CIRCUIT MENU LAYOUT


// START ICE THERMAL MENU LAYOUT
startMenu('mIceThermal', true, 230, 0, 160, subM, '', false);
addItem('Thermal Ice Storage Video', 'window.open("evapco_videos.asp?vID=tis")', 'js:');
addItem('Thermal Ice Storage', 'icethermal.asp', '');
addItem('Design Features', 'therm_coil_construction.asp', '');
addItem('Thermal Storage Systems', 'therm_overview.asp', '');
addItem('District Cooling', 'therm_district_cooling.asp', '');
addItem('Equipment Selection', 'therm_input.asp', '');
addItem('Product Bulletin', 'ice_brochures.asp', '');
// END ICE THERMAL MENU LAYOUT


// START EVAPORATOR CONDENSORS MENU LAYOUT
startMenu('mEvapCondensers', true, 230, 0, 205, subM, '', false);
addItem('All Condensers', 'evap_cond_title.asp', '');
addItem('PMC-E', 'mPMCE', 'sm:');
addItem('ATC', 'mATC', 'sm:');
addItem('cATC', 'mC-ATC', 'sm:');
addItem('LSCB', 'mLSCB', 'sm:');
//addItem('HTC', 'mHTC', 'sm:');
addItem('LRC', 'mLRC', 'sm:');
//addItem('UBC', 'mUBC', 'sm:');
addItem('Non-Chemical Water Treatment', 'mWaterTreatment', 'sm:');

startMenu('mPMCE', true, 210, 0, 160, subM, '', false);
addItem('PMC-E Product Literature', 'mPMCE_literature', 'sm:');
addItem('PMC-E Drawings', 'webdrawings/drawings.aspx?model=PMC-E', '');
addItem('PMC-E Highlights', 'pmcbunit.asp', '');
addItem('Design Features', 'pmcb_principle.asp', '');
addItem('Maintenance Features', 'pmcb_access.asp', '');
addItem('Drive Systems', 'pmcb_fan_motor.asp', '');
addItem('Optional Equipment', 'pmcb_steelcoils.asp', '');
addItem('Unit Specifications', 'pmcb_specifications.asp', '');
addItem('Low Sound Solutions', 'pmce-lowsound.asp', '');

startMenu('mPMCE_literature', true, 210, 0, 180, subM, '', false);
addItem('PMC-E Product/Engineering', 'pmce_brochures.asp', '');
addItem('PMC-E Operation/Maintenance', 'pmce_operation.asp', '');
addItem('PMC-E Rigging/Assembly', 'pmce_assembly.asp', '');


startMenu('mATC', true, 210, 0, 160, subM, '', false);
addItem('ATC Product Literature', 'mATC_literature', 'sm:');
addItem('ATC Drawings', 'webdrawings/drawings.aspx?model=ATC', '');
addItem('ATC Highlights', 'atcunit.asp', '');
addItem('Design Features', 'atc_principle.asp', '');
addItem('Maintenance Features', 'atc_access.asp', '');
addItem('Drive Systems', 'atc_fan_motor.asp', '');
addItem('Optional Equipment', 'atc_steelcoils.asp', '');
addItem('Unit Specifications', 'atc_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mATC_literature', true, 210, 0, 180, subM, '', false);
addItem('ATC Product/Engineering', 'atc_brochures.asp', '');
addItem('ATC Operation/Maintenance', 'atc_operation.asp', '');
addItem('ATC Rigging/Assembly', 'atc_assembly.asp', '');

startMenu('mC-ATC', true, 210, 0, 160, subM, '', false);
addItem('cATC Product Literature', 'mCATC_literature', 'sm:');
addItem('cATC Drawings', 'webdrawings/drawings.aspx?model=CATC', '');
addItem('cATC Highlights', 'c-atcunit.asp', '');
addItem('Design Features', 'c-atc_principle.asp', '');
addItem('Maintenance Features', 'c-atc_access.asp', '');
addItem('Drive Systems', 'c-atc_fan_motor.asp', '');
addItem('Optional Equipment', 'c-atc_steelcoils.asp', '');
addItem('Unit Specifications', 'c-atc_specifications.asp', '');
addItem('Low Sound Solutions', 'low_super_low.asp', '');

startMenu('mCATC_literature', true, 210, 0, 180, subM, '', false);
addItem('cATC Product/Engineering', 'catc_brochures.asp', '');
addItem('cATC Operation/Maintenance', 'catc_operation.asp', '');
addItem('cATC Rigging/Assembly', 'catc_assembly.asp', '');

startMenu('mLSCB', true, 210, 0, 160, subM, '', false);
addItem('LSCB Product Literature', 'mLSCB_literature', 'sm:');
addItem('LSCB Drawings', 'webdrawings/drawings.aspx?model=LSCB', '');
addItem('LSCB Highlights', 'lscbunit.asp', '');
addItem('Design Features', 'lscb_principle.asp', '');
addItem('Maintenance Features', 'lscb_fan_motor_mount.asp', '');
addItem('Drive Systems', 'lscb_fan_motor.asp', '');
addItem('Optional Equipment', 'lscb_steelcoils.asp', '');
addItem('Unit Specifications', 'lscb_specifications.asp', '');

startMenu('mLSCB_literature', true, 210, 0, 180, subM, '', false);
addItem('LSCB Product/Engineering', 'lscb_brochures.asp', '');
addItem('LSCB Operation/Maintenance', 'lscb_operation.asp', '');
addItem('LSCB Rigging/Assembly', 'lscb_assembly.asp', '');

startMenu('mHTC', true, 210, 0, 160, subM, '', false);
addItem('HTC Product Literature', 'mHTC_literature', 'sm:');
addItem('HTC Drawings', 'webdrawings/drawings.aspx?model=HTC', '');
addItem('HTC Highlights', 'htcunit.asp', '');
addItem('Design Features', 'htc_principle.asp', '');
addItem('Maintenance Features', 'htc_bearing_lub.asp', '');
addItem('Drive Systems', 'htc_fan_motor.asp', '');
addItem('Optional Equipment', 'htc_alt_const.asp', '');
addItem('Unit Specifications', 'htc_specifications.asp', '');

startMenu('mHTC_literature', true, 210, 0, 180, subM, '', false);
addItem('HTC Product/Engineering', 'htc_brochures.asp', '');
addItem('HTC Operation/Maintenance', 'htc_operation.asp', '');
addItem('HTC Rigging/Assembly', 'htc_assembly.asp', '');

startMenu('mLRC', true, 210, 0, 160, subM, '', false);
addItem('LRC Product Literature', 'mLRC_literature', 'sm:');
addItem('LRC Drawings', 'webdrawings/drawings.aspx?model=LRC', '');
addItem('LRC Highlights', 'lrcunit.asp', '');
addItem('Design Features', 'lrc_principle.asp', '');
addItem('Maintenance Features', 'lrc_cold_water.asp', '');
addItem('Drive Systems', 'lrc_fan_motor.asp', '');
addItem('Optional Equipment', 'lrc_steelcoils.asp', '');
addItem('Unit Specifications', 'lrc_specifications.asp', '');

startMenu('mLRC_literature', true, 210, 0, 180, subM, '', false);
addItem('LRC Product/Engineering', 'lrc_brochures.asp', '');
addItem('LRC Operation/Maintenance', 'lrc_operation.asp', '');
addItem('LRC Rigging/Assembly', 'lrc_assembly.asp', '');

//startMenu('mUBC', true, 210, 0, 160, subM, '', false);
//addItem('UBC Product Literature', 'mUBC_literature', 'sm:');
//addItem('UBC Drawings', 'webdrawings/drawings.aspx?model=UBC', '');
//addItem('UBC Highlights', 'ubcunit.asp', '');
//addItem('Design Features', 'ubc_principle.asp', '');
//addItem('Maintenance Features', 'ubc_access.asp', '');
//addItem('Drive Systems', 'ubc_fan_motor.asp', '');
//addItem('Optional Equipment', 'ubc_steelcoils.asp', '');
//addItem('Unit Specifications', 'ubc_specifications.asp', '');

//startMenu('mUBC_literature', true, 210, 0, 180, subM, '', false);
//addItem('UBC Product/Engineering', 'ubc_brochures.asp', '');
//addItem('UBC Operation/Maintenance', 'ubc_operation.asp', '');
//addItem('UBC Rigging/Assembly', 'ubc_assembly.asp', '');

startMenu('mWaterTreatment2', true, 230, 0, 350, subM, '', false);
addItem('Non-Chemical Highlights', 'window.open("water_treatment.asp")', 'js:');
addItem('<i>Pulse</i>~Pure&reg; Non-Chemical Water Treatment System Video', 'window.open("evapco_videos.asp?vID=pp")', 'js:');
addItem('Product Bulletin', 'window.open("media/pdf/water-treatment.pdf")', 'js:');
//addItem('Installation, Operation and Maintenance Manual', 'window.open("media/pdf/pulse-pure-ops.pdf")', 'js:');
// END EVAPORATOR CONDENSORS MENU LAYOUT
startMenu('mWaterTreatment', true, 210, 0, 350, subM, '', false);
addItem('Non-Chemical Highlights', 'window.open("water_treatment.asp")', 'js:');
addItem('<i>Pulse</i>~Pure&reg; Non-Chemical Water Treatment System Video', 'window.open("evapco_videos.asp?vID=pp")', 'js:');
addItem('Product Bulletin', 'window.open("media/pdf/water-treatment.pdf")', 'js:');
//addItem('Installation, Operation and Maintenance Manual', 'window.open("media/pdf/pulse-pure-ops.pdf")', 'js:');

startMenu('mWaterTreatment3', true, 210, 0, 350, subM, '', false);
addItem('Non-Chemical Highlights', 'window.open("water_treatment.asp")', 'js:');
addItem('<i>Pulse</i>~Pure&reg; Non-Chemical Water Treatment System Video', 'window.open("evapco_videos.asp?vID=pp")', 'js:');
addItem('Product Bulletin', 'window.open("media/pdf/water-treatment.pdf")', 'js:');
//addItem('Installation, Operation and Maintenance Manual', 'window.open("media/pdf/pulse-pure-ops.pdf")', 'js:');

startMenu('mWaterTreatment4', true, 210, 0, 350, subM, '', false);
addItem('Non-Chemical Highlights', 'window.open("water_treatment.asp")', 'js:');
addItem('<i>Pulse</i>~Pure&reg; Non-Chemical Water Treatment System Video', 'window.open("evapco_videos.asp?vID=pp")', 'js:');
addItem('Product Bulletin', 'window.open("media/pdf/water-treatment.pdf")', 'js:');
//addItem('Installation, Operation and Maintenance Manual', 'window.open("media/pdf/pulse-pure-ops.pdf")', 'js:');

// START EVAPORATORS MENU LAYOUT
startMenu('mEvaporators', true, 230, 0, 160, subM, '', false);
addItem('Stainless Steel Coil', 'mStainless', 'sm:');
addItem('Galvanized Steel Coil', 'mGalvanized', 'sm:');
addItem('Aluminum Coil', 'mAluminum', 'sm:');
addItem('Copper Coil', 'mCopper', 'sm:');

startMenu('mStainless', true, 165, 0, 90, subM, '', false);
addItem('SSTM', 'mSTM', 'sm:');
addItem('SSTL', 'mSTL', 'sm:');
//addItem('SSTL', 'window.open("media/pdf/sstl.pdf")', 'js:');
addItem('SSTW', 'mSTW', 'sm:');
addItem('SSTD', 'mSTD', 'sm:');

startMenu('mGalvanized', true, 165, 0, 90, subM, '', false);
addItem('NTW', 'mNTW', 'sm:');
addItem('NTX', 'mNTX', 'sm:');
addItem('NTM', 'mNTM', 'sm:');
addItem('NTL', 'mNTL', 'sm:');
addItem('NTC', 'mNTC', 'sm:');
addItem('NTP', 'mNTP', 'sm:');
addItem('TFC', 'mTFC', 'sm:');

startMenu('mAluminum', true, 165, 0, 90, subM, '', false);
addItem('SLTM', 'window.open("media/pdf/412A-LEM-SLT-Engineering.pdf")', 'js:');
addItem('SLTW', 'window.open("media/pdf/412A-LEM-SLT-Engineering.pdf")', 'js:');
addItem('SLTD', 'window.open("media/pdf/412A-LEM-SLT-Engineering.pdf")', 'js:');
addItem('CF', 'window.open("media/pdf/series-cf.pdf")', 'js:');
addItem('M', 'window.open("media/pdf/series-m.pdf")', 'js:');
addItem('SC', 'window.open("media/pdf/series-sc.pdf")', 'js:');
addItem('C', 'window.open("media/pdf/series-c.pdf")', 'js:');
addItem('L', 'window.open("media/pdf/series-l.pdf")', 'js:');
addItem('R', 'window.open("media/pdf/series-r.pdf")', 'js:');
addItem('D', 'window.open("media/pdf/series-d.pdf")', 'js:');

startMenu('mCopper', true, 165, 0, 90, subM, '', false);
addItem('SCTM', 'window.open("media/pdf/sct.pdf")', 'js:');
addItem('SCTW', 'window.open("media/pdf/sct.pdf")', 'js:');
addItem('SCTD', 'window.open("media/pdf/sct.pdf")', 'js:');

startMenu('mNTW', true, 95, 0, 160, subM, '', false);
addItem('NTW Brochures', 'ntw_brochures.asp', '');
addItem('NTW Highlights', 'ntwunit.asp', '');
addItem('Design Features', 'ntw_principle.asp', '');
addItem('Drive Systems', 'ntw_fan_motors.asp', '');
addItem('Optional Equipment', 'ntw_drain_pan.asp', '');
addItem('Unit Specifications', 'ntw_specifications.asp', '');

startMenu('mNTX', true, 95, 0, 160, subM, '', false);
addItem('NTX Brochures', 'ntx_brochures.asp', '');
addItem('NTX Highlights', 'ntxunit.asp', '');
addItem('Design Features', 'ntx_principle.asp', '');
addItem('Drive Systems', 'ntx_fan_motors.asp', '');
addItem('Optional Equipment', 'ntx_defrost.asp', '');
addItem('Unit Specifications', 'ntx_specifications.asp', '');

startMenu('mNTM', true, 95, 0, 160, subM, '', false);
addItem('NTM Brochures', 'ntm_brochures.asp', '');
addItem('NTM Highlights', 'ntmunit.asp', '');
addItem('Design Features', 'ntm_principle.asp', '');
addItem('Drive Systems', 'ntm_fan_motors.asp', '');
addItem('Optional Equipment', 'ntm_defrost.asp', '');
addItem('Unit Specifications', 'ntm_specifications.asp', '');

startMenu('mNTL', true, 95, 0, 160, subM, '', false);
addItem('NTL Brochures', 'ntl_brochures.asp', '');
addItem('NTL Highlights', 'ntlunit.asp', '');
addItem('Design Features', 'ntl_principle.asp', '');
addItem('Drive Systems', 'ntl_fan_motors.asp', '');
addItem('Optional Equipment', 'ntl_defrost.asp', '');
addItem('Unit Specifications', 'ntl_specifications.asp', '');

startMenu('mNTC', true, 95, 0, 160, subM, '', false);
addItem('NTC Brochures', 'ntc_brochures.asp', '');
addItem('NTC Highlights', 'ntcunit.asp', '');
addItem('Design Features', 'ntc_principle.asp', '');
addItem('Drive Systems', 'ntc_fan_wheels.asp', '');
addItem('Optional Equipment', 'ntc_defrost.asp', '');
addItem('Unit Specifications', 'ntc_specifications.asp', '');

startMenu('mNTP', true, 95, 0, 160, subM, '', false);
addItem('NTP Brochures', 'ntp_brochures.asp', '');
addItem('NTP Highlights', 'ntpunit.asp', '');
addItem('Design Features', 'ntp_principle.asp', '');
addItem('Drive Systems', 'ntp_fan_motors.asp', '');
addItem('Optional Equipment', 'ntp_defrost.asp', '');
addItem('Unit Specifications', 'ntp_specifications.asp', '');

startMenu('mSTM', true, 95, 0, 160, subM, '', false);
addItem('STM Brochures', 'sstm_brochures.asp', '');
addItem('STM Highlights', 'stmunit.asp', '');
addItem('Design Features', 'sstm_design.asp', '');
addItem('Maintenance Features', 'sstm_maint.asp', '');
//addItem('Drive Systems', 'sstm_drive.asp', '');
addItem('Optional Equipment', 'sstm_opt.asp', '');
addItem('Unit Specifications', 'stm_specifications.asp', '');
addItem('Engineering Data', 'sstm_eng.asp', '');

startMenu('mSTL', true, 95, 0, 160, subM, '', false);
addItem('SSTL Brochures', 'sstl_brochures.asp', '');
addItem('SSTL Highlights', 'stlunit.asp', '');
addItem('Design Features', 'sstl_design.asp', '');
addItem('Maintenance Features', 'sstl_maint.asp', '');
//addItem('Drive Systems', 'sstm_drive.asp', '');
addItem('Optional Equipment', 'sstl_opt.asp', '');
addItem('Unit Specifications', 'stl_specifications.asp', '');
addItem('Engineering Data', 'sstl_eng.asp', '');

startMenu('mSTW', true, 95, 0, 160, subM, '', false);
addItem('STW Brochures', 'sstw_brochures.asp', '');
addItem('STW Highlights', 'stwunit.asp', '');
addItem('Design Features', 'sstw_design.asp', '');
addItem('Maintenance Features', 'sstw_maint.asp', '');
//addItem('Drive Systems', 'sstw_drive.asp', '');
addItem('Optional Equipment', 'sstw_opt.asp', '');
addItem('Unit Specifications', 'stw_specifications.asp', '');
addItem('Engineering Data', 'sstw_eng.asp', '');

startMenu('mSTD', true, 95, 0, 160, subM, '', false);
addItem('STD Brochures', 'sstd_brochures.asp', '');
addItem('STD Highlights', 'stdunit.asp', '');
addItem('Design Features', 'sstd_design.asp', '');
addItem('Maintenance Features', 'sstd_maint.asp', '');
//addItem('Drive Systems', 'sstd_drive.asp', '');
addItem('Optional Equipment', 'sstd_opt.asp', '');
addItem('Unit Specifications', 'std_specifications.asp', '');
addItem('Engineering Data', 'sstd_eng.asp', '');

startMenu('mTFC', true, 95, 0, 160, subM, '', false);
addItem('TFC Brochures', 'tfc_brochures.asp', '');
addItem('TFC Highlights', 'tfcunit.asp', '');
addItem('Design Features', 'tfc_principle.asp', '');
addItem('Optional Equipment', 'tfc_defrost.asp', '');
addItem('Applications', 'tfc_blast.asp', '');
addItem('Unit Specifications', 'tfc_specifications.asp', '');
// END ICE THERMAL MENU LAYOUT

startMenu('mPressureVessels', true, 230, 0, 160, subM, '', false);
addItem('Vessel Capabilities', 'window.open("media/pdf/511-Pressure-Vessel-Capabilities.pdf")', 'js:');
addItem('Vessel Engineering Manual', 'window.open("media/pdf/asme-pressure.pdf")', 'js:');
addItem('MPC Plate Chiller', 'window.open("media/pdf/520-ASME-MPC-PlateChiller.pdf")', 'js:');
addItem('MPS Plate & Shell Chiller', 'window.open("media/pdf/525-ASME-MPS-Plate&Shell-Chiller.pdf")', 'js:');
addItem('MVI Intercooler w/ Matrix LLC', 'window.open("media/pdf/510-ASME-MVI-Intercooler.pdf")', 'js:');
addItem('Matrix LLC', 'window.open("media/pdf/515-ASME-MatrixLLC.pdf")', 'js:');

//addItem('Pressure Vessels', 'pressurevessels.asp', '');
//addItem('Custom Design', 'press_vess_custom.asp', '');
//addItem('Hi-Tech Manufacturing', 'press_vess_blast.asp', '');


// START RECIRCULAR MENU LAYOUT
startMenu('mRecircular', true, 190, 0, 160, subM, '', false);
addItem('All Recirculators', 'recirculator_title.asp', '');
addItem('HLR / VLR', 'mHLR', 'sm:');
addItem('SRS-H / SRS-V', 'mSRS', 'sm:');

startMenu('mHLR', true, 165, 0, 160, subM, '', false);
addItem('HLR / VLR Highlights', 'hlrunit.asp', '');
addItem('Design Features', 'hlr_principle.asp', '');
addItem('Hi-Tech Manufacturing', 'hlr_blast.asp', '');
addItem('Advantages', 'hlr_factory_assembled.asp', '');
addItem('Optional Equipment', 'hlr_alternate_pumps.asp', '');

startMenu('mSRS', true, 165, 0, 160, subM, '', false);
addItem('SRS-H / SRS-V Highlights', 'srsunit.asp', '');
addItem('Design Features', 'srs_principle.asp', '');
addItem('Hi-Tech Manufacturing', 'srs_blast.asp', '');
addItem('Advantages', 'srs_factory_assembled.asp', '');
addItem('Optional Equipment', 'srs_liquid_feed.asp', '');
// START RECIRCULAR MENU LAYOUT


startMenu('mCriticalProcess', true, 230, 0, 200, subM, '', false);
//addItem('Product Video', 'evapco_videos.asp?vID=cpa', '');
addItem('Product Video', 'window.open("evapco_videos.asp?vID=cpa")', 'js:');
addItem('CPA Systems', 'window.open("media/pdf/cpa.pdf")', 'js:');
addItem('CPA-DW Desiccant Systems', 'window.open("media/pdf/cpa-dw.pdf")', 'js:');
addItem('Ultra~Pure Air Systems', 'window.open("media/pdf/ultra-pure.pdf")', 'js:');
addItem('ESS - EVAPCO Sanitizing System', 'window.open("media/pdf/ess.pdf")', 'js:');
addItem('EDF - Make-Up Air Units', 'window.open("media/pdf/edf.pdf")', 'js:');
//addItem('All Units', 'crit_proc_title.asp', '');
//addItem('CPA', 'mCPA', 'sm:');
//addItem('EDF', 'mEDF', 'sm:');


//startMenu('mCPA', true, 95, 0, 160, subM, '', false);
//addItem('CPA Highlights', 'cpaunit.asp', '');
//addItem('Design Features', 'cpa_principle.asp', '');
//addItem('Controls System', 'cpa_compatibility.asp', '');
//addItem('Benefits', 'cpa_cleanliness.asp', '');
//addItem('Unit Specifications', 'cpa_specifications.asp', '');


//startMenu('mEDF', true, 95, 0, 160, subM, '', false);
//addItem('EDF Highlights', 'edfunit.asp', '');
//addItem('Design Features', 'edf_principle.asp', '');
//addItem('Drive Systems', 'edf_fan_motor.asp', '');
//addItem('Optional Equipment', 'edf_filtration.asp', '');
//addItem('Unit Specifications', 'edf_specifications.asp', '');
//addItem('PDF Files', '#', '');

startMenu('mIndustry', true, 195, 0, 160, subM, '', false);
addItem('Industry Links', 'ind_links.asp', '');
addItem('Industry Downloads', 'ind_downloads.asp', '');

startMenu('mVideos', true, 195, 0, 310, subM, '', false);
//addItem('Corporate Video', 'corp-video.asp', '');
//addItem('Non-Chemical Water Treatment', 'pulse-video.asp', '');
//addItem('Low-Sound Solutions', 'low_video.asp', '');
//addItem('Critical Process Air Units System', 'cpa_video.asp', '');
//addItem('Evap-Jet High Performance Nozzle Video', 'evapjet_video.asp', '');
addItem('Imagine EVAPCO Corporate Video', 'mVideoLang', 'sm:');
addItem('Thermal Ice Storage', 'window.open("evapco_videos.asp?vID=tis")', 'js:');
addItem('<i>Pulse</i>~Pure&reg; Non-Chemical Water Treatment System', 'window.open("evapco_videos.asp?vID=pp")', 'js:');
addItem('Super Low Sound Fan Technology', 'window.open("evapco_videos.asp?vID=lss1")', 'js:');
addItem('Energy Efficient Super Low Sound Fans', 'window.open("evapco_videos.asp?vID=lss2")', 'js:');
addItem('Critical Process Air Systems', 'window.open("evapco_videos.asp?vID=cpa")', 'js:');
addItem('EvapJet&reg; High Performance Nozzle', 'window.open("evapco_videos.asp?vID=ej")', 'js:');
addItem('Fire Retardant EvapLiner&reg;', 'window.open("evapco_videos.asp?vID=el")', 'js:');


// Here's some more example menus items that address common problems. Try these if you want:
//
// Navigate the whole current window to a page named 'file.html':
//  addItem('Open File', 'file.html', '');
// Open a page in a frame named "content":
//  addItem('Home', '/home/index.html', 'top.content');
// Run a JavaScript command to pop open a new window when clicked:
//  addItem('Catalog', 'window.open("/catalog.html")', 'js:');
// Use a custom ItemStyle you've created:
//  addItem('Text', 'file.html', '', button);
// Make an item 200px long, overriding the default item size:
//  addItem('This contains lots and lots of text', 'file.html', '', null, 200);
// How to open a submenu and also load a file when clicked:
//  with (addItem('Text', 'file.html', '')) sm = 'menuNameHere';
// Popout a submenu named 'mHelp', and give it a JavaScript click action:
//  with(addItem('Help', 'mHelp', 'sm:')) onclick='window.location.href="file.html"';


// This 'mHelp' menu is aligned slightly left of its trigger (-10px).
// Instead of using spaces to indent, consider 'text-indent' in the stylesheet class perhaps?
// The last item is an example of adding extra optional parameters to the addItem() command.
// It uses the subM ItemSyle (regardless of what the rest of this menu uses), is 22px long,
// has 0px spacing after it, and a lesser-than-sign popout indicator positioned 3px from the left
// edge of this item. Note that the parameters after the ItemStyle name are in the same order as
// the ItemStyle command itself, and you can have as many as you want (e.g. background colours).

startMenu('mHelp', true, -10, 22, 80, subM, '', false);
addItem('&nbsp; &nbsp; Contents', '#', '');
addItem('&nbsp; &nbsp; Search', '#', '');
addItem('&nbsp; &nbsp; About', 'mAbout', 'sm:', subM, 22, 0, '&lt;', 3);


// This is 85px across and 0px down... a horizontal popout.
// Again these items have their own ItemStyles, and unique lengths / spacings between specified.

startMenu('mReopen', true, 85, 0, 120, button, '', false);
addItem('Recent Doc 1:<br />Schedule', '#', '', button, 35);
addItem('Recent Doc 2:<br />Cunning Plan', '#', '', button, 35, 5);
addItem('Etc. etc...', '#', '', subM);


// This uses the subBlank ItemStyle which gives the items no borders when dim. The border around
// the whole menu comes from a JavaScript function in the "Menu Effects" section.

startMenu('mConvert', true, 85, 0, 80, subBlank, '', false);
addItem('Windows', '#', '');
addItem('Unix', '#', '');
addItem('Macintosh', '#', '');


// Leftwards popout with a negative x and y relative to its trigger. The item has a custom height.

startMenu('mAbout', true, -85, -18, 80, subM, '', false);
addItem('Leftwards!<br>And up!', '#', '', subM, 40);



// HIDE OR SHOW DELAYS (in milliseconds) can be customised. Defaults are:
//showDelay = 0;
//hideDelay = 500;
// Specify hideDelay as zero if you want to disable autohiding, and showDelay as a couple of
// hundred if you don't want the menus showing instantaneously when moused over.

// HIDE MENUS ON DOCUMENT CLICK: Try uncommenting this, and perhaps set hideDelay to zero:
//hideDocClick = true;

// You can assign 'oncreate' events to specific menus. By default, the script has only one for
// the root menu that shows it when it is created. You may wish to change it to something like the
// following, which uses the animation function to show the menu, or delay its show altogether.
//menu.root[0].oncreate = function() { pMenu.doVis('root', true) }

// End of 'with (pMenu)' block. That's one menu object created!

}


// CREATE ANOTHER MENU OBJECT here if you want multiple menus on a page, or you can just
// duplicate this entire file and rename 'pMenu' to something else.
// Every menu object MUST have a menu named 'root' in it, as that's always visible.

//var anotherMenu = new PopupMenu('anotherMenu');
//with (anotherMenu)
//{
// startMenu('root', .....);
// ... make menus here ...
//}


// ******************** MENU EFFECTS ********************
//
// Now you've created a basic menu object, you can add optional effects like borders and
// shadows to specific menus. You can remove this section entirely if you want, the
// functions called are found at the bottom of this file.


// BORDER: Added to all menus in a named object using a specified ItemStyle. The syntax is:
//  addMenuBorder(menuObject, ItemStyle,
//   opacity of border, 'border colour', border width, 'padding colour', padding width);
// Opacity is a number from 0 to 100, or null for solid colour (just like the ItemStyles).

addMenuBorder(pMenu, window.subBlank,
 null, '#666666', 1, '#CCCCDD', 2);


// DROPSHADOW: added to specific ItemStyles again. The syntax is similar, but later on you
// pass arrays [...] for each layer of the shadow you want. I've used two grey layers
// here, but you can use as many or as few as you want. The syntax for the layers is:
//  [opacity, 'layer colour', X offset, Y offset, Width Difference, Height difference]
// Opacity is from 0 to 100 (or null to make it solid), and the X/Y offsets are the
// distance in pixels from the menu's top left corner to that shadow layer's corner.
// The width/height differences are added or subtracted to the current menu size, for
// instance the first layer of this shadow is 4px narrower and shorter than the menu
// it is shadowing.

addDropShadow(pMenu, window.subM,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subBlank,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);


// ANIMATION SETTING: We add this to the 'pMenu' menu object for supported browsers.
// IE4/Mac and Opera 5/6 don't support clipping, and Mozilla versions prior to 1.x (such as
// Netscape 6) are too slow to support it, so I'm doing some browser sniffing.
// If you don't want animation, delete this entirely, and the menus will act normally.
// Change the speed if you want... it's the last number, between -100 and 100, and is
// defined as the percentage the animation moves each frame (defaults are 10 and 15).

if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');

 // Add animation to other menu objects like this...
 //anotherMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
 //anotherMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}


// ******************** FUNCTIONS CALLED BY THE EFFECTS SECTION ********************

// These can be deleted if you're not using them. Alternatively, if you're using several menu
// data files, you may want to move them to the "core" script file instead.


// This is the "positioning from page anchors" code used by the advanced positioning expressions.
page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};


// Animation:
//
// Each menu object you create by default shows and hides its menus instantaneously.
// However you can override this behaviour with custom show/hide animation routines,
// as we have done in the "Menu Effects" section. Feel free to edit this, or delete
// this entire function if you're not using it. Basically, make functions to handle
// menuObj.showAnim() and .hideAnim(), both of which are passed menu names.
//
// Customisers: My lyr.clip() command gets passed the parameters (x1, y1, x2, y2)
// so you might want to adjust the direction etc. Oh, and I'm adding 2 to the dimensions
// to be safe due to different box models in some browsers.
// Another idea: add some if/thens to test for specific menu names...?

function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  // Stop any existing animation.
  clearTimeout(timer);

  // If the litNow() array doesn't show this menu as lit, and we're still showing it,
  // force a quick hide (this stops miscellaneous timer errors).
  //if (dir>0 && !menuObj.litNow[menuObj.menu[menuName][0].parentMenu]) dir = -100;

  // If the layer doesn't exist (cross-frame navigation) quit.
  if (!lyr || !lyr.ref) return;
  // This next line is not strictly necessary, but it stops the one-in-a-hundred menu that
  // shows and doesn't hide on very quick mouseovers.
  if (!visNow && dir>0) dir = 0-dir;
  // Show the menu if that's what we're doing.
  if (dir>0) lyr.vis('visible');
  // Also raise showing layers above hiding ones.
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;

  // Alpha fade in IE5.5+. Mozilla's opacity (pre-v1.7) isn't well suited as it's an inheritable
  // property rather than a block-level filter, and it's slow, but uncomment and try it perhaps.
  // WARNING: This looks funny if you're mixing opaque and translucent items e.g. solid menus
  // with dropshadows. If you're going to use it, either disable dropshadows or set the opacity
  // values for your items to numbers instead of null.
  //if (isIE && window.createPopup) lyr.alpha(counter&&(counter<100) ? counter : null);

  // Clip the visible area. The syntax is:   lyr.clip(left, top, right, bottom);
  // As you can see in these examples, three are static at either zero or the edge of a menu item,
  // and either the top or bottom is a complicated formula based on the 'counter' variable which
  // counts from 0 to 100 and back again; this give a nice accelerating-sliding animation.
  // Feel free to experiment with your own animations, here are some samples (use one only):

  // Straightforward downwards clipping animation (default setting):
  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  // If you want, comment out the above line and enable this one to animate bottom-upwards:
  //lyr.clip(0, (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75), menuW+2, menuH+2);
  // Another alternative: Move+clip sliding animation. Looks really cool :).
  //if (!counter) mD.origY = lyr.y();
  //var newY = (menuH+2)-(menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75);
  //lyr.clip(0, newY, menuW+2, menuH+2);
  //lyr.y(mD.origY - newY);

  // Increment the counter and if it hasn't reached the end (counter is 0% or 100%),
  // set the timer to call the animation function again in 40ms to contine the animation.
  // Note that we hide the menu div on animation end in that direction.
  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};


// Borders and Dropshadows:
//
// Here's the menu border and dropshadow functions we call above. Edit ot delete if you're
// not using them. Basically, they assign a string to pMenu.menu.menuName[0].extraHTML, which
// is written to the document with the menus as they are created -- the string can contain
// anything you want, really. They also adjust the menu dimensions and item positions
// to suit. Dig out the Object Browser script and open up "pMenu" for more info.

function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  // Set the menu's extra content string with divs/layers underneath the items.
  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+
   (alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+alpha+'%; opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
};

function addDropShadow(mObj, iS)
{
 // Pretty similar to the one above, just loops through list of extra parameters making
 // dropshadow layers (from arrays) and extending the menu dimensions to suit.
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   // Safari 1.2 bug: it inherits alpha values SIDEWAYS!?!? What were they thinking?
   var alpha = (s[0]!=null && navigator.userAgent.indexOf('AppleWebKit') == -1);
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; -z-index:'+
    (a.length-shad)+'; '+
    (alpha?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+s[0]+'%; opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
};
