var aDir, aIndex, aEnglish, aFrench, sText
aDir =     new Array(
"/fr/pub",
"/fr/pub/about",
"/fr/pub/about/community",
"/fr/pub/advisoraccess",
"/fr/pub/careers",
"/fr/pub/contacts",
"/fr/pub/distributions",
"/fr/pub/funds",
"/fr/pub/funds/financials",
"/fr/pub/funds/manager",
"/fr/pub/funds/sri",
"/fr/pub/funds/profile",
"/fr/pub/funds/profile/sophisticated",
"/fr/pub/funds/symmetry",
"/fr/pub/help",
"/fr/pub/investoraccess",
"/fr/pub/legal",
"/fr/pub/media_centre",
"/fr/pub/media_centre/mackmedia",
"/fr/pub/media_centre/news",
"/fr/pub/media_centre/press",
"/fr/pub/performance",
"/fr/pub/prices",
"/fr/pub/products",
"/fr/pub/products/groups",
"/fr/pub/products/groups/advisors",
"/fr/pub/products/groups/sponsors",
"/fr/pub/products/lending",
"/fr/pub/products/library",
"/fr/pub/products/msp",
"/fr/pub/products/msp/fln",
"/fr/pub/products/msp/fln/fpseries1",
"/fr/pub/products/msp/fln/fpseries2",
"/fr/pub/products/msp/fln/fpseries3",
"/fr/pub/products/msp/fln/fpseries4",
"/fr/pub/products/msp/fln/fpseries5",
"/fr/pub/products/msp/fln/fpseries6",
"/fr/pub/products/msp/invest",
"/fr/pub/products/msp/invest/maxxum",
"/fr/pub/products/msp/lp",
"/fr/pub/products/msp/lp/2004rlp",
"/fr/pub/products/msp/lp/2005rlp",
"/fr/pub/products/msp/lp/2006rlp",
"/fr/pub/products/other",
"/fr/pub/products/other/mit",
"/fr/pub/products/other/mmlp",
"/fr/pub/products/pcg",
"/fr/pub/prospectuses",
"/fr/pub/rates",
"/fr/pub/sitemap",
"/fr/pub/tools",
"/fr/pub/tools/burnrate",
"/fr/pub/tools/advice",
"/fr/pub/tools/calculators",
"/fr/pub/tools/guides",
"/fr/pub/tools/guides/difficult",
"/fr/pub/tools/guides/mackfunds",
"/fr/pub/tools/guides/resp",
"/fr/pub/tools/guides/retirement",
"/fr/pub/tools/guides/rrsp",
"/fr/pub/tools/tax_estate",
"/fr/pub/tools/tax_estate/estate",
"/fr/pub/tools/tax_estate/tax",
"/fr/pub/products/msp/fln/armada",
"/fr/pub/products/msp/fln/armada/ycseries1",
"/fr/pub/products/msp/fln/armada/rocseries1",
"/fr/pub/products/charitable",
"/fr/pub/products/msp/fln/armada/japanseries1",
"/fr/pub/products/gps",
"/fr/pub/products/symmetry",
"/fr/pub/products/founders",
"/fr/pub/products/msp/fln/armada/rocseries3",
"/fr/pub/products/msp/fln/armada/gcseries3",
"/fr/pub/products/msp/lp/2007rlp",
"/fr/pub/products/msp/fln/armada/rocseries4",
"/fr/pub/products/msp/fln/armada/gcseries4",
"/fr/pub/funds/income",
"/fr/pub/products/msp/maxxum",
"/fr/pub/products/groups/members",
"/fr/pub/products/tfsa",
"/fr/pub/tools/ytol",
"/fr/pub/tools/ytol/20s",
"/fr/pub/tools/ytol/30s",
"/fr/pub/tools/ytol/40s",
"/fr/pub/tools/ytol/50s",
"/fr/pub/products/charitable/cttp",
"/fr/pub/products/accounts",
"/fr/pub/products/accounts/tfsa",
"/fr/pub/products/accounts/rrsp",
"/fr/pub/products/accounts/rrif",
"/fr/pub/products/accounts/ipp",
"/fr/pub/saxon",
"/fr/pub/products/msp/cdnshield",
"/fr/pub/results"
);

