/*** 
Extra info - Coolmenus reference/help - Extra links to help files **** 
CSS help: http://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50

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=17
oCMenu.fromTop=155
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="/coolmenus/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=20

//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 spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=118
oCMenu.level[0].height=20 
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=5
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-2
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+56
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow="/coolmenus/menu_arrow.gif"
oCMenu.level[1].arrowWidth=6
oCMenu.level[1].arrowHeight=9


//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=-1
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"

//EXAMPLE SUB LEVEL[3] 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[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=150
oCMenu.level[3].height=20
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].regClass="clLevel2"
oCMenu.level[3].overClass="clLevel2over"
oCMenu.level[3].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) 
*************************************/
//From City Hall
oCMenu.makeMenu('top2','','','/cityhall/','',118,20,'/buttons/city_hall.gif','/buttons/city_hall_on.gif')
    oCMenu.makeMenu('sub10','top2','Contact City Hall','')
         oCMenu.makeMenu('sub017','sub10','Contact Information')
               oCMenu.makeMenu('sub0001','sub017','General','/cityhall/contactinfo.html')
               oCMenu.makeMenu('sub0002','sub017','Mayor & City Council','/cityhall/contactmayorcouncil.html')
         oCMenu.makeMenu('sub018','sub10','E-mail Directory','/cityhall/email.html','',0,0)
    oCMenu.makeMenu('sub36','top2','Departments','')
         oCMenu.makeMenu('sub059','sub36','Administration','/cityhall/administration/','','','')
         oCMenu.makeMenu('sub050','sub36','Business Development','/cityhall/economic/','','','')
         oCMenu.makeMenu('sub051','sub36','Fire Department','/cityhall/fire/','','','')
         oCMenu.makeMenu('sub052','sub36','Human Resources','/cityhall/human/','','','')
         oCMenu.makeMenu('sub053','sub36','Parks & Recreation','http://www.nbleisure.com','_blank','','')
         oCMenu.makeMenu('sub054','sub36','Public Works & Engineering','/cityhall/publicworks/','','','')
         oCMenu.makeMenu('sub060','sub36','Finance','/cityhall/finance/','','','')
    oCMenu.makeMenu('sub42','top2','City Bylaws','/dynamic-pages/bylaws.php')
   	oCMenu.makeMenu('sub12','top2','Minutes','','','',0)
         oCMenu.makeMenu('sub057','sub12','City Council','http://www.nbleisure.com/city/cityminutes.php?M=Council','','','')
         oCMenu.makeMenu('sub058','sub12','City Committee','http://www.nbleisure.com/city/cityminutes.php?M=Committee','','','')
    oCMenu.makeMenu('sub13','top2','Meetings','')
         oCMenu.makeMenu('sub055','sub13','City Council','/dynamic-pages/councilmeetings.php','','','')
         oCMenu.makeMenu('sub056','sub13','City Committee','/dynamic-pages/committeemeetings.php','','','')
         oCMenu.makeMenu('sub061','sub13','Council Agendas','/dynamic-pages/councilagendas.php','','','')
         oCMenu.makeMenu('sub064','sub13','Committee Agendas','/dynamic-pages/committeeagendas.php','','','')
    oCMenu.makeMenu('sub15','top2','Job Opportunities','/dynamic-pages/jobopportunities.php')
    //oCMenu.makeMenu('sub11','top2','Bylaws','')
    oCMenu.makeMenu('sub16','top2','City Information','')
         //oCMenu.makeMenu('sub019','sub16','Tax Structures','/cityhall/taxstructures.html','',0,0)
         //oCMenu.makeMenu('sub049','sub16','Mill Rates','/cityhall/millrates.html','',0,0)
         oCMenu.makeMenu('sub020','sub16','Housing','/cityhall/housing.html','',0,0) 
         oCMenu.makeMenu('sub021','sub16','Building Permits','/cityhall/building.html','',0,0)
         oCMenu.makeMenu('sub022','sub16','Population','/cityhall/population.html','',0,0)
         oCMenu.makeMenu('sub023','sub16','Mother Tongue','/cityhall/mothertongue.html','',0,0)
		 oCMenu.makeMenu('sub062','sub16','Strategic Plan','/cityhall/strategic_plan.html','',0,0)
		 oCMenu.makeMenu('sub063','sub16','City Flag','/cityhall/city_flag.html','',0,0)
		 oCMenu.makeMenu('sub080','sub16','Coat of Arms','/cityhall/city_crest.html','',0,0)
         //oCMenu.makeMenu('sub024','sub16','Municipal Administration','/cityhall/municipadmin.html','',0,0)
							//myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 


	oCMenu.makeMenu('sub43','top2','Financial','','',0,20)
         oCMenu.makeMenu('sub072','sub43','Budget Summary','/cityhall/budget.html','',0,0,'','','','','left')
         oCMenu.makeMenu('sub066','sub43','Taxation','/cityhall/taxation.html','',0,0)
        <!-- oCMenu.makeMenu('sub067','sub43','Mill Rates','/cityhall/millrates.html','',0,0) -->
         oCMenu.makeMenu('sub068','sub43','Water & Sewer Utility','/cityhall/water_sewer_utility.html','',0,0)
         oCMenu.makeMenu('sub069','sub43','Financial Public Documents','/cityhall/public_documents.html','',0,0)
   oCMenu.makeMenu('sub17','top2','Public Services','','',0,20)
          oCMenu.makeMenu('sub025','sub17','Municipal Services','/cityhall/municipservices.html','',0,0)	
         oCMenu.makeMenu('sub026','sub17','Health & Social Services','/cityhall/healthsocial.html','',0,0)
         oCMenu.makeMenu('sub027','sub17','Churches','/cityhall/churches.html','',0,0)
          //oCMenu.makeMenu('sub028','sub17','Education','/cityhall/education.html','',0,0)  
         oCMenu.makeMenu('sub029','sub17','Library','/cityhall/library.html','',0,0) 
