// Assigns the names of the top level menu items
  appPath = "/personalinvest/"

	var menuItems = new Array();

	menuItems[1] = 'Products & Services';
	menuItems[2] = 'Online Services';
	menuItems[3] = 'Investor Learning';
	menuItems[4] = 'Investment Tools';
	menuItems[5] = 'About Us';

// Assign the links associated with the menu items
	var menuItemsLink = new Array();

	menuItemsLink[1] = appPath + 'ProductsServices/default.asp';
	menuItemsLink[2] = appPath + 'OnlineServices/default.asp';
	menuItemsLink[3] = appPath + 'InvestorLearning/default.asp';
	menuItemsLink[4] = appPath + 'InvestmentTools/default.asp';
	menuItemsLink[5] = appPath + 'About/default.asp';

// 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 - adds up to 775 with 41 pixels for folder tabs
	var menuItemsWidth = new Array();

	menuItemsWidth[1] = 130;
	menuItemsWidth[2] = 105;
	menuItemsWidth[3] = 115;
	menuItemsWidth[4] = 115;
	menuItemsWidth[5] = 70;

//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 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;


// Products & Services Menu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1],1,180,'1',
	//appPath+'ProductsServices/default.asp', 'Show(1)', 'Wealth Advisory Services',
	appPath+'ProductsServices/FinancialPlanning/default.asp', 'Show(1,11)', 'Financial Planning ',
	appPath+'ProductsServices/EstateInsurance/default.asp', 'Show(1,12)', 'Estate & Insurance Services ',
	appPath+'ProductsServices/InvestmentSolutions/default.asp', 'Show(1,13)', 'Investment Solutions ',
	appPath+'ProductsServices/GroupPensionsBenefits/default.asp', 'Show(1,14)', 'Group Pensions ',
	appPath+'ProductsServices/charity.asp', 'Show(1)', 'Charitable Giving Program',
	appPath+'ProductsServices/research.asp', 'Show(1,16)', 'Research ',
	appPath+'ProductsServices/economics.asp', 'Show(1,17)', 'Economics '
	
	
);

// Online Services Menu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[2],1,130,'2',
	appPath+'OnlineServices/Gateway/advantages.asp', 'Show(2)', 'Gateway Advantages',
	appPath+'OnlineServices/Gateway/research.asp', 'Show(2)', 'Research',
	appPath+'OnlineServices/Gateway/onlinetrading.asp', 'Show(2)', 'Online Trading',
	appPath+'OnlineServices/Gateway/ApplyNow/default.asp', 'Show(2)', 'Apply Now',
	appPath+'OnlineServices/FAQs/default.asp', 'Show(2,25)', 'FAQs '
);

// Investor Learning Menu
Layer[layerCounter] = new LayerSpecs(menuItemsLeft[3],1,160,'3',
	appPath+'InvestorLearning/StartingOut/default.asp', 'Show(3,31)', 'Starting Out ',
	appPath+'InvestorLearning/InvestmentBasics/default.asp', 'Show(3,32)', 'Investment Basics ',
	appPath+'InvestorLearning/RRSPCentre/default.asp', 'Show(3)', 'RRSP Centre',
	//appPath+'InvestorLearning/FinancialPlanning/default.asp', 'Show(3,33)', 'Planning ',
	appPath+'InvestorLearning/SolutionsForYourNeeds/default.asp', 'Show(3,34)', 'Solutions for Your Needs ',
	appPath+'InvestorLearning/Newsletter/default.asp', 'Show(3)', 'Newsletter',
	appPath+'InvestorLearning/Events/default.asp', 'Show(3,36)', 'Events '
);

// Investment Tools Menu
Layer[layerCounter] = new LayerSpecs(menuItemsLeft[4],1,121,'4',
	'/QuickQuote/QuickQuote.asp', 'Show(4)', 'Quick Quote',
	'/personaldefault.asp', 'Show(4,42)', 'Market Data ',
	appPath+'InvestmentTools/calculators.asp', 'Show(4,43)', 'Calculators '
);

// About Us Menu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5],1,135,'5',
	appPath+'About/InvestmentAdvisors/default.asp', 'Show(5,51)', 'Investment Advisors ',
	appPath+'About/BMONB/default.asp', 'Show(5,52)', 'BMO Nesbitt Burns ',
	appPath+'About/ClientExperience/default.asp', 'Show(5,53)', 'Client Experience ',
	appPath+'About/CareerCentre/default.asp', 'Show(5)', 'Career Centre',
	appPath+'About/News/default.asp', 'Show(5)', 'News Releases',
	appPath+'About/BMOFG.asp', 'Show(5)', 'BMO Financial Group'
);

