// Business Banking Section Nav Bar - the nav bar specific to each Area that is vertically placed along the left side
var aBusinessSection	= new Array();				var aBusinessURL	= new Array();

aBusinessSection[0]		= new Array();				aBusinessURL[0]		= new Array();
aBusinessSection[0][0]	= "Business Accounts";		aBusinessURL[0][0]	= BB + BAC + "business-accounts.htm";

aBusinessSection[0][1]	= new Array;				aBusinessURL[0][1]	= new Array();
aBusinessSection[0][1][0]	= "Chequing";			aBusinessURL[0][1][0]	= BB + BAC + "business-chequing.htm";
aBusinessSection[0][1][1]	= "Cheque Standards";	aBusinessURL[0][1][1]	= BB + BAC + "business-cheque-standards.htm";
aBusinessSection[0][2]	= "Advantage Savings";		aBusinessURL[0][2]	= BB + BAC + "business-advantage-savings.htm";
aBusinessSection[0][3]	= "Advantage Plus";			aBusinessURL[0][3]	= BB + BAC + "business-advantage-plus.htm";
aBusinessSection[0][4]	= "U.S. Dollar";			aBusinessURL[0][4]	= BB + BAC + "business-us-dollar.htm";
aBusinessSection[0][5]	= "Community Account";		aBusinessURL[0][5]	= BB + BAC + "business-community-plans.htm";
aBusinessSection[0][6]	= "Documents Required";		aBusinessURL[0][6]	= BB + BAC + "documents-required.htm";


aBusinessSection[1]		= new Array();				aBusinessURL[1]		= new Array();
aBusinessSection[1][0]	= "Business Borrowing";		aBusinessURL[1][0]	= BB + BBC + "business-borrowing.htm";
aBusinessSection[1][1]	= "Mortgages";				aBusinessURL[1][1]	= BB + BBC + "business-mortgages.htm";
aBusinessSection[1][2]	= "Loans";					aBusinessURL[1][2]	= BB + BBC + "business-loans.htm";
aBusinessSection[1][3]	= "Lines of Credit";		aBusinessURL[1][3]	= BB + BBC + "business-lines-of-credit.htm";
aBusinessSection[1][4]	= "Agricultural";			aBusinessURL[1][4]	= BB + BBC + "business-agricultural.htm";
aBusinessSection[1][5]	= "MasterCard";				aBusinessURL[1][5]	= BB + BBC + "business-mastercard.htm";

aBusinessSection[2]		= new Array();				aBusinessURL[2]		= new Array();
aBusinessSection[2][0]	= "Business Solutions";		aBusinessURL[2][0]	= BB + BBS + "business-solutions.htm";
aBusinessSection[2][1]	= "Automated Funds Transfer";		aBusinessURL[2][1]	= BB + BBS + "business-aft.htm";
aBusinessSection[2][2]	= "Cash Management";		aBusinessURL[2][2]	= BB + BBS + "business-cash-management.htm";
aBusinessSection[2][3]	= "Merchant Services";		aBusinessURL[2][3]	= BB + BBS + "business-merchant-services.htm";
aBusinessSection[2][4]	= "BizAssist";		        aBusinessURL[2][4]	= "/bizassist/";




// Examples of calls to this function:
//		SectionNavBarBusiness("Business Accounts", "Advantage Savings")
//			- this makes all the pages for the "Account Services" section visible,
//			  and highlights the "Advantage Savings" label to show it is the current page being viewed
//		SectionNavBarBusiness("Business Borrowing", "Business Borrowing")
//			- this makes all the pages for the "Business Borrowing" section visible,
//			  and highlights the "Business Borrowing" label to show it is the current page being viewed
function SectionNavBarBusiness( currentSection, currentPage ) {
	SectionNavBar( currentSection, currentPage, aBusinessSection, aBusinessURL );
}

function SectionNavBarBusinessOLD( currentSection, currentPage ) {
	for (i=0; i < aBusinessSection.length; i++) {
		if(aBusinessSection[i][0] == currentPage)  // the current page is the Section header page - use a graphic arrow icon and change the color
			document.write( '<img src="/images/Avroarrow.gif" /><div class="leftnavCurrentLinkText leftnavCurrent"> ' + aBusinessSection[i][0] + '</div>');
		else if (aBusinessURL[i][0] == "")  // no link on the sectional header
			document.write( '<div class="leftnavCurrent">' + aBusinessSection[i][0] + '</div>');
		else
			document.write( '<div class="leftnavCurrent"><a href="' + aBusinessURL[i][0] + '">' + aBusinessSection[i][0] + '</a></div>');
		if( isAreaLandingPage || aBusinessSection[i][0] == currentSection ){ // this is the section of the current page
			//document.write( '<div class="leftnavCurrent">' );
			for (j=1; j < aBusinessSection[i].length; j++) {
				if(aBusinessSection[i][j] == currentPage)  // this is the current page - use a graphic arrow icon and change the color
					document.write( '<div class="leftnavCurrentLinkText"><img src="/images/Avroarrow.gif" /> ' + aBusinessSection[i][j] + '</div>');
				else
					document.write( '<div class="leftnavLinkText" style="padding-left: 20px;"><a href="' + aBusinessURL[i][j] + '">' + aBusinessSection[i][j] + '</a></div>');
			}
		}
		document.write( '<div class="leftnavHorizontalDivider"></div>' );
	}
}