/*** 
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=-1
oCMenu.fromLeft=30
oCMenu.fromTop=35
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///C|/My%20Documents/My%20Webs/DAGMEC%20Menu%20Update/" 
oCMenu.onlineRoot="http://dagmec.org" 
oCMenu.resizeCheck=1 
oCMenu.wait=100
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth=746
oCMenu.barHeight=30
oCMenu.barClass="clBar"
oCMenu.barX=10 
oCMenu.barY=120
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=119
oCMenu.level[0].height=35 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
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=oCMenu.level[0].width+60
oCMenu.level[1].height=19
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 specify 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=150
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('top0','','Text Here','', '', 119, 35, '/images2/button_member_programs.jpg','')
   oCMenu.makeMenu('sub00','top0','Member Overview','http://dagmec.org/member_organizations_member_overview.htm')
   oCMenu.makeMenu('sub01','top0','Hospitals','http://dagmec.org/member_organizations_hospitals.htm')
   oCMenu.makeMenu('sub02','top0','Residency & Fellowship Programs','http://dagmec.org/member_organizations_residency_programs.htm')
	
	
oCMenu.makeMenu('top1','','&nbso;','', '', 119, 35, '/images2/button_resident_fellow_info.jpg','')
	oCMenu.makeMenu('sub10','top1','WSUSOM Resident Manual','http://www.med.wright.edu/fca/gme/manual.html')
	oCMenu.makeMenu('sub11','top1','Student Technology Assistance Center','http://dagmec.org/STAC.htm','','',31)
	oCMenu.makeMenu('sub12','top1','Residents Survival Guide','http://dagmec.org/residents_and_fellows_residents_survival_guide.htm')
	oCMenu.makeMenu('sub13','top1','Phone Directories','http://dagmec.org/residents_and_fellows_phone_directories.htm')
	oCMenu.makeMenu('sub14','top1','Area Pharmacies','http://dagmec.org/residents_and_fellows_area_pharmacies.htm')
	oCMenu.makeMenu('sub15','top1','Resident Representatives','http://dagmec.org/2008_2009_resident_representatives.htm')
	
	
oCMenu.makeMenu('top2','','&nbsp;','', '', 119, 35, '/images2/button_resident_research_programs.jpg','')
	oCMenu.makeMenu('sub21','top2','Resident Grant Information','http://dagmec.org/research_grants_general_information.htm')
	oCMenu.makeMenu('sub22','top2','Currently Funded Projects','http://dagmec.org/research_grants_currently_funded_projects.htm')
   oCMenu.makeMenu('sub23','top2','Resident Research Forum','http://dagmec.org/research_grants_resident_research_forum.htm')
	

oCMenu.makeMenu('top3','','&nbsp;','', '', 119, 35, '/images2/button_about_dagmec.jpg','')
	oCMenu.makeMenu('sub30','top3','Mission and Vision','http://dagmec.org/what_is_dagmec_mission_and_vision.htm')
	oCMenu.makeMenu('sub31','top3','History and Milestones','http://dagmec.org/what_is_dagmec_history.htm')
	oCMenu.makeMenu('sub32','top3','Meet Our Staff','http://dagmec.org/what_is_dagmec_meet_our_staff.htm')
	oCMenu.makeMenu('sub33','top3','Contact Information','http://dagmec.org/what_is_dagmec_contact_information.htm')
    oCMenu.makeMenu('sub34','top3','Directions to Our Office','http://www.gdaha.org/directions.aspx')

oCMenu.makeMenu('top4','','&nbsp;','', '', 119, 35, '/images2/button_dagmec_workgroups.jpg','')
    oCMenu.makeMenu('sub40','top4','GME Council','http://dagmec.org','',225)
	oCMenu.makeMenu('sub41','top4','Executive Committee','http://dagmec.org','',225)
	oCMenu.makeMenu('sub42','top4','Graduate Medical Education Committee','http://dagmec.org','',225)
	oCMenu.makeMenu('sub43','top4','Dayton Area Medical Education Associates','http://dagmec.org','',225)	

oCMenu.makeMenu('top6','','&nbsp;','page.htm', '', 119, 35, '/images2/button_express_links_related_sites.jpg','')
    oCMenu.makeMenu('sub60','top6','AAMC - Association of American Medical Colleges','http://www.aamc.org','',260)
	oCMenu.makeMenu('sub61','top6','ERAS - Electronic Residency Application Service','http://www.aamc.org/eras/','',260)
	oCMenu.makeMenu('sub62','top6','NRMP - National Resident Matching Program','http://www.nrmp.org','',260)
	oCMenu.makeMenu('sub63','top6','ABMS - American Board of Medical Specialties','http://www.abms.org','',260)
	oCMenu.makeMenu('sub64','top6','ACGME - Accreditation Council for GME','http://www.acgme.org','',260)
	oCMenu.makeMenu('sub65','top6','ADA - American Dental Association','http://www.ada.org','',260)
	oCMenu.makeMenu('sub66','top6','AHME - Association for Hospital Medical Education','http://www.ahme.org','',260)
	oCMenu.makeMenu('sub67','top6','AMA - American Medical Association','http://www.ama-assn.org','',260)
	oCMenu.makeMenu('sub68','top6','AOA - American Osteopathic Association','http://www.aoa-net.org','',260)
   oCMenu.makeMenu('sub69','top6','ECFMG - Education Commission for FMGs','http://www.ecfmg.org','',260)
   oCMenu.makeMenu('sub70','top6','GDAHA - Greater Dayton Area Hospital Assoc.','http://www.gdaha.org','',260)
   oCMenu.makeMenu('sub71','top6','OSMA - Ohio State Medical Association','http://www.osma.org','',260)
   oCMenu.makeMenu('sub72','top6','OMB - Ohio Medical Board','http://www.state.oh.us/med','',260)

oCMenu.makeMenu('top7','','&nbsp;','/index.htm', '', 119, 35, '/images2/button_home_page.jpg','')


//Leave this line - it constructs the menu
oCMenu.construct()		
