// Community Section Nav Bar - the nav bar specific to each Area that is vertically placed along the left side

var aCommunitySection	= new Array();					var aCommunityURL	= new Array();

aCommunitySection[0]	= new Array();					aCommunityURL[0]	= new Array();
aCommunitySection[0][0]	= "Good Neighbour";				aCommunityURL[0][0]	= COM + GN + "good-neighbour.htm";
aCommunitySection[0][1]	= "Community Investments"; 	    aCommunityURL[0][1] = COM + GN + "community-investments.htm";
// aCommunitySection[0][2]	= "Scholarships";				aCommunityURL[0][2]	= COM + GN + "scholarships.htm";
aCommunitySection[0][2]	= "CYL Program";				aCommunityURL[0][2]	= COM + GN + "cylp.htm";
aCommunitySection[0][3]	= "Upcoming Events";			aCommunityURL[0][3]	= COM + GN + "upcoming-events.htm";
// aCommunitySection[0][5]	= "Capital Campaign";		aCommunityURL[0][5]	= COM + GN + "capital-campaign-contributions.htm";
aCommunitySection[0][4]	= "Volunteer Matching Program";	aCommunityURL[0][4]	= COM + GN + "volunteer-matching.htm";


// Examples of calls to this function:
//		SectionNavBarAboutUs("AboutUs 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
//		SectionNavBarAboutUs("AboutUs Borrowing", "AboutUs Borrowing")
//			- this makes all the pages for the "AboutUs Borrowing" section visible,
//			  and highlights the "AboutUs Borrowing" label to show it is the current page being viewed
function SectionNavBarCommunity( currentSection, currentPage ) {
	SectionNavBar( currentSection, currentPage, aCommunitySection, aCommunityURL );
}

function SectionNavBarCommunityOLD( currentSection, currentPage ) {
	for (i=0; i < aCommunitySection.length; i++) {
		if(aCommunitySection[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"> ' + aCommunitySection[i][0] + '</div>');
		else if (aCommunityURL[i][0] == "")  // no link on the sectional header
			document.write( '<div class="leftnavCurrent">' + aCommunitySection[i][0] + '</div>');
		else
			document.write( '<div class="leftnavCurrent"><a href="' + aCommunityURL[i][0] + '">' + aCommunitySection[i][0] + '</a></div>');
		if( isAreaLandingPage || aCommunitySection[i][0] == currentSection ){ // this is the section of the current page
			//document.write( '<div class="leftnavCurrent">' );
			for (j=1; j < aCommunitySection[i].length; j++) {
				if(aCommunitySection[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" /> ' + aCommunitySection[i][j] + '</div>');
				else
					document.write( '<div class="leftnavLinkText" style="padding-left: 20px;"><a href="' + aCommunityURL[i][j] + '">' + aCommunitySection[i][j] + '</a></div>');
			}
		}
		document.write( '<div class="leftnavHorizontalDivider"></div>' );
	}
}