var cgiPath 		= '';
var appPath 		= '';
var appFileName 	= '';
var webLang 		= 'F';
var userRef 		= '';
var userID  		= '';
var thisPage 		= '';

// Assigns the names of the top level menu items
	var menuItems = new Array();

	menuItems[1] = 'Pour commencer';
	menuItems[5] = 'Taux';	
	menuItems[4] = 'Nouvelles des marchés';
	menuItems[2] = 'Produits et services';	
	menuItems[3] = 'Centre éducatif';




// Assign the links associated with the menu items
	var menuItemsLink = new Array();

	menuItemsLink[1] = "javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'F');";
	menuItemsLink[2] = "/Produitsetservices/";
	menuItemsLink[3] = "/CentreEducatif/";
	menuItemsLink[4] = "javascript:submitLink('/ILClientWeb/marketing/marketingQuote.do','GetQuoteNav','F');";
	menuItemsLink[5] = "/Info/Taux.html";	



// Assigns the number of the sublayer of the top level menu items
	var menuItemsSubLayer = new Array();

	menuItemsSubLayer[1] = '1';
	menuItemsSubLayer[2] = '2';
	menuItemsSubLayer[3] = '3';
	menuItemsSubLayer[4] = '4';
	menuItemsSubLayer[5] = '5';



//Assigns width of top level menu items
	var menuItemsWidth = new Array();

	menuItemsWidth[1] = 150;
	menuItemsWidth[2] = 150;
	menuItemsWidth[3] = 150;
	menuItemsWidth[4] = 150;
	menuItemsWidth[5] = 150;



//Assigns left position of top level menu items
	var menuItemsLeft = new Array();

	menuItemsLeft[1] = 0;
	menuItemsLeft[2] = menuItemsLeft[1] + menuItemsWidth[1]+6;
	menuItemsLeft[3] = menuItemsLeft[2] + menuItemsWidth[2]+5;
	menuItemsLeft[4] = menuItemsLeft[3] + menuItemsWidth[3]+5;
	menuItemsLeft[5] = menuItemsLeft[4] + menuItemsWidth[4]+5;



//create top level menus
	for(i=1;i<menuItems.length;i++) {
		createBaseItem(i,menuItems[i],menuItemsWidth[i],menuItemsLeft[i],menuItemsLink[i],menuItemsSubLayer[i]);
		}

/*	Create Your layers below by typing:
	 Layer[incrementing number] = new LayerSpecs(Left Position, Top Row Position, Width, Unique Identifier, List of Links Seperated by Commas)
	 If a layer has a sublayer, add onMouseOver="Show(Layer Number to Open, Current Layer, Any Layers Opened before the current layer (seperated by commas)
*/

Layer = new Array();
var layerCounter = 1;
var theSubMenu = new Array();
var dependsOn = new Array();
var theSubMenuCounter = 0;


// Getting Started
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1],1,165,'1',
	'/Produitsetservices/PourquoiBMOLD.html', 	'Show(1)',		'Pourquoi nous choisir',
	"javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'F');", "Show(1)", "Demande en ligne",
	"/Poursinscrire/fr_application.html", "Show(1)", "Formulaires"
);

// Rates
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5],1,115,'5',
	"/Baremedescommissions/", 						"Show(5)", "Commissions",
	"javascript:submitLink('/ILClientWeb/marketing/marketingGICRates.do','displayGICRates','F');", 	"Show(5)", "Taux des CPG",
	"/Info/TauxInteret.html", 						"Show(5)", "Taux d'intérêt",
	"/Info/Tauxdecouverture.html", 					"Show(5)", "Taux de couverture",
	"javascript:launchRemote('http://www4.bmo.com/particuliers/taux/0,4481,35702_3520159,00.html')", "Show(5)", "Taux préférentiel"
);

// Markets Info
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[4],1,160,'4',
	"javascript:submitLink('/ILClientWeb/marketing/marketingQuote.do','GetQuoteNav','F');", "Show(4)", 	"Cours",
	"javascript:submitLink('/ILClientWeb/marketing/marketingChart.do','displayMarketingChart','F');", "Show(4)", "Graphiques",
	"javascript:submitLink('/ILClientWeb/marketing/mkt_marketMovers.do','displayMarketMovers','F');", "Show(4)", "Marché - Influences",
	"javascript:submitLink('/ILClientWeb/marketing/stockWatch.do','displayStockWatchLists','F');",	"Show(4)", 	"Liste d'actions à surveiller",
	"javascript:submitLink('/ILClientWeb/marketing/portfolioTracker.do','displayPortfolioTrackerList','F');",	"Show(4)", 	"Surveillance du portefeuille"
);