// Products & Services Menu - Financial Planning Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,1,125,'11',
	//appPath+'ProductsServices/FinancialPlanning/overview.asp', 'Show(1,11)', 'Overview',
	appPath+'ProductsServices/FinancialPlanning/retirement.asp', 'Show(1,11)', 'Retirement Planning',
	appPath+'ProductsServices/FinancialPlanning/estate.asp', 'Show(1,11)', 'Estate Planning',
	appPath+'ProductsServices/FinancialPlanning/transition.asp', 'Show(1,11)', 'Transition Planning',
	appPath+'ProductsServices/FinancialPlanning/Education/default.asp', 'Show(1,11)', 'Education Planning'
	
);

// Products & Services Menu - Estate & Insurance Services Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,2,120,'12',
	appPath+'ProductsServices/EstateInsurance/AssetPreservation/default.asp', 'Show(1,12)', 'Asset Preservation',
	appPath+'ProductsServices/EstateInsurance/IncomeGeneration/default.asp', 'Show(1,12)', 'Income Generation'
);

// Products & Services Menu - Investment Solutions Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,3,170,'13',
	appPath+'ProductsServices/InvestmentSolutions/Equities/default.asp', 'Show(1,13)', 'Equities',
	appPath+'ProductsServices/InvestmentSolutions/fixedincome.asp', 'Show(1,13)', 'Fixed Income',
	appPath+'ProductsServices/InvestmentSolutions/MutualFunds/default.asp', 'Show(1,13)', 'Mutual Funds',
	appPath+'ProductsServices/InvestmentSolutions/ManagedPrograms/default.asp', 'Show(1,13)', 'Managed Programs',
	appPath+'ProductsServices/InvestmentSolutions/FeeBased/default.asp', 'Show(1,13)', 'Fee-Based Programs',
	appPath+'ProductsServices/InvestmentSolutions/borderless.asp', 'Show(1,13)', 'Borderless Investing Program',
	appPath+'ProductsServices/InvestmentSolutions/CashManagement/default.asp', 'Show(1,13)', 'Cash Management'
);

// Products & Services Menu - Group Pensions & Benefits Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,4,220,'14',
	//appPath+'ProductsServices/GroupPensionsBenefits/Retirement/default.asp', 'Show(1,14)', 'Retirement',
	//appPath+'ProductsServices/GroupPensionsBenefits/Savings/default.asp', 'Show(1,14)', 'Savings',
	//appPath+'ProductsServices/GroupPensionsBenefits/Education/default.asp', 'Show(1,14)', 'Education',
	//appPath+'ProductsServices/GroupPensionsBenefits/Insurance/default.asp', 'Show(1,14)', 'Insurance'
	appPath+'ProductsServices/GroupPensionsBenefits/advantages.asp', 'Show(1,14)', 'Advantages',
	appPath+'ProductsServices/GroupPensionsBenefits/retirement_plans.asp', 'Show(1,14)', 'Types of Retirement Plans',
	appPath+'ProductsServices/GroupPensionsBenefits/plan_sponser.asp', 'Show(1,14)', 'Plan Sponsor Contribution Remittance'
	
);

// Products & Services Menu - Research
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,6,145,'16',
	appPath+'ProductsServices/Interview.asp', 'Show(1,16)', 'Equity Research',
	appPath+'ProductsServices/Coxe.asp', 'Show(1,16)', 'Global Portfolio Strategy'
);

// Products & Services Menu - Economics Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width+1,7,65,'17',
	//appPath+'ProductsServices/default.asp', 'Show(1,15)', 'Focus',
	//appPath+'ProductsServices/default.asp', 'Show(1,15)', 'Viewpoint',
	//appPath+'ProductsServices/default.asp', 'Show(1,15)', 'Dollar Scenario',
	'http://www.bmonb.com/Economics', 'Show(1,17)', 'Go Direct'
);

