//The following block is critical for menu operation
menunum=0;
menus=new Array();
_d=document;

function addmenu(){
menunum++;
menus[menunum]=menu;
}

function dumpmenus(){
mt="<script language=JavaScript>";
for(a=1;a<menus.length;a++){
	mt+=" menu"+a+"=menus["+a+"];"
}
mt+="<\/script>";
_d.write(mt)
}

// Special effects string
//effect = "gradientwipe(size=1.00, wipestyle=1, motion=Forward, duration=.3);Shadow(color='#555555', Direction=135, Strength=5);"
effect = "Shadow(color='#555555', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter


timegap=500                   // The time delay for menus to remain visible
followspeed=350               // Follow Scrolling speed
followrate=200                // Follow Scrolling Rate
suboffset_top=3               // Sub menu offset Top position
suboffset_left=3              // Sub menu offset Left position

style0=[					  // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"FFFFFF",                     // Mouse Off Font Color
"7F96B6",  	     	          // Mouse Off Background Color (use zero for transparent in Netscape 6)
"FFFFFF",                     // Mouse On Font Color
"002E6E",     	              // Mouse On Background Color
"FFFFFF",                     // Menu Border Color
"16",                         // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",                     // Font Style (italic or normal)
"bold",                       // Font Weight (bold or normal)
"Garamond",				  // Font Name
5,                            // Menu Item Padding or spacing
,                  			  // Sub Menu Image (Leave this blank if not needed)
0,                            // 3D Border & Separator bar
,                     		  // 3D High Color
,                   		  // 3D Low Color
,                       	  // Current Page Item Font Color (leave this blank to disable)
,                             // Current Page Item Background Color (leave this blank to disable)
,                             // Top Bar image (Leave this blank to disable)
,                      		  // Menu Header Font Color (Leave blank if headers are not needed)
,                     		  // Menu Header Background Color (Leave blank if headers are not needed)
"FFFFFF",                     // Menu Item Separator Color
]

subStyle=[                    // PlainStyle is an array of properties. You can have as many property arrays as you need
"FFFFFF",                     // Mouse Off Font Color
"7F96B6",                     // Mouse Off Background Color (use zero for transparent in Netscape 6)
"FFFFFF",                     // Mouse On Font Color
"002E6E",                     // Mouse On Background Color
"FFFFFF",                     // Menu Border Color
"14",                         // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",                     // Font Style (italic or normal)
"normal",                     // Font Weight (bold or normal)
"Garamond",				  // Font Name
5,                            // Menu Item Padding or spacing
"../JavaScript/menuplus.gif",     // Sub Menu Image (Leave this blank if not needed)
,                             // 3D Border & Separator bar
,                             // 3D High Color
,                             // 3D Low Color
,               		      // Current Page Item Font Color (leave this blank to disable)
,              		          // Current Page Item Background Color (leave this blank to disable)
,                             // Top Bar image (Leave this blank to disable)
,		                      // Menu Header Font Color (Leave blank if headers are not needed)
,         		              // Menu Header Background Color (Leave blank if headers are not needed)
"FFFFFF",                     // Menu Item Separator Color
]


addmenu(menu=[
"mainMenu",                   // Menu Name - This is needed in order for this menu to be called
0,                            // Menu Top - The Top position of this menu in pixels
,                             // Menu Left - The Left position of this menu in pixels
240,                          // Menu Width - Menus width in pixels
1,                            // Menu Border Width
,                             // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style0,                  	  // Properties Array - this array is declared higher up as you can see above
1,                            // Always Visible - allows this menu item to be visible at all time (1=on or 0=off)
,                             // Alignment - sets this menu elements text alignment, values valid here are: left, right or center
,                             // Filter - Text variable for setting transitional effects on menu activation - see above for more info
0,                            // Follow Scrolling Top Position - Tells this menu to follow the user down the screen on scroll placing the menu at the value specified.
0,                            // Horizontal Menu - Tells this menu to display horizontaly instead of top to bottom style (1=on or 0=off)
0,                            // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on or 0=off)
,                             // Position of TOP sub image left:center:right
,                             // Set the Overall Width of Horizontal Menu to specified width or 100% and height to a specified amount
0,                            // Right To Left - Used in Hebrew for example. (1=on or 0=off)
0,                            // Open the Menus OnClick - leave blank for OnMouseover (1=on or 0=off)
,                             // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                             // Background image for menu Color must be set to transparent for this to work
0,                            // Scrollable Menu
, 							  // Miscellaneous Menu Properties

,"&nbsp;Home","../index.html","","MENU 1",1
,"&nbsp;About Port Des Moines","show-menu=subMenu1","../aboutportdesmoines.html","MENU 2",1
,"&nbsp;Infrastructure","show-menu=subMenu2","../infrastructure.html","MENU 3",1
,"&nbsp;Facilities","show-menu=subMenu3","../facilities.html","MENU 4",1
,"&nbsp;Business Resources","show-menu=subMenu4","../businessresources.html","MENU 5",1
,"&nbsp;Location Maps","../locationmaps.html","","MENU 6",1
,"&nbsp;Links","show-menu=subMenu5","../links.html","MENU 7",1
,"&nbsp;Contact Us","../contactus.html","","MENU 8",1
,"&nbsp;Search","../search.html","","MENU 9",1
])

