//*----------------------------------------------
//*  Update Log
//*
//*  2004-09-10 pc - Add new Police Force section.
//*
//*----------------------------------------------

//*----------------------------------------------
//*  GLOBAL LANGUAGE SUFFIX
//*----------------------------------------------
	lang = "-e.asp;";
//*----------------------------------------------
//*  QUICK LINKS MENU
//*----------------------------------------------
	with(milonic=new menuname("QuickMenu")){	
  	style=quickMenuStyle; itemwidth=180; alwaysvisible=1; orientation="vertical"; position="relative";
// 	aI("text=<center>S P E C I A L&nbsp;&nbsp;E V E N T S</center>;fontweight=bold;type=header;");
//	aI("text=National Aboriginal Hockey Championships;url=http://www.2005nahc.ca;target=_blank;" );
// 	aI("text=RESULTS;url=http://www.aboriginalsportcircle.ca/main/05_NAHC_results.html;target=_blank;" );
	
 	aI("text=<center>C I T Y&nbsp;&nbsp;H A L L</center>;fontweight=bold;type=header;");
	aI("text=Mayor's Message;url=" + "cityhall-mayorsmessage" + lang );
	aI("text=Meetings & Agendas;url=" + "cityhall-agendas" + lang );
	aI("text=Notices;url=" + "cityhall-notice" + lang );
	aI("text=Job Opportunities;url=" + "dept-hr-jobs" + lang );	
	aI("text=Tender Opportunities;url=" + "cityhall-tender" + lang );
	aI("text=Pay your water bill on-line;url=" + "dept-finance-water-payments" + lang );
    
    aI("text=<center>H E R I T A G E</center>;fontweight=bold;type=header;");
    aI("text=Historic Places;url=" + "dept-dev-heritage" + lang );
 
//	aI("text=<center>F I R E</center>;fontweight=bold;type=header;");
   
 	aI("text=<center>T O U R I S M</center>;fontweight=bold;type=header;");	
// 	aI("text=Winter Activities;url=" + "visit-winter" + lang );		
	aI("text=Festivals & Events;url=" + "visit-festivals" + lang );		
 	aI("text=Things To See & Do;url=" + "visit-thingstosee" + lang );
 	 	
	aI("text=<center>WELLNESS AND RECREATION</center>;fontweight=bold;type=header;");
	aI("text=Daily Pool Schedules;url=" + "dept-rec-poolsched" + lang );
	aI("text=2011-2012 Fall & Winter Brochure;url=" + "dept-rec" + lang );
//	aI("text=Public Skating Schedules;url=" + "dept-rec-skating-sched" + lang );
//	aI("text=Skate Park Event Schedule;url=" + "dept-rec-prog-youth" + lang );
//	aI("text=Asset Building;url=" + "dept-rec-assetbldg" + lang );
	
//	aI("text=<center>P O L I C E</center>;fontweight=bold;type=header;");
//	aI("text=Information Sessions;url=" + "dept-police-infosessions" + lang );
//	aI("text=Kids 'N' Kops;url=" + "dept-police-kidsnkops" + lang );

// 	aI("text=<center>PUBLIC WORKS</center>;fontweight=bold;type=header;");
//	aI("text=Holiday Garbage Pick Up Schedule;url=" + "dept-works-faq2" + lang );

    aI("text=<center>C O M M U N I T Y</center>;fontweight=bold;type=header;");
     aI("text=Newcomers;url=" + "comm-events" + lang );
     aI("text=Community Events;url=" + "comm-amenities" + lang );
    aI("text=Miramichi Advisory Committee on Youth;url=http://www.miramichi.org/thrive/Future17.html;target=_blank;" );
	aI("text=Retirement;url=" + "comm-retirement" + lang );
    	aI("text=Miramichi Transit;url=" + "cityhall-commissions-transit" + lang );
	//	aI("text=In Loving Memory of Corey Richard;url=" + "comm-youth-memoriam" + lang );

	aI("text=<center>P R E P A R E D N E S S</center>;fontweight=bold;type=header;");
	aI("text=Be Prepared;url=http://www2.gnb.ca/content/gnb/en/news/public_alerts/public_alert.2010.09.1567.html;target=_blank;" );
		}
	drawMenus(); //* This is required for the following statement.
	
	//* this spacer will put some vertical space between the Quick and Side menus/
	document.write ('<img src="../assets/spacer.gif" width=4 height=5 border=0>');
//*----------------------------------------------
//* Example SUB MENU
//*----------------------------------------------
with(milonic=new menuname("schools")){
	style=quickMenuStyle;
	openstyle="rtl" 
	aI("text=School Number 1;url=" + pref + "xxxxx" + lang );
	aI("text=School Number 2;url=" + pref + "xxxxx" + lang );
	aI("text=School Number 3;url=" + pref + "xxxxx" + lang );
} 

