/***
This is the menu creation code - place it right after your 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=3
oCMenu.fromTop=3
oCMenu.rows=1
oCMenu.menuPlacement="center"

oCMenu.offlineRoot="file:///C|/$Web/Lions/District/"
oCMenu.onlineRoot="http://www.md27d1.org/"
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=100
oCMenu.level[0].height=28
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=20
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="center"

//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+30
oCMenu.level[1].height=35
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=0
oCMenu.level[1].offsetY=10
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=180
oCMenu.level[2].height=25
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','','Home','http://www.md27d1.org/index.html','')

oCMenu.makeMenu('top1','','Convention','','')
oCMenu.makeMenu('sub10','top1','Index','http://www.md27d1.org/cabinet/convention.html','_blank')
oCMenu.makeMenu('sub11','top1','Registration Form','http://www.md27d1.org/cabinet/docs/27d1-convention-registration-2010.pdf','_blank')
oCMenu.makeMenu('sub12','top1','Delegate Credential Form','http://www.md27d1.org/cabinet/docs/delegate-credential-form-2010.pdf','_blank')
oCMenu.makeMenu('sub13','top1','District Convention Committee','http://www.md27d1.org/dc-committee/index.html','_blank')
oCMenu.makeMenu('sub14','top1','Convention Photos','http://www.kodakgallery.com/ShareLanding.action?c=14p9g3f.68ag395b&x=1&y=-epy8ye&localeid=en_US','_blank')

oCMenu.makeMenu('top2','','Cabinet','','')
oCMenu.makeMenu('sub20','top2','Index','http://www.md27d1.org/cabinet/index.html','')
oCMenu.makeMenu('sub21','top2','Constitution','http://www.md27d1.org/cabinet/docs/27d1-constitution-2004.pdf','_blank')
oCMenu.makeMenu('sub22','top2','Policy Manual','http://www.md27d1.org/cabinet/docs/27d1-policy-2009.pdf','_blank')

oCMenu.makeMenu('top3','','Information','','')
oCMenu.makeMenu('sub30','top3','Find a Club','http://www.lionsclubs.org/EN/find-a-club.php','_blank')
oCMenu.makeMenu('sub31','top3','Directory','http://md27directory.org/md27/','_blank')
oCMenu.makeMenu('sub32','top3','Club Web Sites','http://www.md27d1.org/clublinks.html','_blank')
oCMenu.makeMenu('sub33','top3','District Contributions','http://www.md27d1.org/cabinet/docs/district-contribution-form.pdf','_blank')
oCMenu.makeMenu('sub34','top3','I Am a Lion','http://www.lionsclubs.org/EN/content/pdfs/me37.pdf','_blank')
oCMenu.makeMenu('sub35','top3','Member Orientation','http://www.md27d1.org/cabinet/2009-10-docs/orientation-2009.pdf','_blank')
oCMenu.makeMenu('sub36','top3','Mission to Mexico','http://www.md27d1.org/mtm-newsletter.html','_blank')
oCMenu.makeMenu('sub37','top3','Officer Training','http://www.md27d1.org/cabinet/docs/officertraining09.pdf','_blank')
oCMenu.makeMenu('sub39','top3','Youth Exchange','http://www.tokencreeklions.org/27-D1YE/','_blank')

oCMenu.makeMenu('top4','','Projects','','')
//oCMenu.makeMenu('sub40','top4','Copps and Lions Food Drive','http://www.md27d1.org/fooddrive.html','_blank')//
oCMenu.makeMenu('sub40','top4','Concession Stands','http://www.madison-central-lions.org/projects/index.html','_blank')
oCMenu.makeMenu('sub41','top4','Cornea Transport','http://www.madison-central-lions.org/projects/transporters.html','_blank')
oCMenu.makeMenu('sub42','top4','Vision Screening','http://www.md27d1.org/vision-screening/index.html','_blank')
oCMenu.makeMenu('sub43','top4','Vision Screening Brochure','http://www.md27d1.org/vision-screening-brochure.pdf','_blank')


oCMenu.makeMenu('top5','','Calendars','','')
oCMenu.makeMenu('sub50','top5','District Calendar','http://www.md27d1.org/cabinet/districtcalendar.html','_blank')
oCMenu.makeMenu('sub51','top5','2011 Calendar Order Form','http://www.md27d1.org/calendar-order-form.pdf','_blank')

oCMenu.makeMenu('top6','','More','','')
oCMenu.makeMenu('sub60','top6','MD27D1 Facebook Page','http://www.facebook.com/pages/Wisconsin-Lions-MD27D1/168911887104#','_blank')
oCMenu.makeMenu('sub61','top6','Lions International','http://www.lionsclubs.org/EN/index.shtml','_blank')
oCMenu.makeMenu('sub62','top6','Wisconsin Lions','http://www.wisconsinlions.org/','_blank')
oCMenu.makeMenu('sub63','top6','Wisconsin Lions News','http://www.madison-central-lions.org/news.html','_blank')
oCMenu.makeMenu('sub64','top6','Lions Eye Bank of Wisconsin','http://www.lebw.org/','_blank')
oCMenu.makeMenu('sub65','top6','Lions Pride Campaign','http://www.lionspride.org/','_blank')
oCMenu.makeMenu('sub66','top6','State Convention','http://lionsstateconvention.org/index.htm','_blank')
oCMenu.makeMenu('sub67','top6','US/Canada Forum','http://www.milwaukeeforum.org','_blank')


//Leave this line - it constructs the menu
oCMenu.construct()