/*
==========================================================================
DEFINE MENU ARRAYS BELOW:

- english pages use the ".html" extension
- french pages use the ".fr.html" extension
- make sure that the english and equivalent french page are in the same folder
- define the menus as if you were creating a site map page.
- make sure to escape double quotes with a backslash (\")
e.g.  


x++;  // always increment x for each menu item
arrMenu[x] = new Array();
arrMenu[x]["level"] = 0;  // 0 - top level, 1 - second level, 2 - third level
arrMenu[x]["text_en"] = 'The English Label';
arrMenu[x]["text_fr"] = 'The French Label';
arrMenu[x]["url_en"] = "introduction/index.html";
arrMenu[x]["url_fr"] = "introduction/index.fr.html";

==========================================================================
*/


// =======================================================================
// array of possible paths that the web site root is in
// e.g. the live server is might be under /department/, but the development directory is under /dev_department/
// make sure that the web site structure doesn't duplicate the folder name
// make sure to have preceding and trailing slashes
// e.g.  having the home page as  /department/department/index.html
// *********************************
var validPaths = new Array("/ael/");
// *********************************

// =======================================================================
// Enter the path for the website which is relative to the _resources folder on the server
// be sure to have a trailing slash if the website is in a subfolder
// it's used for generating the side menu for dreamweaver
// Example entries are:
// var siteRootFolder = "";                            // _resources folder is in same folder as sidemenu.js
// var siteRootFolder = "agriculture/";                // _resources folder one level higher than sidemenu.js
// var siteRootFolder = "agriculture/livestock/";      // _resources folder two levels higher than sidemenu.js
// var siteRootFolder = "agriculture/livestock/pork/"; // _resources folder three levels higher than sidemenu.js
// *********************************
var siteRootFolder = ""; 
// *********************************
// =======================================================================



// =======================================================================
// the languages available for toggling between
// use the ISO 639-1 standard for entering the LANGUAGE_IDS entries.
// e.g. fr=French, de=German, xh=Chinese
var LANGUAGE_IDS = new Array("en", "fr");
// =======================================================================


// =======================================================================
// language labels should be written in the language that is being spoken
// - be sure to use the HTML code for special characters
// - for example, the French label should be Fran&ccedil;ais
// *********************************
var LANGUAGE_LABELS = new Array("English", "Fran&ccedil;ais");
// *********************************





var REPLACE_BREADCRUMB = 1;  // true/false to replace the breadcrumb DIV
var REPLACE_SIDEMENU = 0;    // true/false to replace the side menu DIV
var REPLACE_IFR = 1;         // true/false to replace with Inman Flash
var REPLACE_LANG = 1;        // true/false to replace language toggle DIV
var REPLACE_LINKS = 1;       // true/false to replace header links DIV


// =======================================================================
// HEADER LINKS
// arrHeaderLinks is an array containing the text links that should appear in
// the top header. It will be displayed in the order that the array entries are in.
// by default it is Site Map and Contact Us (the English/French language toggle 
// is controlled by a different function
// NOTE: if the url is empty, the header link will not appear
// =======================================================================


	var arrHeaderLink = new Array();
/* BY DEFAULT, THE HEADER LINKS ARE ENTERED MANUALLY...
//============
	var x=0;

	arrHeaderLink[x] = new Array();
	arrHeaderLink[x]["text_en"] = "Enter First Link English Text";
	arrHeaderLink[x]["text_fr"] = "Enter First Link French Text";
	arrHeaderLink[x]["url_en"] = "Enter First Link English URL";
	arrHeaderLink[x]["url_fr"] = "Enter First Link French URL";
//============

	x++;
	arrHeaderLink[x] = new Array();
	arrHeaderLink[x]["text_en"] = "Enter Second Link English Text";
	arrHeaderLink[x]["text_fr"] = "Enter Second Link French Text";
	arrHeaderLink[x]["url_en"] = "Enter Second Link English URL";
	arrHeaderLink[x]["url_fr"] = "Enter Second Link French URL";
*/