//	oCMenu.makeMenu('sub40','sub000001','Elections','/dynamic-pages/election.php','',118,20,'','','clLevel1','clLevel1over')
	oCMenu.makeMenu('sub90','top2','Official Plan','/cityhall/ocp.html','',0,20)
         oCMenu.makeMenu('sub090','sub90','Learn & Participate','/cityhall/ocplearn.html','',0,0) 
         oCMenu.makeMenu('sub091','sub90','Process','/cityhall/process.html','',0,0)
         oCMenu.makeMenu('sub092','sub90','Reports & Contacts','/cityhall/reports_and_contacts.html','',0,0)
	oCMenu.makeMenu('sub47','top2','Site Map (A - Z)','/sitemap.html','',0,20)
	oCMenu.makeMenu('sub18','top2','Upcoming Events','/dynamic-pages/upcomingevents.php?c=cityhall','',0,20)

//oCMenu.makeMenu('sub000001','top2','Drop Down Menu will show','','',116,11,'/buttons/downarrow3.gif','/buttons/downarrow3_on.gif','clLevel1over','',"bottom")		
//	oCMenu.makeMenu('sub43','sub000001','Financial','','',118,20,'','','clLevel1','clLevel1over')
//         oCMenu.makeMenu('sub072','sub43','Budget Summary','/cityhall/budget.html','',0,0,'','','','','left')
//         oCMenu.makeMenu('sub066','sub43','Taxation','/cityhall/taxation.html','',0,0)
//         oCMenu.makeMenu('sub068','sub43','Water & Sewer Utility','/cityhall/water_sewer_utility.html','',0,0)
//         oCMenu.makeMenu('sub069','sub43','Financial Public Documents','/cityhall/public_documents.html','',0,0)
//   oCMenu.makeMenu('sub17','sub000001','Public Services','','',118,20,'','','clLevel1','clLevel1over')
//          oCMenu.makeMenu('sub025','sub17','Municipal Services','/cityhall/municipservices.html','',0,0)	
//         oCMenu.makeMenu('sub026','sub17','Health & Social Services','/cityhall/healthsocial.html','',0,0)
//         oCMenu.makeMenu('sub027','sub17','Churches','/cityhall/churches.html','',0,0)
//         oCMenu.makeMenu('sub029','sub17','Library','/cityhall/library.html','',0,0) 
//	oCMenu.makeMenu('sub90','sub000001','Official Plan','/cityhall/ocp.html','',118,20,'','','clLevel1','clLevel1over')
//         oCMenu.makeMenu('sub090','sub90','Learn & Participate','/cityhall/learnocp.html','',0,0) 
//         oCMenu.makeMenu('sub091','sub90','Process','/cityhall/process.html','',0,0)
//         oCMenu.makeMenu('sub092','sub90','Reports & Contacts','/cityhall/reports_and_contacts.html','',0,0)
//	oCMenu.makeMenu('sub47','sub000001','Site Map (A - Z)','/sitemap.html','',118,20,'','','clLevel1','clLevel1over')
//	oCMenu.makeMenu('sub18','sub000001','Upcoming Events','/dynamic-pages/upcomingevents.php?c=cityhall','',118,20,'','','clLevel1','clLevel1over')