//*----------------------------------------------
//* CONTACT US - SIDE MENU
	pref="contact-";
//*----------------------------------------------
if (thefile.substring(0,"contact".length) == "contact")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Contact Us</b>;url=contact" + lang );
	aI("text=Feedback Form;url=contact-feedbackform" + lang );
	}
}	//* end if	

//*----------------------------------------------
//* VISIT US - SIDE MENU
	pref="visit-";
//* countChar(thefile, "-") = 2  checks if filename has 2 hyphens (eg. comm-intro-e.asp)
//*----------------------------------------------

if (thefile.substring(0,"visit".length) == "visit"  &  countChar(thefile, "-") >= 2)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Come Visit Us</b>;url=visit-intro" + lang );
aI("text=Things to See & Do;url=" + pref + "thingstosee" + lang );
aI("text=Festivals & Events;url=" + pref + "festivals" + lang );
aI("text=News;url=" + pref + "news" + lang );
aI("text=Where To Stay ;url=" + pref + "stay-intro" + lang );
aI("text=Where To Eat;url=" + pref + "eat" + lang );
aI("text=Night Life;url=" + pref + "nightlife" + lang );
aI("text=Historic Sites;url=" + pref + "historic" + lang + "showmenu=Historic;" );
aI("text=Golf;url=" + pref + "golf" + lang );
aI("text=World Class Salmon Angling;url=" + pref + "angling" + lang + "showmenu=Angling;" );
aI("text=How to Get Here;url=" + pref + "howtogethere" + lang );
aI("text=Request Tourist Information;url=" + pref + "requestform" + lang );
aI("text=Visitor Feedback;url=" + pref + "feedbackform" + lang );
aI("text=Meeting Planners;url=" + pref + "meeting" + lang );
aI("text=Tour Operators;url=" + pref + "tours" + lang );
aI("text=Genealogy;url=" + pref + "genealogy" + lang );
aI("text=Maps;url=" + pref + "map" + lang );
aI("text=Winter Activities;url=" + pref + "winter" + lang + "showmenu=Winter;");
aI("text=Other Products & Services;url=" + pref + "other" + lang );
aI("text=Climate & Weather Conditions;url=" + pref + "weather" + lang );
aI("text=Links;url=" + pref + "links" + lang );
	}
}	//* end if	


//*----------------------------------------------
//* VISIT US - FESTIVALS - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"visit-festivals".length) == "visit-festivals")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Festivals & Events</b>;url=" + pref + "festivals" + lang );
//	aI("text=Canada Days;url=" + pref + "festivals-canadadays" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* VISIT US - HISTORICAL SITES - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"visit-historic".length) == "visit-historic")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Historic Sites</b>;url=" + pref + "historic" + lang );
 	aI("text=Middle Island: Before and After the Tragedy;url=" + pref + "historic-middleisland" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* VISIT US - ANGLING - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"visit-angling".length) == "visit-angling")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>World Class Salmon Angling</b>;url=" + pref + "angling" + lang );
 	aI("text=List of Outfitters;url=" + pref + "angling-outfitters" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* VISIT US - WINTER ACTIVITIES - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"visit-winter".length) == "visit-winter")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Winter Activities</b>;url=" + pref + "winter" + lang );
	aI("text=Snowmobile Services;url=" + pref + "winter-snowmobile" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* COMMUNITY - SIDE MENU
	pref="comm-";
//* countChar(thefile, "-") = 2  checks if filename has 2 hyphens (eg. comm-intro-e.asp)
//*----------------------------------------------

if (thefile.substring(0,"comm".length) == "comm"  &  countChar(thefile, "-") == 2)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";

	aI("text=<b>Our Community</b>;url=" + pref + "intro" + lang );
	aI("text=Carrefour Beausoleil;url=" + pref + "carrefourbeausoleil" + lang );
	aI("text=Churches;url=" + pref + "churches" + lang );
	aI("text=City Map;url=" + pref + "citymap" + lang );
	aI("text=Community Events;url=" + pref + "events" + lang );
	aI("text=Community Profile;url=" + pref + "events" + lang );
	aI("text=Downtowns;url=" + pref + "downtowns" + lang );
	aI("text=Entertainment;url=" + pref + "entertainment" + lang );
	aI("text=Leisure Activities;url=" + pref + "leisure" + lang );
	aI("text=Libraries;url=" + pref + "libraries" + lang );
	aI("text=Medical Services;url=" + pref + "medical" + lang );
	aI("text=Miramichi Advisory Committee on Youth;url=http://www.miramichi.org/thrive/Future17.html;targe=_blank;" );
	aI("text=Miramichi Planning District Commission;url=http://www.mpdc-cdam.ca;target=_blank;" );
	aI("text=Miramichi Sports Wall of Fame;url=" + pref + "sportswalloffame" + lang );
	aI("text=Other Services;url=" + pref + "other" + lang );
	aI("text=Real Estate Brokers;url=" + pref + "realestate" + lang );
	aI("text=Recreation Facilities;url=" + pref + "rec" + lang );
	aI("text=Resources;url=" + pref + "resources" + lang );
	aI("text=Retirementl;url=" + pref + "retirement" + lang );
	aI("text=Schools;url=" + pref + "schools" + lang );
	aI("text=Seniors Activities;url=" + pref + "seniors" + lang );
	aI("text=Service Clubs;url=" + pref + "serviceclubs" + lang );						 
	aI("text=Transport;url=" + pref + "transport" + lang );
	aI("text=Volunteer;ulr=" + pref + "volunteer" + lang );
	//	aI("text=Welcome Wagon;url=" + pref + "welcomewagon" + lang );
	aI("text=Youth;url=" + pref + "youth" + lang );
	aI("text=Links;url=" + pref + "links" + lang );
	}
}	//* end if	

