/*** 
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.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=5
oCMenu.fromLeft=15
oCMenu.fromTop=32
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="http://www.nps.gov/oclp/" 
oCMenu.resizeCheck=1 
oCMenu.wait=400 
oCMenu.fillImg="images/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=""
oCMenu.barHeight="12" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=80
oCMenu.level[0].height=18 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=-1
oCMenu.level[0].offsetY=3
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=1
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=250
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=200
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top1','','About Us','','',56)
  oCMenu.makeMenu('sub10','top1','Our Mission','mission.htm')
  oCMenu.makeMenu('sub11','top1','History + Role with NPS','oclp_history.htm') 
  oCMenu.makeMenu('sub12','top1','Contacts','contacts.htm')
    oCMenu.makeMenu('sub13','top1','Home','index.htm') 
oCMenu.makeMenu('line1','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')	
oCMenu.makeMenu('top2','','Programs','','',63)
  oCMenu.makeMenu('sub20','top2','Preservation Planning','pres_plan_main.htm')
  		oCMenu.makeMenu('sub200','sub20','Cultural Landscape Inventory','cli_main.htm')
		oCMenu.makeMenu('sub201','sub20','Cultural Landscape Reports','clr_main.htm')
		oCMenu.makeMenu('sub202','sub20','NHPA and NEPA Compliance','nhpa_nepa.htm')
  oCMenu.makeMenu('sub21','top2','Preservation Maintenance','pres_main.htm')
    	oCMenu.makeMenu('sub210','sub21','Historic Plant Preservation','hist_plant_pres.htm')
		oCMenu.makeMenu('sub211','sub21','Multi Park Preservation Teams','multipark_teams.htm')
		oCMenu.makeMenu('sub212','sub21','Preservation Maintenance Plans ','presmaint_plans.htm')
		oCMenu.makeMenu('sub213','sub21','Landscape Stabilization Plans  ','stabilize_plans.htm')
		oCMenu.makeMenu('sub214','sub21','Historic Orchard Initiative ','hist_orchard_pres.htm')
  oCMenu.makeMenu('sub22','top2','Education + Training','edu_train.htm')
      	oCMenu.makeMenu('sub220','sub22','Apprenticeships + Internships','intern_main.htm')
		oCMenu.makeMenu('sub221','sub22','Arborist Training Program','arborist_train.htm')
		oCMenu.makeMenu('sub222','sub22','Publications','publications.htm')
		oCMenu.makeMenu('sub223','sub22','Conferences + Workshops','conf_workshops.htm')
oCMenu.makeMenu('line2','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')
oCMenu.makeMenu('top3','','Projects','','',55)
	oCMenu.makeMenu('sub31','top3','Charleston Navy Yard CLR','navy_yard_clr.htm')
	oCMenu.makeMenu('sub32','top3','Angel Island Immigration Station CLR','angel_island_clr.htm')
	oCMenu.makeMenu('sub33','top3','Weir Farm CLR','weir_farm_clr.htm')
	oCMenu.makeMenu('sub34','top3','John Muir CLR','john_muir_clr.htm')
	oCMenu.makeMenu('sub35','top3','North Bridge CLR','north_bridge_clr.htm')
	oCMenu.makeMenu('sub36','top3','Governors Island CLI','govs_island_cli.htm')
	oCMenu.makeMenu('sub37','top3','New River Gorge CLI','thurmond_cli.htm')
	oCMenu.makeMenu('sub38','top3','Weir Farm Preservation Maintenance Plan','weir_farm_plan.htm')
	oCMenu.makeMenu('sub39','top3','Marsh-Billings-Rockefeller Stabilization Plan','marsh_billings_plan.htm')
	oCMenu.makeMenu('sub391','top3','Morristown Orchard Management Plan','morris_orchard_plan.htm')
	oCMenu.makeMenu('sub392','top3','Yellowstone Wildland Fire Fuel Reduction','yellowstone_pres_main.htm')
	oCMenu.makeMenu('sub393','top3','Valley Forge Historic Trails Training','valley_forge_train.htm')
oCMenu.makeMenu('line3','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')
	
oCMenu.makeMenu('top4','','How We Can Help','how_help.htm','',102)
oCMenu.makeMenu('line4','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')
oCMenu.makeMenu('top5','','News + Events','','',88)
	oCMenu.makeMenu('sub50','top5','Internship Opportunities','internships.htm')
	oCMenu.makeMenu('sub51','top5','Presentations, Papers + Training Sessions','papers_training.htm')
	oCMenu.makeMenu('sub52','top5','Ongoing Projects','ongoing_projects.htm')
	oCMenu.makeMenu('sub53','top5','Recent Awards + Recognitions','awards.htm')
oCMenu.makeMenu('line5','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')
oCMenu.makeMenu('top6','','Partners','nps_partners.htm','',55)
oCMenu.makeMenu('line6','','|','','',1,18,'images/cm_fill.gif','','','','','','nolink')
oCMenu.makeMenu('top7','','Links','links.htm','',40)



//Leave this line - it constructs the menu
oCMenu.construct()		
