

//Menu object creation

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname



oCMenu.frames=0



//Menu properties   

oCMenu.pxBetween=20

oCMenu.fromLeft=87

oCMenu.fromTop=100  

oCMenu.rows=1 

oCMenu.menuPlacement=""

                                                             

//oCMenu.offlineRoot="file:///C|/temp/stb/scripts/" 

//oCMenu.onlineRoot="../scripts/" 

oCMenu.resizeCheck=1 

oCMenu.wait=500 

oCMenu.fillImg="cm_fill.gif"

oCMenu.zIndex=0



//Background bar properties

oCMenu.useBar=0

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=110

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=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"



//dynamic effect (controllable for each level)

oCMenu.level[0].clippx=20

oCMenu.level[0].cliptim=1

//special animation filters (IE5.5+ only, controllable for each level)

oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 



//Other special animation filters (IE5.5+ only, controllable for each level)

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Barn(duration=0.5,orientation=horizontal)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Blinds(duration=0.5,bands=5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.CheckerBoard(duration=0.5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=0)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=STAR)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=CIRCLE)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Pixelate(duration=0.5,maxSquare=40)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Spiral(duration=0.5)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Stretch(duration=0.5,stretchStyle=push)"

//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Strips(duration=0.5,motion=rightdown)"





//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=115//oCMenu.level[0].width-4

oCMenu.level[1].height=18

oCMenu.level[1].regClass="clLevel1"

oCMenu.level[1].overClass="clLevel1over"

oCMenu.level[1].borderX=0

//This will move the start of the drop down vertical

oCMenu.level[1].borderY=3.5

oCMenu.level[1].align="right" 

oCMenu.level[1].offsetX=0

oCMenu.level[1].offsetY=0

oCMenu.level[1].borderClass="clLevel1border"

//dynamic effect

oCMenu.level[1].clippx=10

oCMenu.level[1].cliptim=1

//special animation filters

oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 





//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=18



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','','Christian Education','http://www.macland.org/Christian-Education/All-Education-Classes.htm','',115,0)

	oCMenu.makeMenu('sub03','top0','Read the Bible!','http://www.macland.org/Christian-Education/Read-the-bible.htm','',130,18)

	oCMenu.makeMenu('sub05','top0','Youth','http://www.macland.org/Christian-Education/Youth.htm','',130,18)



oCMenu.makeMenu('top1','','Church News','http://www.macland.org/Church-News/Church-News.htm','',80,18)

	oCMenu.makeMenu('sub10','top1','Newsletters','http://www.macland.org/Church-News/Newsletters.htm','',160,18)

	oCMenu.makeMenu('sub11','top1','Weekly Services Schedule','http://www.macland.org/Church-News/Weekly-Services-Schedule.php','',160,18)



oCMenu.makeMenu('top2','','Member Information','http://www.macland.org/Member-Info/Member-Information.htm','',125,18)

	oCMenu.makeMenu('sub20','top2','Macland Community','http://www.macland.org/Member-Info/Macland-Community.htm','',160,0)

	oCMenu.makeMenu('sub21','top2','Prayer Room','http://www.macland.org/Member-Info/Prayer-Room.htm','',160,18)

	oCMenu.makeMenu('sub22','top2','Presbyterian Links','http://www.macland.org/Member-Info/Presbyterian-Links.htm','',160,18)

	oCMenu.makeMenu('sub23','top2','Small Groups','http://www.macland.org/Member-Info/Small-Groups.htm','',160,18)

	

oCMenu.makeMenu('top3','','Ministry','http://www.macland.org/Ministry/Ministry.htm','',55,18)

	oCMenu.makeMenu('sub30','top3','Good News Ministry','http://www.macland.org/Ministry/Good-News-Ministry/Good-News-Ministry.htm','',160,18)

		oCMenu.makeMenu('sub332','sub30','Partner in Education','http://www.macland.org/Ministry/Good-News-Ministry/Partner-In-Education.htm','',123,0)

		//oCMenu.makeMenu('sub333','sub30','Prayer Walks','http://www.macland.org/Ministry/Good-News-Ministry/Prayer-Walks.htm','',123,0)

		//oCMenu.makeMenu('sub334','sub30','Silver Comet Trail','http://www.macland.org/Ministry/Good-News-Ministry/Silver-Comet-Trail.htm','',123,0)

	oCMenu.makeMenu('sub31','top3','Missions Ministry','http://www.macland.org/Ministry/Missions-Ministry/Mission-Opportunities.htm','',160,18)

	oCMenu.makeMenu('sub32','top3','Worship','http://www.macland.org/Ministry/Worship/Worship.htm','',160,18)

		oCMenu.makeMenu('sub320','sub32','Early Service Choir','http://www.macland.org/Ministry/Worship/Early-Service-Choir.htm','',120,0)

		oCMenu.makeMenu('sub321','sub32','Music Programs','http://www.macland.org/Ministry/Worship/Music-Programs.htm','',120,0)

		oCMenu.makeMenu('sub323','sub32','Taize','http://www.macland.org/Ministry/Worship/Taize.htm','',120,0)

	

oCMenu.makeMenu('top4','','Pre-School','http://www.macland.org/PreSchool/PreSchool.htm','',70,18)

	oCMenu.makeMenu('sub41','top4','Admissions','http://www.macland.org/PreSchool/Admissions.htm','',150,18)

	oCMenu.makeMenu('sub42','top4','Classes & Fees','http://www.macland.org/PreSchool/Class-Tuition.htm','',150,18)

	oCMenu.makeMenu('sub43','top4','Food & Personal Items','http://www.macland.org/PreSchool/Food-Personal.htm','',150,18)

	oCMenu.makeMenu('sub44','top4','General Information','http://www.macland.org/PreSchool/General-Information.htm','',150,18)

	oCMenu.makeMenu('sub45','top4','Health Policy','http://www.macland.org/PreSchool/Health-Policy.htm','',150,18)

	oCMenu.makeMenu('sub46','top4','Letter from the Director','http://www.macland.org/PreSchool/Letter-From-Director.htm','',150,18)

	oCMenu.makeMenu('sub47','top4','Preschool Calendar','http://www.macland.org/PreSchool/Preschool-Calendar.htm','',150,18)

	

oCMenu.makeMenu('top5','','Sermons','http://www.macland.org/Sermons/Sermons.htm','',52,18)	



oCMenu.makeMenu('top6','','What We Believe','http://www.macland.org/Ministry/WeBelieve.htm','',115,18)



//Leave this line - it constructs the menu

oCMenu.construct()	