//*----------------------------------------------
//* OPEN FOR BUSINESS - SIDE MENU
//* countChar(thefile, "-") > 2  checks if filename has more than 2 hyphens.
	  pref = "bus-";   // Filename prefix
//*----------------------------------------------

if (thefile.substring(0,"bus".length) == "bus" &  countChar(thefile, "-") == 2)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
	aI("text=Overview;url=" + pref + "overview-intro" + lang );
	aI("text=Infrastructure;url=" + pref + "infra-intro" + lang );
	aI("text=Your Business;url=" + pref + "yourbus-intro" + lang );
	aI("text=Agencies;url=" + pref + "agencies-intro" + lang );
	aI("text=Information;url=" + pref + "info-intro" + lang );
 	aI("text=&nbsp;&nbsp;&nbsp;Downloads;url=" + pref + "info-downloads" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Useful Links;url=" + pref + "info-links" + lang );	
	}
}	//* end if

//*----------------------------------------------
//* OPEN FOR BUSINESS - OVERVIEW - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"bus-overview".length) == "bus-overview")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Overview</b>;url=" + pref + "overview-intro" + lang );
	aI("text=Statistics;url=" + pref + "overview-statistics" + lang );
	aI("text=Community Profile;url=" + pref + "overview-profile" + lang );	
 	aI("text=Key Sectors;url=" + pref +	"keysectors-intro" + lang );
 	aI("text=Employers;url=" + pref + "overview-employers" + lang );
 	aI("text=Labour Force;url=" + pref + "overview-labour" + lang );
 	aI("text=Downtowns;url=" + pref + "overview-downtowns" + lang );
 	aI("text=Schools;url=" + pref + "overview-schools" + lang );
 	aI("text=Hospital;url=" + pref + "overview-hospital" + lang );
 	aI("text=SWOT Analysis;url=" + pref + "overview-swot" + lang );
 	aI("text=Investor Prospectus;url=" + pref + "overview-prospectus" + lang );	
	}
}	//* end if

//*----------------------------------------------
//* OPEN FOR BUSINESS - INFRASTRUCTURE - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"bus-infra".length) == "bus-infra")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Infrastructure</b>;url=" + pref + "infra-intro" + lang );
	aI("text=Commercial Real Estate;url=" + pref + "infra-realestate" + lang );
	aI("text=Industrial Parks;url=" + pref + "infra-industrialparks" + lang );
	aI("text=Air, Land and Sea Access;url=" + pref + "infra-transport" + lang );
	aI("text=Telecommunications;url=" + pref + "infra-telecom" + lang );;	
	}
}	//* end if

//*----------------------------------------------
//* OPEN FOR BUSINESS - YOUR BUSINESS - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"bus-yourbus".length) == "bus-yourbus"  &  countChar(thefile, "-") <= 3)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Your Business</b>;url=" + pref + "yourbus-intro" + lang );
  	aI("text=Tax Rates;url=" + pref + "yourbus-taxerates" + lang ); 
	aI("text=Permit Information;url=" + pref + "yourbus-permits" + lang );
	aI("text=Construction and Investment;url=" + pref + "yourbus-construct" + lang );
	aI("text=City By-Laws;url=" + pref + "yourbus-bylaws" + lang );
	aI("text=Demographics;url=" + pref + "yourbus-demographics" + lang );
	aI("text=Fringe Benefit Costs;url=" + pref + "yourbus-costs" + lang );
	aI("text=Real Estate Brokers;url=" + pref + "yourbus-rebrokers" + lang );

	}
}	//* end if
	
