/* 
=============================================
DETERMINE WHICH PAGE IS BEING VIEWED
=============================================
*/
var rootPath = "";

// array of possible paths that the green campaign is in
// e.g. the live server is under /seeinggreen/, but the development directory is under /green_campaign/
// make sure that the web site structure doesn't duplicate any folders
// e.g.  having the home page as  /seeinggreen/seeinggreen/index.html
var validPaths = new Array("/mtip/", "/highways/", "/infrastructure/");

var langID = "en";
var windowPath = window.location.pathname + "";
var windowURL = window.location.href + "";
if (windowURL.indexOf(".html") == -1) {
	windowURL = windowURL + "index.html";
}
if( windowURL.indexOf(".fr.")>0)
{
	langID = "fr";
}


var urlParameters = "";
if (windowURL.indexOf("?") > 0) {
	// we got a parameter in the url...
	urlParameters = stripSubPath(windowURL, "?");
}

var namedAnchor = "";
if (windowURL.indexOf("#") > 0) {
	// we got a named anchor...
	namedAnchor = stripSubPath(windowURL, "#");
}

// used in the page template...
var tempURL = windowURL;

var pagePath = "";
for (x = 0; x < validPaths.length; x++) {
	pagePath = stripSubPath(windowPath, validPaths[x]);
	if (pagePath == false) {
	} else {
		x = validPaths.length;
	}
}
// if for some reason the browser can't figure out the page we're on, default to index.html
if (pagePath == false) {
	pagePath = "index.html";
}

// if there is no .html extension in the current URL, it means we're browsing the folder
// so append index.html.
if (pagePath.indexOf(".html") == -1) {
	pagePath = pagePath + "index.html";
}

// figure out where the root of the site is, based on number of slashes
var num_slashes = pagePath.split("/");
for (x = 1; x < num_slashes.length; x++) {
	rootPath = rootPath + "../";
}

/*
=============================================
FUNCTIONS ARE DEFINED BELOW
=============================================
*/

// removes all portions of the path except for 
function stripSubPath(path, find) {
	var ret;
	var mypath = path;
	ret = false;
	if (path.indexOf("\\")) {
		mypath = mypath.replace(/\\/g, "/");
	}
	if (mypath.indexOf(find) > -1) {
		ret = mypath.substr(mypath.indexOf(find) + find.length);
	}

	return ret;
}

  		function arrangeMenus()
  		{
  			var k=0;
  			var maxLevel = 0;
  			for( var i=0; i<arrMenu.length; i++)
  			{
				if (arrMenu[i]["level"] > maxLevel) {
					maxLevel = arrMenu[i]["level"];
				}
  				if( pagePath + "" == arrMenu[i]["url_"+langID] + "")
  				{
  					arrMenu[i]["active"] = true;
  					arrMenu[i]["show"] = true;
  					arrMenu[i]["expand"] = true;
  					
  					// move up and set the parent to expand...
  					var curdepth = arrMenu[i]["level"];
  					for (ii = i; ii > 0; ii--) {
  						if (curdepth > arrMenu[ii]["level"]) {
  							arrMenu[ii]["expand"] = true;
		  					arrMenu[ii]["active"] = true;
	  						curdepth = arrMenu[ii]["level"];
  						}
  					}
  					k  = i;
  					kk = i;
  				}
  				else
  				{
  					arrMenu[i]["active"] = false;
  					arrMenu[i]["show"] = false;
  					arrMenu[i]["expand"] = false;
  				}

  			}

			
			// loop through the array "maxLevel" times to properly expand the entries
			// basically we only expand the immediate children of that entry... it will naturally expand...


			// always show top level menus
			for( var i=0; i<arrMenu.length; i++)
			{
				if (arrMenu[i]["level"] == 0) {
					arrMenu[i]["show"] = true;
				}
			}
			var expanding = false;
			for (var currentLevel = 0; currentLevel <= maxLevel; currentLevel++) {
				expanding = false;
				for( var i=0; i<arrMenu.length; i++)
				{
					if (arrMenu[i]["expand"] == true) {
						// show immediate children..
						for( var ii=i+1; ii<arrMenu.length; ii++)
						{
							if (arrMenu[ii]["level"] == currentLevel + 1) {
								arrMenu[ii]["show"] = true;
							}  else {
								if (arrMenu[ii]["level"] == currentLevel) {
									break;
								}
							}
						}
					}
				}
			}


  			return;
  		}