//Notices
oCMenu.makeMenu('top0','','','/notices/','',118,20,'/buttons/notices.gif','/buttons/notices_on.gif')
    oCMenu.makeMenu('sub00','top0','Public Notices','/dynamic-pages/publicnotices.php')
    oCMenu.makeMenu('sub01','top0','Important Notices','/dynamic-pages/importantnotices.php')
	oCMenu.makeMenu('sub02','top0','Tenders / RFP\'s ','/dynamic-pages/othernotices.php')

//Business Briefs

oCMenu.makeMenu('top1','','','/business/','',118,20,'/buttons/bus_briefs.gif','/buttons/bus_briefs_on.gif')
    //oCMenu.makeMenu('sub37','top1','Top 10 Reasons<br>to do Business','/business/businesstop10.html','',0,30)
    oCMenu.makeMenu('sub03','top1','Business Incentives','/business/incentives.html')
    oCMenu.makeMenu('sub49','top1','BizPaL','/business/bizpal.html')
    oCMenu.makeMenu('sub04','top1','Economic Profiles','/business/economic_profiles.html')
         //oCMenu.makeMenu('sub001','sub04','Family Income','/business/familyincome.html','',0,0)
         //oCMenu.makeMenu('sub002','sub04','Trade Area','/business/tradearea.html','',0,0)
         //oCMenu.makeMenu('sub003','sub04','Labour and Trade','/business/labourtrade.html','',0,0)
	oCMenu.makeMenu('sub05','top1','Services','')
         oCMenu.makeMenu('sub004','sub05','Transportation','/business/transportation.html','',0,0)
         oCMenu.makeMenu('sub005','sub05','Communications','/business/communications.html','',0,0)
         oCMenu.makeMenu('sub006','sub05','Organizations','/business/organizations.html','',0,0)
         oCMenu.makeMenu('sub007','sub05','Postal Facilities','/business/postalfacilities.html','',0,0)
         oCMenu.makeMenu('sub008','sub05','Financial Services','/business/financialservices.html','',0,0)
         oCMenu.makeMenu('sub009','sub05','Internet Providers','/business/internetproviders.html','',0,0)
    oCMenu.makeMenu('sub06','top1','Business<br>Developement','/business/indusdevelopment.html','','',30)
	 oCMenu.makeMenu('sub50','top1','Municipal<br>Land Inventory','/business/businesslandinventory.html','','',30)
    oCMenu.makeMenu('sub08','top1','City Partners','/business/citypartners.html')
    oCMenu.makeMenu('sub09','top1','Upcoming Events','/dynamic-pages/upcomingevents.php?c=business')


//Visitors Welcome