//*----------------------------------------------
//* OPEN FOR BUSINESS - YOUR BUSINESS/AGENCIES - SIDE MENU
//*----------------------------------------------
//if (thefile.substring(0,"bus-yourbus-agencies".length) == "bus-yourbus-agencies")	{
if (thefile.substring(0,"bus-agencies".length) == "bus-agencies" &  countChar(thefile, "-") > 2)	{	
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Your Business</b>;url=" + pref + "yourbus-intro" + lang );	
	aI("text=<b>Agencies</b>;url=" + pref + "agencies-intro" + lang );
	aI("text=Business Support Services;url=" + pref + "agencies-bus_support" + lang );	
	aI("text=&nbsp;&nbsp;Atlantic Canada<br>&nbsp;&nbsp;Opportunities Agency;url=" + pref + "agencies-acoa" + lang );
	aI("text=&nbsp;&nbsp;Training and Employment<br>&nbsp;&nbsp;Development;url=" + pref + "agencies-ted" + lang );
	aI("text=&nbsp;&nbsp;Human Resources<br>&nbsp;&nbsp;Development Canada;url=" + pref +"agencies-hrdc" + lang );
	aI("text=&nbsp;&nbsp;Enterprise Miramichi;url=" + pref + "agencies-enterprise_mir" + lang );
	aI("text=&nbsp;&nbsp;Community Business<br>&nbsp;&nbsp;Development Corporation;url=" + pref + "agencies-cbdc" + lang );
	aI("text=Business New Brunswick;url=" + pref + "agencies-business_nb" + lang );
	}
}	//* end if

//*----------------------------------------------
//* OPEN FOR BUSINESS - KEY SECTORS - SIDE MENU
//*----------------------------------------------
//if (thefile.substring(0,"bus-yourbus-agencies".length) == "bus-yourbus-agencies")	{
if (thefile.substring(0,"bus-keysectors".length) == "bus-keysectors" &  countChar(thefile, "-") > 2)	{	
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Overview</b>;url=" + pref + "overview-intro" + lang );	
  	aI("text=<b>Key Sectors</b>;url=" + pref +	"keysectors-intro" + lang );
	aI("text=Forestry;url=" + pref + "keysectors-forestry" + lang );
	aI("text=Value-added Manufacturing;url=" + pref +"keysectors-manuf" + lang );
	aI("text=Knowledge-based Industries (KBI)/<br>Customer Service Centres;url=" + pref + "keysectors-kbi" + lang );
	aI("text=Tourism;url=" + pref +	"keysectors-tourism" + lang );
	}
}	//* end if

//*----------------------------------------------
//* OPEN FOR BUSINESS - INFORMATION - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"bus-info".length) == "bus-info")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Open for Business</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Information</b>;url=" + pref + "info-intro" + lang );
 	aI("text=Downloads;url=" + pref + "info-downloads" + lang );
	aI("text=Useful Links;url=" + pref + "info-links" + lang );	
	}
}	//* end if

//*----------------------------------------------
//* CITYHALL - SIDE MENU
	pref="cityhall-";
//* countChar(thefile, "-") = 2  checks if filename has 2 hyphens (eg. cityhall-intro-e.asp)
//*----------------------------------------------

if (thefile.substring(0,"cityhall".length) == "cityhall"  &  countChar(thefile, "-") == 2)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	
	aI("text=<b>Inside City Hall</b>;url=" + pref + "intro" + lang );
	aI("text=Mayor's Message;url=" + pref + "mayorsmessage" + lang );
	aI("text=Mayor & Council;url=" + pref +	"mayorcouncil" + lang );
	aI("text=Oaths of Office;url=" + pref + "oathsofoffice" + lang );
	aI("text=Grants for Nonprofit Groups;url=" + pref + "grants" + lang );
	aI("text=Olympic Torch Relay;url=" + pref + "torchrelay2010" + lang );
	aI("text=Strategic Plan;url=" + pref + "strategicplan" + lang );
	aI("text=Municipal Profile;url=" + pref + "municipal" + lang );
	aI("text=Organizational Structure<br>of City Of Miramichi;url=" + pref + "chart-structure" + lang );
	aI("text=Committee & Council<br>Meetings;url=" + pref + "agendas" + lang );
	aI("text=City By-Laws;url=" + pref + "bylaws" + lang );
	aI("text=Council Minutes;url=" + pref + "minutes" + lang );
	aI("text=Notices;url=" + pref + "notices" + lang );
		aI("text=Policies;url=" + pref + "policies" + lang );
    aI("text=Nominations NB Day Merit Awards;url=" + pref + "nominationsnbdaymeritawards" + lang );
	aI("text=Community Service Award for Volunteers;url=" + pref + "communityserviceawardforvolunteers" + lang );
	aI("text=Community Service Award for Youth Volunteers;url=" + pref + "communityserviceawardforyouthvolunteers" + lang );
	aI("text=Municipal Studies;url=" + pref + "studies" + lang );
//	aI("text=New Year's Levee;url=" + pref + "levee" + lang );
	aI("text=Tender Opportunities;url=" + pref + "tender" + lang );
	aI("text=Days of Rest Act NB;url=" + pref + "daysofrestactnb" + lang );
	}
}	//* end if	

