
function buildMenu(menu, strID) {
	switch(strID) {
	case "personal":
		strColor1 = "#006666";
		strColor2 = "#003333";
		menu.addChild(new MenuItem("Checking", ServerMapper.getURL("www", "https://services.mandtbank.com/personal/daily/checking.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Savings &amp; CDs", ServerMapper.getURL("www", "https://services.mandtbank.com/personal/daily/savings.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Loans & Credit", ServerMapper.getURL("www", "http://www.mandtbank.com/personal/loans/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Mortgage", ServerMapper.getURL("www", "http://www.mandtbank.com/personal/mortgage/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Investments", ServerMapper.getURL("www", "http://www.mandtbank.com/personal/invest/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Insurance", ServerMapper.getURL("www", "http://www.mandtbank.com/personal/insure/"),160,0,strColor1,strColor2));
		//menu.addChild(new MenuItem("Student Services", ServerMapper.getURL("www", "/personal/"),160,0,strColor1,strColor2));
		 
		break;

	case "smallBusiness":
		strColor1 = "#990066";
		strColor2 = "#660033";
		menu.addChild(new MenuItem("Access Your Accounts", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/access.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Business Resource Center", ServerMapper.getURL("www", "http://www.mandtbank.com/biz"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Checking & Savings", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/checkingandsavings.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Loans & Lines of Credit", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/loans.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Manage Your Money", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/manage.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Investment Solutions", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/invest.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Insurance", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/insurance.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Employee Benefits", ServerMapper.getURL("www", "http://www.mandtbank.com/smallBusiness/employee.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Merchant Services", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/merchantserv.cfm"),160,0,strColor1,strColor2));
		
		break;

	case "corporate":
		strColor1 = "#003399";
		strColor2 = "#003366";
		menu.addChild(new MenuItem("Lending & Financing", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/lending.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Depository Services", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/depository.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Treasury Management", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/cash.cfm"),160,0,strColor1,strColor2));
	menu.addChild(new MenuItem("<em>Web</em>INFOCU$<sup>SM</sup>", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/wif_intro.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web First F.A.C.T.S.", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/wff_intro.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Card Products", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/card.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Merchant Services", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/merchantserv.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("M&T Insurance Agency, Inc.", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/insurance.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Industry Solutions", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/industrysolutions.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Employee Benefits", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/emp.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Credit Inquiry Services", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/cis.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Capital Markets", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/capital.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("International Trade Finance", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/internat.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Investment Solutions", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/invest.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("M&T Realty Capital Corp.", ServerMapper.getURL("www", "http://www.mandtbank.com/corporate/mfh.cfm"),160,0,strColor1,strColor2));

		
		break;


	case "community":
		strColor1 = "#660099";
		strColor2 = "#330066";

		break;

	case "myAccounts":
		strColor1 = "#CC6600";
		strColor2 = "#993300";
		menu.addChild(new MenuItem("Web Banking Services", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/web_banking.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("My Mortgage Info", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/mortgage.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web Trading", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/web_trading.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("M&T Bank Credit Card", ServerMapper.getURL("www", "https://www.ibsnetaccess.com/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web Banking for Business", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/wbb_intro.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Portfolio Architect", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/pa_intro.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("WebFolio", ServerMapper.getURL("www", "http://www.mandtbank.com/myAccounts/wf_intro.cfm"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Retirement Services", ServerMapper.getURL("www", "http://www.mandtbank.com/myaccounts/retirementservices.cfm"),160,0,strColor1,strColor2));

		break;
		
		
		
		
		case "logOnNow":
		strColor1 = "#007a54";
		strColor2 = "#005C3F";
		menu.addChild(new MenuItem("Web Banking", ServerMapper.getURL("www",
"https://onlinebanking.mandtbank.com/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web Trading", ServerMapper.getURL("www",
"https://www.maxxinvest.com/mandtbank/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web Banking for Business", ServerMapper.getURL("www",
"https://webbankingforbusiness.mandtbank.com/smallbusiness/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Web INFOCU$", ServerMapper.getURL("www",
"https://webinfocus.mandtbank.com/mandt/cgi-bin/welcome.cgi"),206,0,strColor1,strColor2));

		break;

	case "applyNow":
		strColor1 = "#007a54";
		strColor2 = "#005C3F";
		menu.addChild(new MenuItem("Checking/Savings Account", ServerMapper.getURL("www",
"https://services.mandtbank.com/personal/daily/odp/ONLD_P01_01.cfm"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Credit Card", ServerMapper.getURL("www",
"/personal/loans/visa.cfm"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Personal Loans", ServerMapper.getURL("www",
"https://info.mandtbank.com/personal/loans/state.cfm"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Home Equity Loan/Line", ServerMapper.getURL("www",
"https://info.mandtbank.com/personal/loans/state.cfm"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Mortgage", ServerMapper.getURL("www",
"https://info.mandtbank.com/personal/mortgage/application/borrower.asp"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Mortgage Prequalification", ServerMapper.getURL("www",
"https://info.mandtbank.com/personal/mortgage/qualify/default.asp"),206,0,strColor1,strColor2));

		break;

	case "customerService":
		strColor1 = "#007a54";
		strColor2 = "#005C3F";
		menu.addChild(new MenuItem("Test 9", ServerMapper.getURL("www",
"/test/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 10", ServerMapper.getURL("www",
"/test/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 11", ServerMapper.getURL("www",
"/test/"),206,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 12", ServerMapper.getURL("www",
"/test/"),206,0,strColor1,strColor2));

		break;

	case "logOnNow2":
		strColor1 = "#006666";
		strColor2 = "#003333";
		menu.addChild(new MenuItem("Web Banking", ServerMapper.getURL("",
"https://onlinebanking.mandtbank.com/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 2", ServerMapper.getURL("www",
"/test/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 3", ServerMapper.getURL("www",
"/test/"),160,0,strColor1,strColor2));
		menu.addChild(new MenuItem("Test 4", ServerMapper.getURL("www",
"/test/"),160,0,strColor1,strColor2));

                break;



	}
}