/*
	showMenus();
	
	This is the routine which outputs the actual menu structure. 
	Modify the appropriate levels HTML to adjust the style as necessary
*/
  		function showMenus()
  		{

  			for( var i=0; i<arrMenu.length; i++)
  			{

  				if(arrMenu[i]["level"]==0)
  				{
  					
// ##################### Change Background Image ################################
// #
// # Look for i == and set ID to appropriate nav.
// # ID is generated through each navigation item added
// # Search for: background-image:url("+rootPath+"  the image path is located here
// ################################################################################
  					if(arrMenu[i]["active"] || arrMenu[i]["expand"])
  					{
  						if(i==1)
  						{
							// show arrow pointing down
							document.write("<tr><td valign='middle' class='LeftHandMenus_l0_on' style='padding-left:5px; padding-right:5px;'><img src='"+rootPath+"images/nav/top_arrow_down.gif' border='0'alt=''/></td><td class='LeftHandMenus_l0_on' style='padding-right:5px;background-image:url("+rootPath+"images/nav/what_can_do_gradient.gif);'  valign='top'>");
  						}
  						else
  						{
  							// show arrow pointing down
						  	document.write("<tr><td valign='middle' class='LeftHandMenus_l0_on' style='padding-left:5px; padding-right:5px;'><img src='"+rootPath+"images/nav/top_arrow_down.gif' border='0'alt=''/></td><td class='LeftHandMenus_l0_on' style='padding-right:5px;' valign='top'>");
  						}
  					
  					}
  					else
  					{
  						if(i==1)
  						{
  							// show arrow pointing right
  							document.write("<tr><td valign='middle' class='LeftHandMenus_l0_off' style='padding-left:5px;  padding-right:5px;'><img src='"+rootPath+"images/nav/top_level_arrow.gif' border='0' alt=''/></td><td class='LeftHandMenus_l0_off' style='padding-right:5px;background-image:url("+rootPath+"images/nav/what_can_do_gradient.gif);' valign='top'>");
  						}
  						else
						{
  							// show arrow pointing right
					  		document.write("<tr><td valign='middle' class='LeftHandMenus_l0_off' style='padding-left:5px;  padding-right:5px;'><img src='"+rootPath+"images/nav/top_level_arrow.gif' border='0' alt=''/></td><td class='LeftHandMenus_l0_off' style='padding-right:5px;' valign='top'>");
  						}
  					
  					
  					}

  					arrMenu[i]["show"] = true;

  				}
  				if(arrMenu[i]["level"]==1)
  				{
  					if(arrMenu[i]["show"])
  					{
  						if(arrMenu[i]["active"])
  						{
  							document.write('<tr><td colspan="2" style="padding-left:20px;" class="LeftHandMenus_l1_on">');
  						}
  						else
  						{
  							document.write('<tr><td colspan="2" style="padding-left:20px;" class="LeftHandMenus_l1_off"" onMouseover="this.className=\'LeftHandMenus_l1_on\';" onMouseout="this.className=\'LeftHandMenus_l1_off\';">');
  						}

  					}
  				}
  				if(arrMenu[i]["level"]==2)
  				{
  					if(arrMenu[i]["show"])
  					{
  						if(arrMenu[i]["active"])
  						{
  							document.write('<tr><td colspan="2" style="padding-left:30px;" class="LeftHandMenus_l2_on">');
  						}
  						else
  						{
  							document.write('<tr><td colspan="2" style="padding-left:30px;" class="LeftHandMenus_l2_off"" onMouseover="this.className=\'LeftHandMenus_l2_on\';" onMouseout="this.className=\'LeftHandMenus_l2_off\';">');
  						}

  					}
  				}


  				if(arrMenu[i]["show"])
  				{
					document.write("<a href='");
					document.write(rootPath+arrMenu[i]["url_"+langID]);
					document.write("' title='");
					document.write(arrMenu[i]["text_"+langID]);
					document.write("'>");
					document.write(arrMenu[i]["text_"+langID]);
					document.write("</a>");

  					document.write("</td></tr>");
  					if(i<arrMenu.length-1)
  					{
  						document.write("<tr><td colspan='2' class='white_line'><img src='"+rootPath+"images/spacer.gif' border='0' width='1' height='1' alt=''/></td></tr>");
					}
  				}

  			}

  			return false;
  		}