//*----------------------------------------------
//* CITYHALL - PRESENTATIONS - SIDE MENU
//* countChar(thefile, "-") > 2  checks if filename has more than 2 hyphens.
//*----------------------------------------------
if (thefile.substring(0,"cityhall-pres".length) == "cityhall-pres" &  countChar(thefile, "-") > 2)	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";

	aI("text=<b>Inside City Hall</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Presentations</b>;url=" + pref + "pres-intro" + lang );
	aI("text=NB Day Merit Awards 2008;url=" + pref +"pres-08nbmerit" + lang );
	aI("text=Peter McLean - Induction to Softball Canada Hall of Fame;url=" + pref + "pres-petermclean" + lang );
	aI("text=Twinning (Special Event);url=" + pref + "pres-twinning" + lang );
	aI("text=Announcement - Federal Funding<br>for Tourism Initiatives;url=" + pref + "pres-funding" + lang );
	aI("text=Canadian Peacekeeping Veterans Association;url=" + pref + "pres-veterans" + lang );
	aI("text=Queen Elizabeth II's Golden JubileeCommemoration;url=" + pref + "pres-jubilee" + lang );
	aI("text=Paul Dawson - Induction to Softball Canada Hall of Fame;url=" + pref + "pres-softball" + lang );
	aI("text=Freeman of the City<br>Tribute to Matilda Murdoch;url=" + pref + "pres-matildamurdoch" + lang );	
	aI("text=UN Peace Keepers Day Ceremony;url=" + pref + "pres-peacekeepers" + lang );
	aI("text=Carpiquet Medal Presentation;url=" + pref + "pres-carpiquetmedals" + lang );		
	}	
}	//* end if	

//*----------------------------------------------
//* DEPARTMENTS - SIDE MENU
	  pref = "dept-";   // Filename prefix
//*----------------------------------------------
if (thefile.substring(0,"dept".length) == "dept" &  countChar(thefile, "-") == 2  & thefile.substring(0,"dept-police".length) != "dept-police" )	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=Organizational Structure Charts;url=" + pref + "chart-structure" + lang );
	aI("text=Clerk's Department;url=" + pref + "clerks" + lang );
	aI("text=Community Dev. & Tourism;url=" + pref + "dev" + lang );
	aI("text=Community Wellness and Recreation;url=" + pref + "rec" + lang );
	aI("text=Economic Development;url=" + pref + "econdev" + lang );
	aI("text=Engineering;url=" + pref + "eng" + lang );	
	aI("text=Finance Department;url=" + pref + "finance" + lang );
	aI("text=Fire Department;url=" + pref + "fire" + lang );
	aI("text=Human Resources Department;url=" + pref + "hr" + lang );
	aI("text=Office of the City Manager;url=" + pref + "manager" + lang );
	aI("text=Public Works Department;url=" + pref + "works" + lang );
	aI("text=Miramichi Police Force;url=" + pref + "police" + lang );
	aI("text=Miramichi Planning District Commission;url=http://www.mpdc-cdam.ca;taret=_blank;" );
	}
	}	//* end if
	
//*----------------------------------------------
//* PUBLIC WORKS FAQ - SIDE MENU
	pref="dept-";
//*----------------------------------------------
//
if (thefile.substring(0,"dept-works".length) == "dept-works" || thefile.substring(0,"dept-chart-works".length) == "dept-chart-works")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Public Works Department</b>;url=" + pref + "works" + lang );
// 	aI("text=Capital Work Projects;url=" + pref + "works-projects" + lang );
  	aI("text=Organization Chart;url=" + pref + "chart-works" + lang );
//	aI("text=A W A R D S&nbsp;&nbsp;O F&nbsp;&nbsp;M E R I T;fontweight=bold;type=header;");
//	aI("text=Northside Aerated Lagoon;url=" + pref + "works-award-northside" + lang );
//	aI("text=Wastewater Treatment Plant;url=" + pref + "works-award-wastewater" + lang );
	aI("text=F A Q s;fontweight=bold;type=header;");
	aI("text=Where does our water come from and how does it get to our homes?;url=" + pref + "works-faq1" + lang );
	aI("text=How does the City dispose of garbage?;url=" + pref + "works-faq2" + lang );
	aI("text=How does the city regulate traffic?;url=" + pref + "works-faq3" + lang );
	}
}	//* end if	 

//* ENGINEERING - SIDE MENU
	pref="dept-";
//*----------------------------------------------
//
if (thefile.substring(0,"dept-works".length) == "eng" || thefile.substring(0,"dept-chart-eng".length) == "dept-chart-eng")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Engineering Department</b>;url=" + pref + "eng" + lang );
//	aI("text=Capital Work Projects;url=" + pref + "works-projects" + lang );
  	aI("text=Organization Chart;url=" + pref + "chart-eng" + lang );
	aI("text=A W A R D S&nbsp;&nbsp;O F&nbsp;&nbsp;M E R I T;fontweight=bold;type=header;");
	aI("text=Northside Aerated Lagoon;url=" + pref + "works-award-northside" + lang );
	aI("text=Wastewater Treatment Plant;url=" + pref + "works-award-wastewater" + lang );