// ==========================================================================
// *********************************
// BREADCRUMB NAVIGATION
// *********************************
// - arrCrumb is basically an array of all the unique folders in the site map
// - the text_{lang} and url_{lang} values determine what is shown
//   on the bread crumb and the url it's supposed to go to.
// ["folder"] is the actual folder name.  multiple entries of the same folder 
//            will be displayed in the order they appear in the array
//            - set to empty if it should always be shown
//            - a deep subfolder should include all of its parents
//              e.g. things_to_do/seasonal/spring
//            - do not have a slash at the beginning or end of this value
// ["text_{lang}"] is the text to show on the breadcrumb trail
// ["url_{lang}"] is the link on the breadcrumb trail
//
// ==========================================================================

	var arrCrumb = new Array();
	

// EXAMPLE BREADCRUMBS
//============
/*
	var x=0;
	arrCrumb[x] = new Array();
	arrCrumb[x]["folder"] = "";
	arrCrumb[x]["text_en"] = "Gov Home";
	arrCrumb[x]["text_fr"] = "Page d'accueil";
	arrCrumb[x]["url_en"] = "http://www.gov.mb.ca/index.html";
	arrCrumb[x]["url_fr"] = "http://www.gov.mb.ca/index.fr.html";
// --- 	

	x++;
	arrCrumb[x] = new Array();
	arrCrumb[x]["folder"] = "";
	arrCrumb[x]["text_en"] = "Department";
	arrCrumb[x]["text_fr"] = "FR Department";
	arrCrumb[x]["url_en"] = "http://www.gov.mb.ca/department/index.html";
	arrCrumb[x]["url_fr"] = "http://www.gov.mb.ca/department/index.fr.html";

	x++;
	arrCrumb[x] = new Array();
	arrCrumb[x]["folder"] = "";
	arrCrumb[x]["text_en"] = "Branch";
	arrCrumb[x]["text_fr"] = "FR Branch";
	arrCrumb[x]["url_en"] = "http://www.gov.mb.ca/department/branch/index.html";
	arrCrumb[x]["url_fr"] = "http://www.gov.mb.ca/department/branch/index.fr.html";


	x++;
	arrCrumb[x] = new Array();
	arrCrumb[x]["folder"] = "";
	arrCrumb[x]["text_en"] = "Organization";
	arrCrumb[x]["text_fr"] = "FR Organization";
	arrCrumb[x]["url_en"] = "http://www.gov.mb.ca/department/branch/division/index.html";
	arrCrumb[x]["url_fr"] = "http://www.gov.mb.ca/department/branch/division/index.fr.html";
*/


// =======================================================================
// PAGE MENUS
// relative links should be relative from where sidemenu.js is located.
// if a link is going to a depth higher than sidemenu.js, put the 
// absolute server URL instead.
// - english pages use the ".html" extension
// - french pages use the ".fr.html" extension
// - make sure that the english and equivalent french page are in the same folder
// - define the menus as if you were creating a site map page.
// - make sure to escape double quotes with a backslash (\")
// e.g.  
//
//
//x++;  // always increment x for each menu item, the first menu x = 0
//arrMenu[x] = new Array();
//arrMenu[x]["level"] = 0;  // 0 - top level, 1 - second level, 2 - third level
//arrMenu[x]["text_en"] = 'The English Label';
//arrMenu[x]["text_fr"] = 'The French Label';
//arrMenu[x]["url_en"] = "introduction/index.html";
//arrMenu[x]["url_fr"] = "introduction/index.fr.html";

// If the menu item is an duplicate link to the same page, but should not be shown when visiting that page,
// set the following parameters, otherwise delete them or set to "0";
//arrMenu[x]["alt_link_en"] = 1; 
//arrMenu[x]["alt_link_fr"] = 1; 
// =======================================================================

	var arrMenu = new Array();
//============
	var x=0;

	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "English";
	arrMenu[x]["text_fr"] = "Français";
	arrMenu[x]["url_en"] = "index.html";
	arrMenu[x]["url_fr"] = "index.fr.html";
//============

	
	
	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Learners";
	arrMenu[x]["text_fr"] = "Apprenants";
	arrMenu[x]["url_en"] = "learners/index.html";
	arrMenu[x]["url_fr"] = "learners/index_fr.html";

				x++;		
arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Aboriginal Education and Training";
		arrMenu[x]["text_fr"] = "Éducation et formation professionnelle des Autochtones";
		arrMenu[x]["url_en"] = "http://www.edu.gov.mb.ca/abedu/index.html";
		arrMenu[x]["url_fr"] = "http://www.edu.gov.mb.ca/efpa/index.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Adult Learning";
		arrMenu[x]["text_fr"] = "Apprentissage pour adultes";
		arrMenu[x]["url_en"] = "learners/all.html";
		arrMenu[x]["url_fr"] = "learners/all.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Apprenticeship";
		arrMenu[x]["text_fr"] = "Apprentissage";
		arrMenu[x]["url_en"] = " http://www.gov.mb.ca/tce/apprent/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/apprent/index.html"

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "English as an Additional Language";
		arrMenu[x]["text_fr"] = " English as an Additional Language (anglais)";
		arrMenu[x]["url_en"] = "learners/esl.html ";
		arrMenu[x]["url_fr"] = "learners/esl.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Financial Assistance";
		arrMenu[x]["text_fr"] = "Aide financière";
		arrMenu[x]["url_en"] = "learners/financial_assist.html";
		arrMenu[x]["url_fr"] = "learners/ financial_assist_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "International Education";
		arrMenu[x]["text_fr"] = "Éducation internationale";
		arrMenu[x]["url_en"] = " http://www.gov.mb.ca/ie/welcome.html";
		arrMenu[x]["url_fr"] = " http://www.gov.mb.ca/ie/welcome.fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Labour Market Information";
		arrMenu[x]["text_fr"] = "Information sur le marché du travail";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/lmi/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/lmi/index_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Post-Secondary Institutions";
		arrMenu[x]["text_fr"] = "Établissements d’enseignement postsecondaire";
		arrMenu[x]["url_en"] = "unicoll/index.html";
		arrMenu[x]["url_fr"] = "unicoll/index.fr.html";

			x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Universities";
			arrMenu[x]["text_fr"] = "Universités";
			arrMenu[x]["url_en"] = "unicoll/universities.html";
			arrMenu[x]["url_fr"] = "unicoll/universities.fr.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Colleges";
			arrMenu[x]["text_fr"] = "Collèges";
			arrMenu[x]["url_en"] = "unicoll/colleges.html";
			arrMenu[x]["url_fr"] = "unicoll/colleges.fr.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Continuing Education";
			arrMenu[x]["text_fr"] = "Éducation permanente";
			arrMenu[x]["url_en"] = "unicoll/con_ed.html";
			arrMenu[x]["url_fr"] = "unicoll/con_ed.fr.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Distance Education";
			arrMenu[x]["text_fr"] = "Enseignement à distance";
			arrMenu[x]["url_en"] = "unicoll/distance_ed.html";
			arrMenu[x]["url_fr"] = "unicoll/distance_ed_.fr.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Private Vocational";
			arrMenu[x]["text_fr"] = "Établissements d’enseignement professionnel privés";
			arrMenu[x]["url_en"] = "unicoll/privoc.html";
			arrMenu[x]["url_fr"] = "unicoll/privoc.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Access Programs";
			arrMenu[x]["text_fr"] = "Programmes accès";
			arrMenu[x]["url_en"] = "unicoll/access.html";
			arrMenu[x]["url_fr"] = "unicoll/access.fr.html";

x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Religious Institutions";
			arrMenu[x]["text_fr"] = "Établissements religieux";
			arrMenu[x]["url_en"] = "unicoll/religious.html";
			arrMenu[x]["url_fr"] = "unicoll/religious.fr.html";

			x++;
			arrMenu[x] = new Array();
			arrMenu[x]["level"] = 2;
			arrMenu[x]["text_en"] = "Vocational/Technical";
			arrMenu[x]["text_fr"] = " Établissements de formation professionnelle et technique ";
			arrMenu[x]["url_en"] = "unicoll/voc_tech.html";
			arrMenu[x]["url_fr"] = "unicoll/voc_tech.fr.html";



		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Skills Upgrading";
		arrMenu[x]["text_fr"] = "Perfectionnement professionnel";
		arrMenu[x]["url_en"] = "jobseek/skillupgrade.html";
		arrMenu[x]["url_fr"] = "jobseek/skillupgrade.html";