// Online Services Menu - Gateway Account Access Submenu
//Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[2]+Layer[2].width+1,1,125,'21',
	//appPath+'OnlineServices/Gateway/advantages.asp', 'Show(2,21)', 'Gateway Advantages',
	//appPath+'OnlineServices/Gateway/research.asp', 'Show(2,21)', 'Research',
	//appPath+'OnlineServices/Gateway/onlinetrading.asp', 'Show(2,21)', 'Online Trading',
	//appPath+'OnlineServices/Gateway/ApplyNow/default.asp', 'Show(2,21)', 'Apply Now'
//);

// Online Services Menu - FAQs Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[2]+Layer[2].width+1,5,185,'25',
	appPath+'OnlineServices/FAQs/aboutGateway.asp', 'Show(2,25)', 'About Gateway',
	appPath+'OnlineServices/FAQs/newschartsresearch.asp', 'Show(2,25)', 'News, Charts & Research',
	appPath+'OnlineServices/FAQs/accountinformation.asp', 'Show(2,25)', 'Account Information',
	appPath+'OnlineServices/FAQs/payments.asp', 'Show(2,25)', 'Payments to BMO Nesbitt Burns',
	appPath+'OnlineServices/FAQs/trading.asp', 'Show(2,25)', 'Trading',
	appPath+'OnlineServices/FAQs/security.asp', 'Show(2,25)', 'Security',
	appPath+'OnlineServices/FAQs/troubleshooting.asp', 'Show(2,25)', 'Troubleshooting'
);

// Investor Learning Menu - Starting Out Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width+1,1,160,'31',
	appPath+'InvestorLearning/StartingOut/whyanIA.asp', 'Show(3,31)', 'Why an Investment Advisor',
	appPath+'InvestorLearning/StartingOut/investmentobjectives.asp', 'Show(3,31)', 'Investment Objectives',
	appPath+'InvestorLearning/StartingOut/risk.asp', 'Show(3,31)', 'Risk',
	appPath+'InvestorLearning/StartingOut/timeframe.asp', 'Show(3,31)', 'Time Frame',
	appPath+'InvestorLearning/StartingOut/assetmixstrategy.asp', 'Show(3,31)', 'Asset Mix Strategy',
	appPath+'InvestorLearning/StartingOut/securityofyourassets.asp', 'Show(3,31)', 'Security of Your Assets',
	appPath+'InvestorLearning/StartingOut/yourtaxes.asp', 'Show(3,31)', 'Your Taxes',
	appPath+'InvestorLearning/StartingOut/insurancebasics.asp', 'Show(3,31)', 'Insurance Basics'	
);

// Investor Learning Menu - Investment Basics Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width+1,2,115,'32',
	appPath+'InvestorLearning/InvestmentBasics/equities.asp', 'Show(3,32)', 'Equities',
	appPath+'InvestorLearning/InvestmentBasics/fixedincome.asp', 'Show(3,32)', 'Fixed Income',
	appPath+'InvestorLearning/InvestmentBasics/feebased.asp', 'Show(3,32)', 'Fee-Based',
	appPath+'InvestorLearning/InvestmentBasics/managedassets.asp', 'Show(3,32)', 'Managed Assets',
	appPath+'InvestorLearning/InvestmentBasics/mutualfunds.asp', 'Show(3,32)', 'Mutual Funds',
	appPath+'InvestorLearning/InvestmentBasics/segregatedfunds.asp', 'Show(3,32)', 'Segregated Funds',
	appPath+'InvestorLearning/InvestmentBasics/RegisteredPlans/default.asp', 'Show(3,32)', 'Registered Plans'
);


// Investor Learning Menu - Financial Planning Submenu
//Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width+1,3,85,'33',
	//appPath+'InvestorLearning/FinancialPlanning/RRSPCentre/default.asp', 'Show(3,33)', 'RRSP Centre',
	//appPath+'InvestorLearning/FinancialPlanning/LifeStages/default.asp', 'Show(3,33)', 'LifeStages'
//);

