/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.

April 12, 2011.
Thomas Brattli - www.dhtmlcentral.com site no longer exists.
tracked down his new site http://www.opencube.com/index.asp
FOR HELP ON variables goto http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_52a.html

**/

var oM=new makeCM("oM")
oM.pxBetween=1
oM.fromTop=65	
oM.fromLeft=5
oM.menuPlacement=0
oM.wait=1000
oM.zIndex=100
oM.resizeCheck=1
oM.frames=0

oM.onlineRoot=""
oM.offlineRoot="file:///C|/myfiles/"


//This rows property is for the top level. If you set this to 1 you will get the top menu items placed beside each other. If you set it to 0 the items will align below each other.
oM.rows=0	

//Background bar properties
oM.useBar=0
oM.barWidth="menu"
oM.barHeight="menu"
oM.barX="menu"
oM.barY="menu"
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=0
oM.barBorderClass="clB3"


//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=110
oM.level[0].height=25
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="clB2" 
oM.level[0].rows=0
oM.level[0].align="right"
oM.level[0].offsetX=0
oM.level[0].offsetY=0
//oM.level[0].arrow="/images/menu_arrow.gif"
oM.level[0].arrow=0
oM.level[0].arrowWidth=10
oM.level[0].arrowHeight=10
oM.level[0].slidepx=10

oM.level[1]=new cm_makeLevel()
oM.level[1].width=125
oM.level[1].height=22
oM.level[1].regClass="clS" 
oM.level[1].overClass="clSover" 
oM.level[1].borderX=0
oM.level[1].borderY=0
oM.level[1].borderClass="clB1"
oM.level[1].align="right"
oM.level[1].rows=0
oM.level[1].arrow=0
oM.level[1].arrowWidth=10
oM.level[1].arrowHeight=10
oM.level[1].slidepx=10

oM.level[2]=new cm_makeLevel()
oM.level[2].width=150
oM.level[2].height=20
oM.level[2].borderClass="clB3"
oM.level[2].regClass="clS2" 
oM.level[2].rows=0
oM.level[2].borderX=0
oM.level[2].borderY=0
oM.level[2].offsetX=0
oM.level[2].offsetY=0
oM.level[2].overClass="clS2over" 
oM.level[2].align="right"



/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
/*
Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/
oM.makeMenu('top0','','Home','/WetLandMaps/index.html','')

oM.makeMenu('top1','','View Maps','/WetLandMaps/Interactive.htm','')

oM.makeMenu('top2','','WetLand Plants','/WetLandMaps/WetLandPlants2/WetLandPlants.html','')

oM.makeMenu('top5','','<hr color="#FFFFFF">')
oM.makeMenu('top6','','About','/WetLandMaps/WL_About.html','')
	oM.makeMenu('sub61','top6','This Web Site','/WetLandMaps/WL_About.html','')
	oM.makeMenu('sub62','top6','WetLand Maps','/WetLandMaps/WL_About_WLMaps.html','')
	oM.makeMenu('sub63','top6','WetLand Data','/WetLandMaps/WL_About_WLData.html','')
	oM.makeMenu('sub64','top6','Climate Data','/WetLandMaps/WL_About_Climate.html','')
oM.makeMenu('top7','','FAQs','/WetLandMaps/WL_FAQs.html','')
oM.makeMenu('top8','','How To','/WetLandMaps/WL_HowToDownload.html','')
	oM.makeMenu('sub81','top8','Download Maps','/WetLandMaps/WL_HowToDownload.html','')
	oM.makeMenu('sub82','top8','Print Maps','/WetLandMaps/WL_HowToPrint.html','')

oM.makeMenu('top13','','<hr color="#FFFFFF">')

oM.makeMenu('top14','','Download','/WetLandMaps/WL_Samples.html','')
	oM.makeMenu('sub141','top14','Your Order','/WetLandMaps/OrderDownload.htm','_blank')
	oM.makeMenu('sub142','top14','Cowardin Manual','/WetLandMaps/WL_Cowardin.html','')
	oM.makeMenu('sub143','top14','Samples','/WetLandMaps/WL_Samples.html','')

oM.makeMenu('top9','','<hr color="#FFFFFF">')

oM.makeMenu('top10','','Contact Us','/WetLandMaps/WL_Contact.html','')

oM.makeMenu('top11','','<hr color="#FFFFFF">')

oM.makeMenu('top12','','View Cart','/WetLandMaps/view_cart.htm','_blank')

//Leave this line! Constructing the menu
oM.construct()		


