
//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=155   
oCMenu.rows=0 
oCMenu.menuPlacement="0"
                                                             
//oCMenu.offlineRoot="file:///C|/Work/mcc_work/web/sheriff/" 
oCMenu.onlineRoot="/services/sheriff/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
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=145
oCMenu.level[0].height=18 
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=85
oCMenu.level[0].offsetY=1
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=2
oCMenu.level[0].cliptim=2
//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=oCMenu.level[0].width-4
oCMenu.level[1].height=18
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
//oCMenu.level[1].overImage="menu_on.gif"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="left" 
oCMenu.level[1].offsetX=25
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
//dynamic effect
oCMenu.level[1].clippx=2
oCMenu.level[1].cliptim=2
//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=180
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','','Home','http://sheriff.madisoncountyal.gov/index.php')

oCMenu.makeMenu('top1','','About the Office','http://sheriff.madisoncountyal.gov/about.html')
	oCMenu.makeMenu('sub11','top1','The Sheriff','http://sheriff.madisoncountyal.gov/sheriff.html')
	oCMenu.makeMenu('sub12','top1','The Department','http://sheriff.madisoncountyal.gov/about.html')
	oCMenu.makeMenu('sub13','top1','History','http://sheriff.madisoncountyal.gov/history.html')	
	
oCMenu.makeMenu('top2','','Divisions')
	oCMenu.makeMenu('sub21','top2','Civil Division','http://sheriff.madisoncountyal.gov/civil.html','','180')
	oCMenu.makeMenu('sub22','top2','Corrections Division','http://sheriff.madisoncountyal.gov/corr.html','','180')
	oCMenu.makeMenu('sub23','top2','Criminal Investigations Division','http://sheriff.madisoncountyal.gov/cid.html','','180')
	oCMenu.makeMenu('sub24','top2','Patrol Division','http://sheriff.madisoncountyal.gov/patrol.html','','180')
	//oCMenu.makeMenu('sub25','top2','Administrative Division','admin.html','','180')
	
oCMenu.makeMenu('top3','','Jail Information')
	oCMenu.makeMenu('sub31','top3','Bonding Information','http://sheriff.madisoncountyal.gov/inmate_bond.html','','180')
	oCMenu.makeMenu('sub32','top3','Mail Regulations','http://sheriff.madisoncountyal.gov/inmate_mail.html','','180')	
	oCMenu.makeMenu('sub33','top3','Inmate Property','http://sheriff.madisoncountyal.gov/inmate_property.html','','180')	
	oCMenu.makeMenu('sub34','top3','Jail Store','http://sheriff.madisoncountyal.gov/inmate_store.html','','180')	
	oCMenu.makeMenu('sub35','top3','Visitation','http://sheriff.madisoncountyal.gov/inmate_visitation.html','','180')	
	
oCMenu.makeMenu('top4','','Missing Property','http://sheriff.madisoncountyal.gov/lost_or_stolen_property.php')

oCMenu.makeMenu('top5','','Most Wanted','http://sheriff.madisoncountyal.gov/mostwanted.php')


oCMenu.makeMenu('top6','','Missing Persons','http://sheriff.madisoncountyal.gov/missingpersons.html')

oCMenu.makeMenu('top7','','Pistol Permits','http://sheriff.madisoncountyal.gov/pistol.html')
	oCMenu.makeMenu('sub71','top7','Frequently Asked Questions','http://sheriff.madisoncountyal.gov/pistolfaq.html','','180')
	oCMenu.makeMenu('sub72','top7','Pistol Permit Application','http://sheriff.madisoncountyal.gov/pistolappinstructions.html','','180')
	oCMenu.makeMenu('sub73','top7','Alabama Attorney General Web Site','http://www.ago.alabama.gov/publications_gun.cfm','','180')
	oCMenu.makeMenu('sub74','top7','Permit Application Status','http://jail.madisoncountyal.gov/permits/checkpermitstatus.html','','180')


oCMenu.makeMenu('top8','','Project Lifesaver','http://sheriff.madisoncountyal.gov/projectlifesaver.html')

oCMenu.makeMenu('top9','','Report Criminal Activity','http://sheriff.madisoncountyal.gov/report_activity.php')

oCMenu.makeMenu('top10','','Sex Offenders','http://www.watchsystems.com/al/madison/')
	oCMenu.makeMenu('sub101','top10','SORNA ACT','http://sheriff.madisoncountyal.gov/AlabamaSexOffenderRegistrationAct.pdf','','180')
	oCMenu.makeMenu('sub102','top10','Offender Watch','http://www.watchsystems.com/al/madison/','','180')
	oCMenu.makeMenu('sub103','top10','Forms','http://sheriff.madisoncountyal.gov/soforms.html','','180')



oCMenu.makeMenu('top11','','Unsolved Crimes','http://sheriff.madisoncountyal.gov/unsolved_crimes.php')

oCMenu.makeMenu('top12','','Yellow Dot','http://sheriff.madisoncountyal.gov/yellowdot.html')




oCMenu.makeMenu('top13','','Career Opportunities','http://www.madisoncountyal.gov/services/jobs.shtml')

oCMenu.makeMenu('top14','','FAQ','http://sheriff.madisoncountyal.gov/faq.html')

oCMenu.makeMenu('top15','','Contact Us','http://sheriff.madisoncountyal.gov/contact.html')


oCMenu.makeMenu('top16','','<font color="yellow">Search Jail Information</font>','http://jail.madisoncountyal.gov/')
//Leave this line - it constructs the menu
oCMenu.construct()	