//	aI("text=F A Q s;fontweight=bold;type=header;");
//	aI("text=Where does our water come from and how does it get to our homes?;url=" + pref + "works-faq1" + lang );
//	aI("text=How does the City dispose of garbage?;url=" + pref + "works-faq2" + lang );
//	aI("text=How does the city regulate traffic?;url=" + pref + "works-faq3" + lang );
	}
}	//* end
//*----------------------------------------------
//* DEPT - CLERKS - SIDE MENU  *** NOT ACTIVE ***
//*----------------------------------------------
if (thefile.substring(0,"xxxdept-clerks".length) == "dept-clerks" || thefile.substring(0,"xxxdept-chart-clerks".length) == "dept-chart-clerks")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Clerk's Department</b>;url=" + pref + "dev" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-clerks" + lang );
	}
}	//* end if	

//*----------------------------------------------
//* DEPT - DEV & TOURISM - SIDE MENU  
//*----------------------------------------------
if (thefile.substring(0,"dept-dev".length) == "dept-dev" || thefile.substring(0,"dept-chart-dev".length) == "dept-chart-dev")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Development & Tourism Dept.</b>;url=" + pref + "dev" + lang );
	aI("text=Heritage;url=" + "dept-dev-heritage" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-dev" + lang );
	}
}	//* end if	 
 
//*----------------------------------------------
//* DEPT - FINANCE - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-fin".length) == "dept-fin" || thefile.substring(0,"dept-chart-finance".length) == "dept-chart-finance")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Finance Department</b>;url=" + pref + "finance" + lang );
	aI("text=Budget/Tax Rate;url=" + pref + "finance-budget" + lang );
	aI("text=Water and/or Sewerage Payment Information Depots;url=" + pref + "finance-water-payments" + lang );
	aI("text=Water and Sewerage Rate Schedule and Hook-Up Fees;url=" + pref + "finance-water-hookup" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-finance" + lang );
	}
}	//* end if	

//*----------------------------------------------
//* DEPT - FIRE Dept - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-fire".length) == "dept-fire" || thefile.substring(0,"dept-chart-fire".length) == "dept-chart-fire")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Fire Department</b>;url=" + pref + "fire" + lang );
//	aI("text=Values Statement;url=" + pref + "fire-values" + lang );
	aI("text=Response Areas;url=" + pref + "fire-responseareas" + lang );
//	aI("text=Special Events/Announcements;url=" + pref + "fire-special" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-fire" + lang ); 
	aI("text=Fireman's Prayer;url=" + pref + "fire-prayer" + lang );
	aI("text=Asbestos in Older Homes;url=" + pref + "fire-asbestos" + lang );

	}	
}	//* end if

//*----------------------------------------------
//* DEPT - HR Dept - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-hr".length) == "dept-hr" || thefile.substring(0,"dept-chart-hr".length) == "dept-chart-hr")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Human Resources Department</b>;url=" + pref + "hr" + lang );
	aI("text=Employment and Volunteer Opportunities;url=" + pref + "hr-jobs" + lang );
	aI("text=Apply for Employment;url=" + pref + "hr-jobapp" + lang );
	aI("text=Other Employment Opportunities in the Community;url=" + pref + "hr-jobs-other" + lang );
//	aI("text=Temporary Clerical Staff;url=" + pref + "hr-temp-clerical" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-hr" + lang ); 
	}	
}	//* end if