x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Educators and Trainers";
	arrMenu[x]["text_fr"] = "Éducateurs et formateurs";
	arrMenu[x]["url_en"] = "edutrain/index.html";
	arrMenu[x]["url_fr"] =  "edutrain/index_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Adult Educators";
		arrMenu[x]["text_fr"] = "Apprentissage pour adultes";
		arrMenu[x]["url_en"] = "edutrain/adultedu.html";
		arrMenu[x]["url_fr"] = "edutrain/adultedu.fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Apprenticeship Educators";
		arrMenu[x]["text_fr"] = "Apprenticeship Educators (anglais)";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/apprent/trades/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/apprent/trades/index.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Council on Post-Secondary Education";
		arrMenu[x]["text_fr"] = "Conseil de l’enseignement post-secondaire";
		arrMenu[x]["url_en"] = "http://www.copse.mb.ca/en/index.html ";
		arrMenu[x]["url_fr"] = "http://www.copse.mb.ca/fr/index.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Industry and Workforce Development";
		arrMenu[x]["text_fr"] = "Développement de l'industrie et de la main-dœuvre ";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/index.fr.html";
x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Post-Secondary Institutions";
		arrMenu[x]["text_fr"] = "Établissements d’enseignement postsecondaire";
		arrMenu[x]["url_en"] = "unicoll/index.html";
		arrMenu[x]["url_fr"] = "unicoll/index.fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Private Vocational Institutions Registration";
		arrMenu[x]["text_fr"] = "Inscription des établissements professionnel privés";
		arrMenu[x]["url_en"] = "pvs/registering.html";
		arrMenu[x]["url_fr"] = "pvs/registering.fr.html";

x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Job Seekers";
	arrMenu[x]["text_fr"] = "Chercheurs d’emploi";
	arrMenu[x]["url_en"] = "jobseek/index.html";
	arrMenu[x]["url_fr"] = "jobseek/index_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Apprenticeship Trades";
		arrMenu[x]["text_fr"] = "Apprenticeship Trades (anglais)";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/apprent/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/apprent/index.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Employment Manitoba";
		arrMenu[x]["text_fr"] = "Emploi Manitoba";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/employment";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/employment/index_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Financial Assistance";
		arrMenu[x]["text_fr"] = "Aide financière";
		arrMenu[x]["url_en"] = "learners/financial_assist.html";
		arrMenu[x]["url_fr"] = "learners/financial_assist_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Labour Market Information";
		arrMenu[x]["text_fr"] = "Information sur le marché du travail";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/lmi/index_fr.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/lmi/index.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Job Preparation";
		arrMenu[x]["text_fr"] = "Préparation à l’emploi";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/tce/jobseek/jobprep.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/tce/jobseek/jobprep.html";


x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Skills Upgrading";
		arrMenu[x]["text_fr"] = "Perfectionnement professionnel";
		arrMenu[x]["url_en"] = "jobseek/skillupgrade.html";
		arrMenu[x]["url_fr"] = "jobseek/skillupgrade.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Starting Your Own Business";
		arrMenu[x]["text_fr"] = "Créer une entreprise";
		arrMenu[x]["url_en"] = "http://www.gov.mb.ca/business/starttofinish/index.html";
		arrMenu[x]["url_fr"] = "http://www.gov.mb.ca/business/starttofinish/index.fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Teaching Opportunities";
		arrMenu[x]["text_fr"] = "Pissibilités d’emploi en enseignement";
		arrMenu[x]["url_en"] = "jobseek/teachopps.html";
		arrMenu[x]["url_fr"] = "jobseek/teachopps_fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Volunteering";
		arrMenu[x]["text_fr"] = "Bénévolat";
		arrMenu[x]["url_en"] = "jobseek/volunteering.html";
		arrMenu[x]["url_fr"] = "jobseek/volunteering.fr.html";

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Youth Employment";
		arrMenu[x]["text_fr"] = "Emploi des jeunes";
		arrMenu[x]["url_en"] = "http://web2.gov.mb.ca/mb4youth/index.php?language=en";
		arrMenu[x]["url_fr"] = "http://web2.gov.mb.ca/mb4youth/index.php?language=frn";



//============


// =======================================
// END OF MENU ARRAYS
// =======================================
