var cgiPath 		= '';
var appPath 		= '';
var appFileName 	= '';
var webLang 		= 'E';
var userRef 		= '';
var userID  		= '';
var thisPage 		= '';

// Assigns the names of the top level menu items
	var menuItems = new Array();

	menuItems[1] = 'Getting Started';
	menuItems[2] = 'Products & Services';
	menuItems[3] = 'Education Centre';	
	menuItems[4] = 'Market Info';		
	menuItems[5] = 'Rates';	





// Assign the links associated with the menu items
	var menuItemsLink = new Array();

	menuItemsLink[1] = "javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'E');";
	menuItemsLink[2] = "/ProductsServices/";
	menuItemsLink[3] = "/EducationCentre/";	
	menuItemsLink[4] = "javascript:submitLink('/ILClientWeb/marketing/marketingQuote.do','GetQuoteNav','E');";		
	menuItemsLink[5] = "/General_Info/rates.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,134,"1",
	'/ProductsServices/WhyBMOIL.html', 		'Show(1)',		'Why Choose Us',
	"javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'E');", "Show(1)", "Apply Online",
	"/ApplyNow/application.html", "Show(1)", "Forms"
);

// Rates
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[5],1,105,"5",
	"/Commissions/", "Show(5)", "Commissions",
	"javascript:submitLink('/ILClientWeb/marketing/marketingGICRates.do','displayGICRates','E');", "Show(5)",  	"GIC Rates",
	"/General_Info/InterestRates.html", "Show(5)", 	"Interest Rates",
	"/General_Info/MarginRates.html", "Show(5)", 	"Margin Rates",
	"/General_Info/InterestRates.html", "Show(5)", 	"Prime Rate"
);

// Markets Info
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[4],1,136,"4",
	"javascript:submitLink('/ILClientWeb/marketing/marketingQuote.do','GetQuoteNav','E');", "Show(4)", 	"Quotes",
	"javascript:submitLink('/ILClientWeb/marketing/marketingChart.do','displayMarketingChart','E');", "Show(4)", 	"Charts",
	"javascript:submitLink('/ILClientWeb/marketing/mkt_marketMovers.do','displayMarketMovers','E');", "Show(4)", 	"Market Movers",
	"javascript:submitLink('/ILClientWeb/marketing/stockWatch.do','displayStockWatchLists','E');",	"Show(4)", 		"Stock Watch Lists",
	"javascript:submitLink('/ILClientWeb/marketing/portfolioTracker.do','displayPortfolioTrackerList','E');",	"Show(4)", 	"Portfolio Tracker"
);

// Products & Services
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[2],1,148,'2',
	'/ProductsServices/#1', 					'Show(2)',	'Types of Investments',
	'/ProductsServices/#2', 					'Show(2)',	'Types of Accounts',
	'/WhatsNew/AssetAllocator.html', 			'Show(2)',	'Asset Allocator',
	'/WhatsNew/retirementPlanner.html', 		'Show(2)',	'Retirement Planner',
	'/WhatsNew/research.html', 					'Show(2)',	'Research',
	'/WhatsNew/standardandpoor.html', 			'Show(2)',	'S&P Top Picks',
	'/ProductsServices/ActiveTrader.html',  	'Show(2)',	'Active Trader Program',
	'/ProductsServices/5Star.html', 			'Show(2)',	'5 Star Program',
	'/WhatsNew/Alerts.htm', 					'Show(2)',	'Stock & News Alerts',
	'/WhatsNew/StopOrders.html', 				'Show(2)',	'Stop Orders',
	'/ProductsServices/FixedIncomeOnline.html',	'Show(2)',	'Fixed Income Online',
	'/EducationCentre/MutualFunds/Heavy_Hitter_Select_Funds_and_Model_Portfolios.html','Show(2)', 	'Model Portfolios',
	'/WhatsNew/PortfolioRebalancing.html', 		'Show(2)',	'Portfolio Rebalancing'			
);

// Education Centre
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3],1,170,'3',
	'/EducationCentre/GuidedInvesting.html',	'Show(3)', 		'Guided Investing',
	'javascript:',								'Show(3,32)', 	'Learn The Basics ',
	'javascript:',								'Show(3,33)', 	'Expand Your Knowledge ',
	'javascript:',								'Show(3,34)', 	'Calculators ',
	'/EducationCentre/Glossary.html',			'Show(3)',		'Glossary',
	'/FAQs/', 									'Show(3)', 		'FAQs'
);



// Getting Started/Open An Account
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[1]+Layer[1].width,1,170,'11',
	"javascript:submitLink('/ILClientWeb/olap/DisplayApplyOnline.jsp', '', 'E');", "Show(1,11)", "Apply Online",
	"/ApplyNow/application.html", "Show(1)", "Forms"
);

// Education Centre/Learn the basics
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 35,1,185,'32',
	'/FAQs/FAQ_III.html', 						'Show(3,32)', 		'About Online Trading',
	"javascript:window.open('/EducationCentre/Tutorials/EquitiesOptions/demo.html','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,height=600,width=800');", 'Show(3,32)', 'Trading Tutorial',	
	"javascript:window.open('/EducationCentre/MutualFunds/Tutorial/demo.html','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=Yes,resizable=no,copyhistory=no,height=650,width=1000');", 'Show(3,32)', 'Mutual Fund Tutorial',
	"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',
	'/EducationCentre/RetirementPlanner/',		'Show(3,32)', 	'Retirement Planner Demo',
	'/EducationCentre/RRSPs/', 					'Show(3,32)', 	'RRSPs',
	'/EducationCentre/RESPs/Default.html',		'Show(3,32)', 	'RESPs',
	'/EducationCentre/MutualFunds/', 			'Show(3,32)', 	'Mutual Fund',
	'/EducationCentre/FixedIncome/', 			'Show(3,32)', 	'Fixed Income',
	'/EducationCentre/ETF/ETFs.html',			'Show(3,32)', 	'Exchange Traded Funds (ETFs)',
	'/EducationCentre/taxPlanningCentre.html',	'Show(3,32)',	'Tax Resources'	
);

// Education Centre/Explore your knowledge
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 35,3,135,'33',
	'/EducationCentre/InSite/index.html',	'Show(3,33)',		'InSite Newsletter',
	'/WhatsNew/bridge-seminar.html', 	    'Show(3,33)', 		'Seminars',
	'/EducationCentre/SpecialReports.html', 'Show(3,33)', 		'Special Reports',
	'/EducationCentre/Webcast.html', 	    'Show(3,33)', 		'Webcasts'
);

// Education Centre/Calculators
Layer[layerCounter] =     new LayerSpecs(menuItemsLeft[3]+Layer[3].width + 35,3,135,'34',
	'/EducationCentre/ToolsLinks/RetireCalc.html',	'Show(3,34)',	'RRSP',
	'/EducationCentre/ToolsLinks/BorrowCalc.html',	'Show(3,34)',	'Borrowing',
	'/ProductsServices/ForeignExchange.html',		'Show(3,34)',	'Foreign Exchange'
);



createMenu();


//  $Log: marketingmenu.js,v $
//  Revision 1.41  2010/07/07 17:57:30  fwong
//  DR3419
//