//*----------------------------------------------
//* DEPT - POLICE - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-police".length) == "dept-police" || thefile.substring(0,"dept-chart-police".length) == "dept-chart-police")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Miramichi Police Force</b>;url=" + pref + "police" + lang );
	aI("text=Mission Statement;url=" + pref + "police-missionstatement" + lang );
	aI("text=Administrative Division;url=" + pref + "police-adminservices" + lang + "showmenu=policeadmin_side;");	
	aI("text=Patrol Division;url=" + pref + "police-patroldivision" + lang + "showmenu=policepatrol_side;");	
	aI("text=Community &amp; Support Services Division;url=" + pref + "police-comsupprtservices" + lang + "showmenu=policecomsupprt_side;");
	aI("text=Criminal Investigation Division;url=" + pref + "police-criminvdiv" + lang + "showmenu=policecrim_side;");	
	aI("text=S.T.E.P.;url=" + pref + "police-step" + lang );
	aI("text=Police Related Links;url=" + pref + "police-links" + lang );
	aI("text=Organizational Structure;url=" + pref + "chart-police" + lang );
	aI("text=Winter Parking;url=" + pref + "police-winterparking" + lang );
	
	with(milonic=new menuname("policeadmin_side")){
	style=sideMenuStyle; openstyle="rtl";
	aI("text=Chief of Police;url=" + pref + "police-chiefbio" + lang );
//	aI("text=Deputy Chief of Police;url=" + pref + "police-deputychief" + lang );
	aI("text=Force Chaplain;url=" + pref + "police-chaplain" + lang );
	}
	
	with(milonic=new menuname("policepatrol_side")){
	style=sideMenuStyle; openstyle="rtl";
	aI("text=Canine Section;url=" + pref + "police-canine" + lang );
	aI("text=Vehicle Fleet;url=" + pref + "police-vehiclefleet" + lang );
	aI("text=Auxiliary Program;url=" + pref + "police-auxiliary" + lang );
	}
	
	with(milonic=new menuname("policecomsupprt_side")){
	style=sideMenuStyle; openstyle="rtl";
	aI("text=AMBER Alert;url=" + pref + "police-amberalert" + lang );
	aI("text=Defibrillation;url=" + pref + "police-defibrillation" + lang );
	aI("text=Safely Home;url=" + pref + "police-safelyhome" + lang );
	aI("text=Zero Tolerance;url=" + pref + "police-zerotolerance" + lang );
	aI("text=Remembrance;url=" + pref + "police-remembrance" + lang );
	aI("text=PRISM;url=" + pref + "police-prism" + lang );
	aI("text=Kids 'N' Kops;url=" + pref + "police-kidsnkops" + lang );
	}
	
	with(milonic=new menuname("policecrim_side")){
	style=sideMenuStyle; openstyle="rtl";
	aI("text=Unsolved Crimes;url=" + pref + "police-unsolvedcrimes" + lang );
	aI("text=Crime Stoppers;url=" + pref + "police-crimestoppers" + lang );
	aI("text=Outstanding Warrants;url=" + pref + "police-outstandingwarrants" + lang );
	}	
	
	} //* End with Milonic
	
}	//* end if

//*----------------------------------------------
//* DEPT RECREATION - SIDE MENU
//*----------------------------------------------
//* Check for 2 hyphens
 
//alert(countChar(thefile, "-"));
if ((thefile.substring(0,"dept-rec".length) == "dept-rec" & countChar(thefile, "-") == 2) ||
	thefile.substring(0,"dept-rec-mission".length) == "dept-rec-mission" ||
	 thefile.substring(0,"dept-rec-faq".length) == "dept-rec-faq" ||
	 thefile.substring(0,"dept-rec-skating-sched".length) == "dept-rec-skating-sched" ||
	 thefile.substring(0,"dept-rec-timberwolves".length) == "dept-rec-timberwolves" ||
	 thefile.substring(0,"dept-rec-upevents".length) == "dept-rec-upevents" ||
	 thefile.substring(0,"dept-chart-rec".length) == "dept-chart-rec")	{
		 	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
  	aI("text=Mission Statement;url=" + pref + "rec-mission" + lang );
	aI("text=Facilities;url=" + pref + "rec-facilities" + lang );
	aI("text=Facility Schedules;url=" + pref + "rec-fac-schedules" + lang );
	aI("text=Daily Pool Schedules;url=" + pref + "rec-poolsched" + lang );
	aI("text=Entertainment;url=" + pref + "rec-entertain" + lang );
	aI("text=Programs;url=" + pref + "rec-programs" + lang );
	aI("text=in motion;url=" + pref + "rec-inmotion" + lang );
	aI("text=Asset Building;url=" + pref + "rec-assetbldg" + lang );
	aI("text=Trails and Parks;url=" + pref + "rec-trailsparks" + lang );
	aI("text=Recreation FAQ;url=" + pref + "rec-faq" + lang );
	aI("text=Public Skating Schedules;url=" + pref + "rec-skating-sched" + lang );
	aI("text=Special Events;url=" + pref + "rec-special" + lang );
	aI("text=Timber Wolves Schedule;url=" + pref + "rec-timberwolves" + lang );
	aI("text=Upcoming Events;url=" + pref + "rec-upevents" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* DEPT REC - FACILITIES - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-rec-fac".length) == "dept-rec-fac")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
	aI("text=<b>Facililities</b>;url=" + pref + "rec-facilities" + lang );  	
	aI("text=Arenas;url=" + pref + "rec-fac-arenas" + lang );
	aI("text=Ballfields;url=" + pref + "rec-fac-ballfields" + lang );
	aI("text=Basketball Courts;url=" + pref + "rec-fac-basketball" + lang );
	aI("text=Community Centres;url=" + pref + "rec-fac-centres" + lang );
	aI("text=Playgrounds;url=" + pref + "rec-fac-playgrounds" + lang );
	aI("text=School Recreation Facilities;url=" + pref + "rec-fac-school" + lang );
	aI("text=Soccer Fields;url=" + pref + "rec-fac-soccer" + lang );
	aI("text=Swimming Pools;url=" + pref + "rec-fac-pools" + lang );
	aI("text=Tennis Courts;url=" + pref + "rec-fac-tennis" + lang );
	aI("text=Track Facilities;url=" + pref + "rec-fac-track" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* REC - ENTERTAINMENT - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-rec-ent".length) == "dept-rec-ent")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
  	aI("text=<b>Entertainment</b>;url=" + pref + "rec-entertain" + lang );
	aI("text=Holiday Entertainment;url=" + pref + "rec-ent-holiday" + lang );
	aI("text=Waterford Green;url=" + pref + "rec-ent-waterford" + lang );
	aI("text=Ritchie Wharf;url=" + pref + "rec-ent-ritchie" + lang );
	}
}	//* end if

//*----------------------------------------------
//* DEPT REC - POOL SCHED - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-rec-poolsched".length) == "dept-rec-poolsched")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
  	aI("text=<b>Pool Schedules</b>;url=" + pref + "rec-poolsched" + lang );
	aI("text=MVHS Indoor Pool;url=" + pref + "rec-poolsched-mvhs" + lang );
	aI("text=Golden Hawk Indoor Pool;url=" + pref + "rec-poolsched-golden" + lang );
	aI("text=Kinsmen Outdoor Pool;url=" + pref + "rec-poolsched-kinsmen" + lang );
	aI("text=Chatham Outdoor Pool;url=" + pref + "rec-poolsched-chatham" + lang );
	aI("text=Public Swim Times;url=" + pref + "rec-poolsched-public" + lang );
	aI("text=--- <b><i>More info</i></b> ---;type=header;headercolor=#000000;headerbgcolor=#FFFFFF;");
	aI("text=New Swim for Life Structure;url=" + pref + "rec-poolsched-prereq" + lang );
	}
}	//* end if