/*
generateSiteMap()
- creates a site map using the contents of the arrMenu


*/
		function generateSiteMap()
		{
			document.write("<br>");
			for( var i=0; i<arrMenu.length; i++)
			{
				if(arrMenu[i]["level"]==2)
				{
					document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
				}
				if(arrMenu[i]["level"]==1)
				{
					document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
				}
				
				if(arrMenu[i]["level"]==0)
				{
					document.write("<br>");
				}

				document.write("<a href='");
				document.write(rootPath+arrMenu[i]["url_"+langID]);
				document.write("' title='");
				document.write(arrMenu[i]["text_"+langID]);
				document.write("'>");
				document.write(arrMenu[i]["text_"+langID]);
				document.write("</a>");

				if(i<arrMenu.length-1)
				{
					document.write("<br>");
				}
			}
			return false;
		}




/*
	flipLanguage()
	- switches between the languages of the current page based on the parameter
*/
function flipLanguage(new_lang_id)
{

	// text to search
	var searchExp = /\.html/gi;
	if (langID== "en") {
		searchExp = /\.html/gi;
	}
	if (langID == "fr") {
		searchExp = /\.fr\.html/gi;
	}

	// text to replace with
	var repExp = ".html";
	if (new_lang_id == "en") {
		repExp = ".html";
	}
	if (new_lang_id == "fr") {
		repExp = ".fr.html";
	}
	windowURL = windowURL.replace(searchExp, repExp);

	window.location=windowURL;
	return false;
}


// reloads page with printer friendly version  		
function showPrinterFriendly()
{
	var newLocation = windowURL;
	if (newLocation.indexOf("?") > -1) {
		newLocation = newLocation.substr(0,  newLocation.indexOf("?"));
	} else {
		if (newLocation.indexOf("#") > -1) {
			newLocation = newLocation.substr(0,  newLocation.indexOf("#"));
		}
	}
	if (urlParameters != "") {
		// automatically includes named anchor...
		newLocation = newLocation + "?print&" + urlParameters;
	} else {
		if (namedAnchor != "") {
			newLocation = newLocation + "?print#" + namedAnchor;
		} else {
			newLocation = newLocation + "?print";
		}
	}
	// launch printer version in new window...
	newwin = window.open(newLocation);
	
	if (newwin) {
	} else {
		alert("Please enable popups for the printer friendly page to show.");
	}
	return false;
}


// sets appropriate stylesheet
function setActiveStyleSheet(title) 
{
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) 
   {
	 if(a.getAttribute("rel").indexOf("style") != -1
		&& a.getAttribute("title")) {
	   a.disabled = true;
	   if(a.getAttribute("title") == title) a.disabled = false;
	 }
   }
}
		
		
		
// used to determine which stylesheet to use when the page loads.
function checkPrint()
{
	if (windowURL.indexOf("?print") > -1) {
		setActiveStyleSheet("print");
	} else {
		setActiveStyleSheet("web");
	}
	return false;
}


// misc. rollover image code

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




/*
==========================================================================
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";

==========================================================================
*/


	arrMenu = new Array();
//********
	x=0;

	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Home Page";
	arrMenu[x]["text_fr"] = "Page d'accueil";
	arrMenu[x]["url_en"] = "index.html";
	arrMenu[x]["url_fr"] = "index.fr.html";
	

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Minister's Message";
		arrMenu[x]["text_fr"] = "Message du ministre";
		arrMenu[x]["url_en"] = "minister/index.html";
		arrMenu[x]["url_fr"] = "minister/index.fr.html";
		