oCMenu.makeMenu('top3','','','/visitors/','',118,20,'/buttons/visitors.gif','/buttons/visitors_on.gif')
    oCMenu.makeMenu('sub38','top3','Top 10 Reasons<br>to Visit Us','/visitors/visittop10.html','',0,30)
    oCMenu.makeMenu('sub19','top3','Accommodations &<br>Convention Centers','/visitors/accomodations.html','','',30)
    oCMenu.makeMenu('sub20','top3','Art Galleries','')
           oCMenu.makeMenu('sub030','sub20','Allen Sapp Gallery','http://www.allensapp.com/','_blank',0,0)
           oCMenu.makeMenu('sub031','sub20','The Chapel Gallery','http://www.nbleisure.com/galleries/chapelgallery.html','_blank',0,0) 
	oCMenu.makeMenu('sub21','top3','Attractions','/visitors/attractions.html')
    oCMenu.makeMenu('sub34','top3','The Arts','/visitors/thearts.html')
    oCMenu.makeMenu('sub22','top3','The Outdoors','')
           oCMenu.makeMenu('sub032','sub22','Parks','/visitors/parks.html','',0,0)
           oCMenu.makeMenu('sub033','sub22','Golf Courses','/dynamic-pages/golfcourses.php?c=visitors','',0,0)
    oCMenu.makeMenu('sub23','top3','Museums and<br>Historic Sites','/visitors/museums.html','','',30)

oCMenu.makeMenu('sub14','top3','Archives','/visitors/archives.html','',0,20)
    oCMenu.makeMenu('sub24','top3','Maps','','',0,20,'','','clLevel1','clLevel1over')
           oCMenu.makeMenu('sub034','sub24','City Map','/dynamic-pages/citymap.php?c=visitors','',0,0)
           oCMenu.makeMenu('sub035','sub24','Driving Directions','/visitors/drivingdirections.html','',0,0)
           oCMenu.makeMenu('sub048','sub24','City Location','/dynamic-pages/location.php?c=visitors','',0,0)
    oCMenu.makeMenu('sub35','top3','Parks & Recreation<br>Department','http://www.nbleisure.com/','_blank',0,30)
    oCMenu.makeMenu('sub41','top3','Battlefords Tourism','http://www.tourism.battlefords.com/','_blank',0,20)
    oCMenu.makeMenu('sub25','top3','Upcoming Events','/dynamic-pages/upcomingevents.php?c=visitors','',0,20)
//	oCMenu.makeMenu('sub000002','top3','Drop Down Menu will show','','',116,11,'/buttons/downarrow3.gif','/buttons/downarrow3_on.gif','clLevel1over','',"bottom")		
//    oCMenu.makeMenu('sub14','sub000002','Archives','/visitors/archives.html','',118,20,'','','clLevel1','clLevel1over')
//    oCMenu.makeMenu('sub24','sub000002','Maps','','',118,20,'','','clLevel1','clLevel1over')
//           oCMenu.makeMenu('sub034','sub24','City Map','/dynamic-pages/citymap.php?c=visitors','',0,0)
//           oCMenu.makeMenu('sub035','sub24','Driving Directions','/visitors/drivingdirections.html','',0,0)
//           oCMenu.makeMenu('sub048','sub24','City Location','/dynamic-pages/location.php?c=visitors','',0,0)
//    oCMenu.makeMenu('sub35','sub000002','Parks & Recreation<br>Department','http://www.nbleisure.com/','_blank',118,30,'','','clLevel1','clLevel1over')
//    oCMenu.makeMenu('sub41','sub000002','Battlefords Tourism','http://www.tourism.battlefords.com/','_blank',118,20,'','','clLevel1','clLevel1over')
//    oCMenu.makeMenu('sub25','sub000002','Upcoming Events','/dynamic-pages/upcomingevents.php?c=visitors','',118,20,'','','clLevel1','clLevel1over')

//Community Life