aEnglish =   new Array(
"Accueil",
"Qui sommes-nous",
"Mackenzie et la collectivité",
"AccèsConseiller",
"Emplois",
"Pour nous joindre",
"Prix et rendements",
"Produits et services",
"Fonds communs",
"Les gestionnaires et les équipes de gestion",
"ISR",
"Fonds communs",
"Profils des fonds",
"Symétrie",
"Aide",
"AccèsClient",
"Légal",
"Centre de presse",
"Mackenzie dans les médias",
"Nouvelles de Mackenzie",
"Communiqués de presse",
"Prix et rendements",
"Prix et rendements",
"Produits et services",
"RégimesCollectifs",
"Conseillers",
"Promoteurs de régime",
"Produits de prêt Mackenzie",
"Bibliothèque d'auxiliaires de marketing",
"MSP",
"Billets liés à des fonds",
"FULPAY Série 1",
"FULPAY Série 2",
"FULPAY Série 3",
"FULPAY Premium Advantage Série 4",
"FULPAY STAR Série 5",
"FULPAY STAR Série 6",
"Fonds de placements structuré",
"MSP Maxxum Trust",
"Sociétés en commandite d'actions accréditives",
"Mackenzie 2004 Resource LP",
"MSP 2005 Resource LP",
"MSP 2006 Resource LP",
"Autres produits de placement",
"Mackenzie Income Trust",
"Mackenzie Master Limited Partnership",
"Le programme pour clients privés",
"Prospectus",
"Taux",
"Plan du site",
"Outils de planification",
"Taux de dépense",
"Outils destinés aux conseillers",
"Calculateurs de placements",
"Guides des placements",
"Les placements en périodes difficiles",
"Guide aux fonds Mackenzie",
"Pour des lendemains prospères - REÉÉ",
"Pour des lendemains prospères – Retraite",
"Pour des lendemains prospères - REÉR",
"Planification fiscale et successorale",
"Planification successorale",
"Planification fiscale et successorale",
"ArMADA",
"Catégorie de rendement Maxxum",
"Catégorie de rendement Maxxum",
"Fonds philanthropique",
"Japon et International",
"Service de Gestion de portefeuilles supervisée (GPS) Mackenzie",
"Symétrie",
"Fonds fondateurs Mackenzie",
"Série 3 (Catégorie de rendement R.D.C.)",
"Série 3 (Catégorie de croissance)",
"MSP 2007 Resource LP",
"Série 4 (Catégorie de rendement R.D.C.)",
"Série 4 (Catégorie de croissance)",
"Revenu mondial",
"MSP Maxxum Trust",
"Participants",
"Types de compte",
"Pour des lendemains prospères",
"La vingtaine",
"La trentaine",
"La quarantaine",
"La cinquantaine",
"L’ado le plus philanthrope du Canada",
"Types de comptes",
"CELI",
"REER",
"FERR",
"IPP",
"Saxon",
"Le Fonds Bouclier Canadien",
"Trouver"
);

aIndex = new Array(
"index.shtml",
"index.shtml",
"index.shtml",
"aa_login.shtml",
"index.shtml",
"index.shtml",
"distributions.jsp",
"../products/index.shtml",
"../mutual.shtml",
"companyList.jsp",
"index.shtml",
"../mutual.shtml",
"../../fundnames.jsp",
"index.shtml",
"help.shtml",
"about_ia.shtml",
"disclaimer.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"performance.jsp",
"fundprices.jsp",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"library_search.jsp",
"index.shtml",
"index.shtml",
"note.shtml",
"note.shtml",
"note.shtml",
"note.shtml",
"note.shtml",
"note.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"invest_diff_times.shtml",
"index.shtml",
"resp_intro.shtml",
"retire.shtml",
"investing_intro.shtml",
"index.shtml",
"index.shtml",
"tax_guide.shtml",
"../index.shtml",
"terms.shtml",
"terms.shtml",
"index.shtml",
"terms.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"terms.shtml",
"terms.shtml",
"index.shtml",
"terms.shtml",
"terms.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"life_so_far.shtml",
"life_so_far.shtml",
"life_so_far.shtml",
"life_so_far.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"investing_intro.shtml",
"investing_intro.shtml",
"index.shtml",
"index.shtml",
"index.shtml",
"../index.shtml"
);


function breadCrumbs($home_directory, $divider,$cStyle, $tStyle, $dStyle, $new_line) {

	$location = window.location.toString();

    $subString = $location.substr($location.indexOf($home_directory) + $home_directory.length + 1).split("/");

	document.write("<a href=\"" + getLoc($subString.length - 1)+ "\" class=\"breadcrumbs\">Accueil</a>  " + "<span class=\"" + $dStyle + "\">" + $divider + "</span> ");

    $a = ($location.indexOf() == -1) ? 1 : 2;

    for (i = 0; i < $subString.length - $a; i++) {

        $subString[i] = makeCaps(unescape($subString[i]));

        document.write("<a href=\"" + getLoc($subString.length - i - 2) + "\" class=\"breadcrumbs\">" + sText + "</a>  " + "<span class=\"" + $dStyle + "\">" + $divider + "</span> ");

    }

    if ($new_line == 1) {

        document.write("<br>");

    }

	var docTitle = document.title 

	docTitle = docTitle.replace("Mackenzie | ","");

    document.write("<span class=\"breadcrumbs\">" + docTitle + "</span>");

}

function makeCaps($a) { 

	$sub_dir_name = $a.split(" ");

    for (l = 0; l <  $sub_dir_name.length; l++) {

         $sub_dir_name[l] =  $sub_dir_name[l].toUpperCase().slice(0, 1) +  $sub_dir_name[l].slice(1);

    }

    return  $sub_dir_name.join(" ");

}

function getLoc($num) {

    var path 

	var sDir

	sDir = $location

	sDir = sDir.substr(sDir.indexOf("/", 10));

	var i

	for (i=0;i<=$num;i++)

	{

		sDir = sDir.substring(0,sDir.lastIndexOf("/"));

	}

	var reTest

	reTest = new RegExp

		mainloop:

		for (i=0; i<aDir.length; i++)

		{

			reTest.compile("^" + aDir[i] + "$")

				if (reTest.test(sDir))

				{

					sText=aEnglish[i]

					path = sDir + "/" + aIndex[i]

					break mainloop

					}

		}

    return path;

}

    breadCrumbs("/fr/pub",">","dir","file","divider","0");