//********

	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Introduction";
	arrMenu[x]["text_fr"] = "Introduction";
	arrMenu[x]["url_en"] = "introduction/index.html";
	arrMenu[x]["url_fr"] = "introduction/index.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Sustainable Funding";
		arrMenu[x]["text_fr"] = "Financement durable";
		arrMenu[x]["url_en"] = "introduction/funding.html";
		arrMenu[x]["url_fr"] = "introduction/funding.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Construction and Renewal Infrastructure Program";
		arrMenu[x]["text_fr"] = "Programme de construction et de réfection des infrastructures";
		arrMenu[x]["url_en"] = "introduction/construction.html";
		arrMenu[x]["url_fr"] = "introduction/construction.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Strategic Resurfacing Fund";
		arrMenu[x]["text_fr"] = "Fonds de resurfaçage stratégique";
		arrMenu[x]["url_en"] = "introduction/resurface.html";
		arrMenu[x]["url_fr"] = "introduction/resurface.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Federal-Provincial Cost Sharing Fund";
		arrMenu[x]["text_fr"] = "Fonds fédéral-provincial de partage des coûts";
		arrMenu[x]["url_en"] = "introduction/cost_share.html";
		arrMenu[x]["url_fr"] = "introduction/cost_share.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Flexible Response Fund";
		arrMenu[x]["text_fr"] = "Fonds d'intervention ponctuelle";
		arrMenu[x]["url_en"] = "introduction/flexible.html";
		arrMenu[x]["url_fr"] = "introduction/flexible.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Small and Miscellaneous Project Fund";
		arrMenu[x]["text_fr"] = "Fonds pour projets de petite envergure et projets divers";
		arrMenu[x]["url_en"] = "introduction/misc.html";
		arrMenu[x]["url_fr"] = "introduction/misc.fr.html";


//********

	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Construction and Renewal Infrastructure Program";
	arrMenu[x]["text_fr"] = "Programme de construction et de réfection des infrastructures";
	arrMenu[x]["url_en"] = "program/index.html";
	arrMenu[x]["url_fr"] = "program/index.fr.html";

//********

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 0;
		arrMenu[x]["text_en"] = "Bridges & Structures";
		arrMenu[x]["text_fr"] = "Ponts et structures";
		arrMenu[x]["url_en"] = "program/bridges.html";
		arrMenu[x]["url_fr"] = "program/bridges.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Eastern Region";
		arrMenu[x]["text_fr"] = "Région de l\'Est";
		arrMenu[x]["url_en"] = "program/regions/eastern.html";
		arrMenu[x]["url_fr"] = "program/regions/eastern.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "South Central Region";
		arrMenu[x]["text_fr"] = "Région du Centre-Sud";
		arrMenu[x]["url_en"] = "program/regions/south_central.html";
		arrMenu[x]["url_fr"] = "program/regions/south_central.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "South West Region";
		arrMenu[x]["text_fr"] = "Région du Sud-Ouest";
		arrMenu[x]["url_en"] = "program/regions/south_west.html";
		arrMenu[x]["url_fr"] = "program/regions/south_west.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "West Central Region";
		arrMenu[x]["text_fr"] = "Région du Centre-Ouest";
		arrMenu[x]["url_en"] = "program/regions/west_central.html";
		arrMenu[x]["url_fr"] = "program/regions/west_central.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Northern Region";
		arrMenu[x]["text_fr"] = "Région du Nord";
		arrMenu[x]["url_en"] = "program/regions/northern.html";
		arrMenu[x]["url_fr"] = "program/regions/northern.fr.html";

