// Define file paths
var AU  = "/about-us/";
var BB = "/business-banking/";
var SO	= "/special-offers/";
var COM = "/community/";

var BAC = "business-accounts/";
var BBC = "business-borrowing/";
var BBS = "business-solutions/";
var BC = "borrowing-credit/";
var GN = "good-neighbour/";
var INV = "investments/";
var NWS = "news/";
var NFO = "information/";



// Area Nav Bar - the global nav bar that is horizontally placed below the Meridian Logo
var aArea	= new Array();			var aAreaURL= new Array();
aArea[0]	= "Personal Banking";	aAreaURL[0]	= PB + "personal-banking.htm";
aArea[1]	= "Business Banking";	aAreaURL[1]	= BB + "business-banking.htm";
aArea[2]	= "Community";			aAreaURL[2]	= COM + "community.htm";
aArea[3]	= "About Us";			aAreaURL[3]	= AU + "about-us.htm";

// Most calls to this function are simply:
//		AreaNavBar()- this makes the label a link to its landing page
//					- this is automatically done within the /includes/header.htm 
// If you are calling this function from an actual Area landing page (like personal-banking.htm)
// you must add the following line AFTER the include call to nav-personal.inc or nav-business.inc
//		<script type="text/javascript" language="javascript">isAreaLandingPage = true;</script>

var isAreaLandingPage = false;
function AreaNavBar( ) {
	document.write( '<div id="navDivAlign"><div class="GlobalNavOtherArea">' );
	for (i=0; i < aArea.length; i++) {
		if(i != 0)document.write( '&#8226;' );
		if(aArea[i] != sThisArea)  // the current page is NOT in this Area - link to the landing page
			document.write( '&nbsp;&nbsp;<a href="' + aAreaURL[i] + '">' + aArea[i] + '</a>&nbsp;&nbsp;');
		else {  // the current page is in this Area
			document.write( '</div><div class="GlobalNavThisArea">&nbsp;&nbsp;' );
			if( isAreaLandingPage && (sThisPage != "Home") )  // the current page is the Area landing page - no link
				document.write( aArea[i] + '&nbsp;&nbsp;</div><div class="GlobalNavOtherArea">');
			else  // the current page is NOT the Area landing page - link to the landing page
				document.write( '<a href="' + aAreaURL[i] + '">' + aArea[i] + '</a>&nbsp;&nbsp;</div><div class="GlobalNavOtherArea">');
		}
	}
	document.write( '</div></div>');
}