oCMenu.makeMenu('top4','','','/community/','',118,20,'/buttons/community.gif','/buttons/community_on.gif')
    oCMenu.makeMenu('sub39','top4','Top 10 Reasons<br>to Live Here','/community/livetop10.html','',0,30)
    //oCMenu.makeMenu('sub26','top4','Environment<br>& Weather','http://www.nbleisure.com/city/cityfacts.php','',0,30)
    //oCMenu.makeMenu('sub27','top4','Citizen Information','/community/information.html')
 oCMenu.makeMenu('sub44','top4','Housing','/community/housing.html','',0,0)
      //oCMenu.makeMenu('sub071','sub44','Incentives','/community/housing.html','',0,0)
oCMenu.makeMenu('sub48','top4','Education','/community/education.html')
	oCMenu.makeMenu('sub28','top4','Recreation')
           oCMenu.makeMenu('sub036','sub28','Facilities','/community/facilities.html','',0,0)
		         oCMenu.makeMenu('sub070','sub28','<i>New!</i> &nbsp;Battlefords<br> Multipurpose Facility Study','/documents/multipurpose.pdf','_blank',0,30)
           oCMenu.makeMenu('sub038','sub28','Clubs & Organizations','/community/clubsorgs.html','',0,0)
           oCMenu.makeMenu('sub039','sub28','Golf Courses','/dynamic-pages/golfcourses.php?c=community','',0,0)
           oCMenu.makeMenu('sub040','sub28','Parks & Recreation<br>Department','http://www.nbleisure.com/','_blank',0,30)
											oCMenu.makeMenu('sub000003','sub28','Drop Down Menu will show','','',150,11,'/buttons/downarrow4.gif','/buttons/downarrow4_on.gif','clLevel1over','',"bottom")		
           oCMenu.makeMenu('sub041','sub000003','Aquatic Center','http://www.nbleisure.com/aquatic/','_blank',0,0)
           oCMenu.makeMenu('sub042','sub000003','Programs','http://www.nbleisure.com/recprograms/','_blank',0,0)
           oCMenu.makeMenu('sub043','sub000003','Battlefords River Valley','http://www.nbleisure.com/rivervalley/','_blank',0,0)
           oCMenu.makeMenu('sub044','sub000003','Art Galleries','http://www.nbleisure.com/galleries/','_blank',0,0)
           oCMenu.makeMenu('sub045','sub000003','Outdoor Facilities','http://www.nbleisure.com/outdoorfac/','_blank',0,0)
           oCMenu.makeMenu('sub046','sub000003','Indoor Facilities','http://www.nbleisure.com/indoorfac/','_blank',0,0)
           oCMenu.makeMenu('sub047','sub000003','Parks & Recreation<br>Department Events Calendar','http://www.nbleisure.com/community/','_blank',0,30)
  oCMenu.makeMenu('sub29','top4','Upcoming Events','/dynamic-pages/upcomingevents.php?c=community')

// City Highlights
oCMenu.makeMenu('top5','','','/cityhighlights/','',118,20,'/buttons/highlights.gif','/buttons/highlights_on.gif')
    //oCMenu.makeMenu('sub30','top5','Photo Gallery','/cityhighlights/photogallery.html')
    oCMenu.makeMenu('sub31','top5','Geography and<br>Climate','/cityhighlights/geography.html','','',30)
	oCMenu.makeMenu('sub32','top5','City Map','/dynamic-pages/citymap.php?c=highlights')
    oCMenu.makeMenu('sub33','top5','City Location','/dynamic-pages/location.php?c=highlights')
//last Menu Numbers Used
//be sure to change these every time new menu items are added
  //top5
  //sub50 (refer to business -> business land inventory)
  //sub080 (refer to communtiy -> City Hall -> Coat of Arms)
  //sub0002 (refer to city hall -> Contact City Hall -> Contact Information -> Mayor & City Council
  //sub90 - cityhall/official_community_plan/
 
//Leave this line - it constructs the menu
oCMenu.construct()		