//********
	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 0;
	arrMenu[x]["text_en"] = "Major Highway Projects";
	arrMenu[x]["text_fr"] = "Autoroutes principales";
	arrMenu[x]["url_en"] = "program/projects/index.html";
	arrMenu[x]["url_fr"] = "program/projects/index.fr.html";


	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 1;
	arrMenu[x]["text_en"] = "PTH 1 Trans-Canada Highway";
	arrMenu[x]["text_fr"] = "R.P.G.C. 1 (route Transcanadienne)";
	arrMenu[x]["url_en"] = "program/projects/pth1.html";
	arrMenu[x]["url_fr"] = "program/projects/pth1.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 75";
		arrMenu[x]["text_fr"] = "R.P.G.C. 75";
		arrMenu[x]["url_en"] = "program/projects/pth75.html";
		arrMenu[x]["url_fr"] = "program/projects/pth75.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 100 & PTH 101" + "<br>" + "(Perimeter Highway)";
		arrMenu[x]["text_fr"] = "R.P.G.C. 100 et R.P.G.C. 101<br> (communément appelées route périphérique) ";
		arrMenu[x]["url_en"] = "program/projects/pth100.html";
		arrMenu[x]["url_fr"] = "program/projects/pth100.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Winnipeg Project<br>- Inkster Boulevard";
		arrMenu[x]["text_fr"] = "Projet Winnipeg<br> – Boulevard Inkster";
		arrMenu[x]["url_en"] = "program/projects/pr221.html";
		arrMenu[x]["url_fr"] = "program/projects/pr221.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 59";
		arrMenu[x]["text_fr"] = "R.P.G.C. 59";
		arrMenu[x]["url_en"] = "program/projects/pth59.html";
		arrMenu[x]["url_fr"] = "program/projects/pth59.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 6";
		arrMenu[x]["text_fr"] = "R.P.G.C. 6";
		arrMenu[x]["url_en"] = "program/projects/pth6.html";
		arrMenu[x]["url_fr"] = "program/projects/pth6.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 6 Curves";
		arrMenu[x]["text_fr"] = "Courbes R.P.G.C. 6";
		arrMenu[x]["url_en"] = "program/projects/pth6_curves.html";
		arrMenu[x]["url_fr"] = "program/projects/pth6_curves.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 10";
		arrMenu[x]["text_fr"] = "R.P.G.C. 10";
		arrMenu[x]["url_en"] = "program/projects/pth10.html";
		arrMenu[x]["url_fr"] = "program/projects/pth10.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PR 373 & PR 374 ";
		arrMenu[x]["text_fr"] = "R.P.S. 373 et R.P.S. 374";
		arrMenu[x]["url_en"] = "program/projects/pr373.html";
		arrMenu[x]["url_fr"] = "program/projects/pr373.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 16";
		arrMenu[x]["text_fr"] = "R.P.G.C. 16";
		arrMenu[x]["url_en"] = "program/projects/pth16.html";
		arrMenu[x]["url_fr"] = "program/projects/pth16.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 8 & PTH 9";
		arrMenu[x]["text_fr"] = "R.P.G.C. 8 et R.P.G.C. 9";
		arrMenu[x]["url_en"] = "program/projects/pth8.html";
		arrMenu[x]["url_fr"] = "program/projects/pth8.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 2 & PTH 3";
		arrMenu[x]["text_fr"] = "R.P.G.C. 2 et R.P.G.C. 3";
		arrMenu[x]["url_en"] = "program/projects/pth2.html";
		arrMenu[x]["url_fr"] = "program/projects/pth2.fr.html";

	x++;
	arrMenu[x] = new Array();
	arrMenu[x]["level"] = 1;
	arrMenu[x]["text_en"] = "PTH 68";
	arrMenu[x]["text_fr"] = "R.P.G.C. 68";
	arrMenu[x]["url_en"] = "program/projects/pth68.html";
	arrMenu[x]["url_fr"] = "program/projects/pth68.fr.html";


		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "PTH 83";
		arrMenu[x]["text_fr"] = "R.P.G.C. 83";
		arrMenu[x]["url_en"] = "program/projects/pth83.html";
		arrMenu[x]["url_fr"] = "program/projects/pth83.fr.html";

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 1;
		arrMenu[x]["text_en"] = "Other Provincial Trunk Highways";
		arrMenu[x]["text_fr"] = "Autres routes provinciales à grande circulation";
		arrMenu[x]["url_en"] = "program/projects/other_pth.html";
		arrMenu[x]["url_fr"] = "program/projects/other_pth.fr.html";

//********

x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 0;
		arrMenu[x]["text_en"] = "Connecting Remote Communities";
		arrMenu[x]["text_fr"] = "Relier les collectivités éloignées";
		arrMenu[x]["url_en"] = "remote/index.html";
		arrMenu[x]["url_fr"] = "remote/index.fr.html";

//********

		x++;
		arrMenu[x] = new Array();
		arrMenu[x]["level"] = 0;
		arrMenu[x]["text_en"] = "Conclusion";
		arrMenu[x]["text_fr"] = "Conclusion";
		arrMenu[x]["url_en"] = "conclusion/index.html";
		arrMenu[x]["url_fr"] = "conclusion/index.fr.html";


// =======================================
// END OF MENU ARRAYS
// =======================================