// Products & Services Menu - Solutions for Your Needs Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width+1,4,250,'34',
	appPath+'InvestorLearning/SolutionsForYourNeeds/SolidFoundation/default.asp', 'Show(3,34)', 'Building a Solid Foundation for Wealth',
	appPath+'InvestorLearning/SolutionsForYourNeeds/BusinessSuccession/default.asp', 'Show(3,34)', 'Business Succession Planning',
	appPath+'InvestorLearning/SolutionsForYourNeeds/DealingWithDivorce/default.asp', 'Show(3,34)', 'Dealing with Divorce',
	appPath+'InvestorLearning/SolutionsForYourNeeds/EducatedInvestor/default.asp', 'Show(3,34)', 'The Educated Investor',
	appPath+'InvestorLearning/SolutionsForYourNeeds/ElderCare/default.asp', 'Show(3,34)', 'Elder Care',
	appPath+'InvestorLearning/SolutionsForYourNeeds/MultigenerationalWealth/default.asp', 'Show(3,34)', 'Multigenerational Wealth Management',
	appPath+'InvestorLearning/SolutionsForYourNeeds/PlanningforRetirement/default.asp', 'Show(3,34)', 'Planning for Retirement',
	appPath+'InvestorLearning/SolutionsForYourNeeds/EnjoyingRetirement/default.asp', 'Show(3,34)', 'Retiring - And Enjoying It',
	appPath+'InvestorLearning/SolutionsForYourNeeds/ReviewingYourNeeds/default.asp', 'Show(3,34)', 'Reviewing Your Wealth Management Needs',
	appPath+'InvestorLearning/SolutionsForYourNeeds/TransitionPlanning/default.asp', 'Show(3,34)', 'Transition Planning',
	appPath+'InvestorLearning/SolutionsForYourNeeds/ProfessionalSolutions/default.asp', 'Show(3,34)', 'Wealth Management for Professionals'
);



// Investor Learning Menu - Events Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width+1,6,65,'36',
	appPath+'InvestorLearning/Events/Seminars/default.asp', 'Show(3,36)', 'Seminars',
	appPath+'InvestorLearning/Events/Webcasts/default.asp', 'Show(3,36)', 'Webcasts'
);

// Investment Tools Menu - Market Data Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[4]+Layer[4].width+1,2,120,'42',
	'/StockWatch/StockWatchEdit.asp', 'Show(4,42)', 'Stock Watch',
	'/PortfolioTracker/PortfolioView.asp', 'Show(4,42)', 'Portfolio Tracker',
	'/Charts/Charts.asp', 'Show(4,42)', 'Charting Services'
);

// Investment Tools Menu - Calculators Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[4]+Layer[4].width+1,3,155,'43',
	'javascript:openCalc(\'http://www.bmonb.com/tools/RRSPcalculator/default.asp\',640,600)', 'Show(4,43)', 'RRSP vs. Non-RRSP',
	'javascript:openCalc(\'http://www.bmoinvesting.com/calc/borrow_index.asp\',625,485)', 'Show(4,43)', 'RRSP Borrowing',
	'javascript:openCalc(\'http://www.bmonesbittburns.com/retirementyourway/newretire_en_BMONB.asp\',818,590)', 'Show(4,43)', 'New Retirement Illustrator'
);

// About Us Menu - Investment Advisors Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5]+Layer[5].width+1,1,120,'51',
	appPath+'About/InvestmentAdvisors/IAWebsites/default.asp', 'Show(5,51)', 'Personal Websites'
);

// About Us Menu - BMO Nesbitt Burns Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5]+Layer[5].width+1,2,110,'52',
	appPath+'About/BMONB/ExecutiveProfiles/default.asp', 'Show(5,52)', 'Executive Profiles',
	appPath+'About/BMONB/partnership.asp', 'Show(5,52)', 'Partnership',
	appPath+'About/BMONB/knowledge.asp', 'Show(5,52)', 'Knowledge',
	appPath+'About/BMONB/choice.asp', 'Show(5,52)', 'Choice'
);

// About Us Menu - Client Experience Submenu
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5]+Layer[5].width+1,3,85,'53',
	appPath+'About/ClientExperience/ClientCharter/default.asp', 'Show(5,53)', 'Client Charter',
	//'javascript:vbdiPopupSec(\'About/ClientExperience/secure/feedback.asp\')', 'Show(5,53)', 'Feedback'
	'javascript:openForm(\''+appPath+'About/ClientExperience/feedback.asp\')', 'Show(5,53)', 'Feedback'
);

// About Us Menu - Career Centre Submenu
//Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5]+Layer[5].width+1,4,120,'54',
	//appPath+'About/CareerCentre/InvestmentAdvisor/default.asp', 'Show(5,54)', 'Investment Advisor',
	//appPath+'About/CareerCentre/opportunities.asp', 'Show(5,54)', 'Other Opportunities'