addmenu(menu=[
"subMenu1",
,,280,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Mission","../AboutPortDesMoines/mission.html","","Item 1",1
,"&nbsp;&nbsp;Membership","../AboutPortDesMoines/membership.html","","Item 2",1
,"&nbsp;&nbsp;Meet the Staff","../AboutPortDesMoines/meetthestaff.html","","Item 3",1
])

addmenu(menu=[
"subMenu2",
,,280,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Streets and Highways","../Infrastructure/streetsandhighways.html","","Item 1",1
,"&nbsp;&nbsp;Railroads","../Infrastructure/railroads.html","","Item 2",1
,"&nbsp;&nbsp;Airports","../Infrastructure/airports.html","","Item 3",1
,"&nbsp;&nbsp;Intermodal","../Infrastructure/intermodal.html","","Item 4",1
])

addmenu(menu=[
"subMenu3",
,,280,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Foreign Trade Zone","../Facilities/foreigntradezone.html","","Item 1",1
,"&nbsp;&nbsp;Newton Intermodal Facility","../Facilities/newtonintermodalfacility.html","","Item 2",1
,"&nbsp;&nbsp;Des Moines International Airport","show-menu=subSubMenu3","../Facilities/desmoinesinternationalairport.html","Item 3",1
])

addmenu(menu=[
"subSubMenu3",
,,320,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;U.S. Port of Entry","../Facilities/portofentry.html","","Item A",1
,"&nbsp;&nbsp;Air Cargo and Air/Truck Intermodal Facility","../Facilities/airintermodal.html","","Item B",1
])

addmenu(menu=[
"subMenu4",
,,280,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Service Providers","show-menu=subSubMenu4","../BusinessResources/serviceproviders.html","Item 1",1
,"&nbsp;&nbsp;Importers","../BusinessResources/importers.html","","Item 2",1
,"&nbsp;&nbsp;Exporters","../BusinessResources/exporters.html","","Item 3",1
,"&nbsp;&nbsp;Manufacturers","../BusinessResources/manufacturers.html","","Item 4",1
,"&nbsp;&nbsp;General Trade Services","show-menu=subSubMenu5","../BusinessResources/generaltradeservices.html","Item 5",1
])

addmenu(menu=[
"subSubMenu4",
,,300,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Trucking Companies","../BusinessResources/truckingcompanies.html","","Item A",1
,"&nbsp;&nbsp;Railroads","../BusinessResources/railroads.html","","Item B",1
,"&nbsp;&nbsp;Air Cargo","../BusinessResources/aircargo.html","","Item C",1
,"&nbsp;&nbsp;Third Party Logistics Firms","../BusinessResources/3pl.html","","Item D",1
,"&nbsp;&nbsp;Freight Forwarders","../BusinessResources/freightforwarders.html","","Item E",1
,"&nbsp;&nbsp;Warehouses","../BusinessResources/warehouses.html","","Item F",1
,"&nbsp;&nbsp;Customs Brokers","../BusinessResources/customsbrokers.html","","Item G",1
])

addmenu(menu=[
"subSubMenu5",
,,300,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Banking","../BusinessResources/banking.html","","Item A",1
,"&nbsp;&nbsp;Legal Services","../BusinessResources/legalservices.html","","Item B",1
,"&nbsp;&nbsp;Real Estate","../BusinessResources/realestate.html","","Item C",1
])

addmenu(menu=[
"subMenu5",
,,280,1,,subStyle,0,,effect,0,0,0,,,0,0,,,0,,
,"&nbsp;&nbsp;Des Moines Area Metropolitan Planning Organization","../Links/dmampo.html","","Item 1",1
,"&nbsp;&nbsp;Greater Des Moienes Partnership","../Links/gdmp.html","","Item 2",1
,"&nbsp;&nbsp;North America's SuperCorridor Coalition, Inc.","../Links/nasco.html","","Item 3",1
,"&nbsp;&nbsp;North American Inland Ports Network","../Links/naipn.html","","Item 4",1
,"&nbsp;&nbsp;International Traders of Iowa","../Links/iti.html","","Item 5",1
])

dumpmenus();