// Products & Services
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[2],1,230,'2',
	'/Produitsetservices/#1', 						'Show(2)',	'Types de placements',
	'/Produitsetservices/#2', 						'Show(2)',	'Types de Comptes',
	'/Quoideneuf/OutilDeRepartitionDeLactif.html', 	'Show(2)',	'Répartition de l´actif',
	'/Quoideneuf/planificateurDeRetraite.html', 	'Show(2)',	'Planificateur de retraite',
	'/Quoideneuf/recherche.html', 					'Show(2)',	'Recherche',
    '/Quoideneuf/standardandpoorfr.html', 			'Show(2)',	'Titres recommand&#233;s S&P',	
	'/Produitsetservices/operations_multiples.html','Show(2)',	'Programme pour les investisseurs actifs',
	'/Produitsetservices/cinqetoiles.html', 		'Show(2)',	'Programme cinq étoiles',
	'/Quoideneuf/Alertes.htm', 				  		'Show(2)',	'Alertes',
	'/Quoideneuf/OrdresStop.html',  	  	  		'Show(2)',	'Ordres stop',
	'/Produitsetservices/RevenuFixe.html',	  		'Show(2)',	'Titres à revenu fixe en ligne',	
	'/CentreEducatif/Fondsdinvestissement/selecteur_de_fonds_et_portefeuilles_modeles.html',		'Show(2)', 'Portefeuilles modèles',
	'/Quoideneuf/OutilDeReequilibrageDuPortefeuille.html',	'Show(2)',	'Rééquilibrage du portefeuille'		
);

// Education Centre
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3],1,190,'3',
	'/CentreEducatif/fr_GuidedInvesting.html',		'Show(3)',		'Investissement guidé',
	'javascript:',									'Show(3,32)', 	"Apprenez l'ABC ",
	'javascript:',									'Show(3,33)', 	'Découvrez vos connaissances ',
	'javascript:',									'Show(3,34)', 	'Calculatrices ',
	"/CentreEducatif/Glossaire.html",		 		"Show(3)",		"Glossaire",
	'/FAQ/', 										'Show(3)', 		'Questions fréquentes'
);


// Getting Started/Open An Account
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width,1,170,'11',
	"javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'F');", "Show(1,11)", "Demande en ligne",
	"/Poursinscrire/fr_application.html", "Show(1,11)", "Téléchargez les formulaires"
);


// Education Centre/Learn the basics
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 30,1,280,'32',
	'/FAQ/FAQ_III.html', 						'Show(3,32)', 'Transactions en ligne',
	"javascript:window.open('/CentreEducatif/Tutoriels/ActionsOptions/demo.html','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,height=600,width=800');", 'Show(3,32)', "Tutoriel pour la négociation d'actions et de titres",
	"javascript:window.open('/CentreEducatif/Fondsdinvestissement/Tutoriel/demo.html','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=Yes,resizable=no,copyhistory=no,height=650,width=1000');", 'Show(3,32)',	"Tutoriel sur les fonds d'investissement",
	"javascript:window.open('http://concepts.marketwatch.com/mwls/Tool-school/r1_charthelp_menu.html','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,height=410,width=520');", 'Show(3,32)',	'Charting Tutorial  (en anglais)',
	'/CentreEducatif/PlanificateurDeRetraite/', 'Show(3,32)', 'Visite guidée du planificateur de retraite',	
	'/CentreEducatif/REER/', 					'Show(3,32)', 'REER',
	'/CentreEducatif/REEE/Default.html',		'Show(3,32)', 'REEE',
	'/CentreEducatif/Fondsdinvestissement/', 	'Show(3,32)', "Fonds d'investissement",
	'/CentreEducatif/Obligations/', 			'Show(3,32)', 'Titres à revenu fixe',
	'/CentreEducatif/FTB/fr_ETFs.html',			'Show(3,32)', 'Fonds transigés en bourse (FTB)',
	'/CentreEducatif/fr_taxPlanningCentre.html','Show(3,32)', 'Ressources fiscales'	
);

// Education Centre/Explore your knowledge
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 30,2,112,'33',
	'/CentreEducatif/EnVue/index.html',		'Show(3,33)',   'Bulletin En vue',
	'/Quoideneuf/fr_bridge_seminars.html',	'Show(3,33)',	'Séminaires',	
	'/CentreEducatif/Rapport.html',			'Show(3,33)', 	'Rapports spéciaux',
	'/CentreEducatif/Webdiffusions.html', 	'Show(3,33)', 	'Webdiffusions'
);

// Education Centre/ Calculators
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 30,3,130,'34',
	'/CentreEducatif/Outilsetliens/Calculateurderetraite.html',	'Show(3,34)',	'REER',
	'/CentreEducatif/Outilsetliens/Calculateurdemprunt.html',	'Show(3,34)',	'd&#039;emprunt',
	'/Produitsetservices/OperationsDeChange.html',				'Show(3,34)',	'Opérations de change'	
);

createMenu();