//*----------------------------------------------
//* DEPT REC - TRAILS & PARKS - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-rec-trailsparks".length) == "dept-rec-trailsparks")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
  	aI("text=<b>Trails and Parks</b>;url=" + pref + "rec-trailsparks" + lang );
	aI("text=Trails;url=" + pref + "rec-trailsparks-trails" + lang );
	aI("text=Parks;url=" + pref + "rec-trailsparks-parks" + lang );
	aI("text=Millbank Trail Map;url=" + pref + "rec-trailsparks-millbank" + lang );
	}	
}	//* end if

//*----------------------------------------------
//* DEPT- REC - PROGRAMS - SIDE MENU
//*----------------------------------------------
if (thefile.substring(0,"dept-rec-prog".length) == "dept-rec-prog")	{
	pref = "dept-"; 
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Community Wellness and Recreation Department</b>;url=" + pref + "rec" + lang );
	aI("text=<b>Programs</b>;url=" + pref + "rec-programs" + lang );  	
	aI("text=Aquatic Programs;url=" + pref + "rec-prog-aquatic" + lang );
	aI("text=Children's Programs;url=" + pref + "rec-prog-children" + lang );
	aI("text=Fitness Programs;url=" + pref + "rec-prog-fitness" + lang );
	aI("text=Preschool Programs;url=" + pref + "rec-prog-preschool" + lang );
	aI("text=Seniors Outings;url=" + pref + "rec-prog-seniors" + lang );
	aI("text=Special Events;url=" + pref + "rec-prog-specialevents" + lang );
	aI("text=Special Needs Programs;url=" + pref + "rec-prog-specialneeds" + lang );
	aI("text=Youth Programs;url=" + pref + "rec-prog-youth" + lang );
	}	
}	//* end if

//*-----------------------------------------------------------------------------
//* DEPT ORG CHARTS - SIDE MENU --- KEEP THIS SECTION AT THE END OF THIS FILE.
//*-----------------------------------------------------------------------------
if (thefile.substring(0,"dept-chart".length) == "dept-chart")	{
	with(milonic=new menuname("QuickMenu")){	
  	style=sideMenuStyle;itemwidth=180;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Departments</b>;url=" + pref + "intro" + lang );
	aI("text=<b>Organization Charts</b>;url=" + pref + "chart-structure" + lang );
	aI("text=Clerk;url=" + pref + "chart-clerks" + lang );
	aI("text=Community Development & Tourism;url=" + pref + "chart-dev" + lang );
	aI("text=Community Wellness and Recreation;url=" + pref + "chart-rec" + lang );
	aI("text=Engineering;url=" + pref + "chart-eng" + lang );
	aI("text=Finance;url=" + pref + "chart-finance" + lang );
	aI("text=Fire;url=" + pref + "chart-fire" + lang );
	aI("text=Human Resources;url=" + pref + "chart-hr" + lang );
	aI("text=Police;url=" + pref + "chart-police" + lang );
	aI("text=Public Works;url=" + pref + "chart-works" + lang );
	}
}	//* end if	
  
drawMenus();


