/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','32',jdecode('Home+QPAFCU'),jdecode(''), jdecode('%2F32.html'), 'true',[],'',''],
	['PAGE','7658',jdecode('About+us'),jdecode(''), jdecode('%2F7658.html'), 'true',[],'',''],
	['PAGE','7180',jdecode('Newsletter'),jdecode(''), jdecode('%2F7180.html'), 'true',[],'',''],
	['PAGE','1374',jdecode('QPAFCU+FAQ'),jdecode(''), jdecode('%2F1374.html'), 'true',[],'',''],
	['PAGE','1383',jdecode('OLQP+Church'),jdecode(''), jdecode('%2F1383.html'), 'true',[],'',''],
	['PAGE','7439',jdecode('Why+a+Church+CU%3F'),jdecode(''), jdecode('%2F7439.html'), 'true',[],'',''],
	['PAGE','7939',jdecode('Church+CUs'),jdecode(''), jdecode('%2F7939.html'), 'true',[],'',''],
	['PAGE','8482',jdecode('Free+Stuff'),jdecode(''), jdecode('%2F8482.html'), 'true',[],'',''],
	['PAGE','9195',jdecode('PayCard+Debit++Card'),jdecode(''), jdecode('%2F9195.html'), 'true',[],'',''],
	['PAGE','9089',jdecode('Loans'),jdecode(''), jdecode('%2F9089.html'), 'true',[],'',''],
	['PAGE','48701',jdecode('Mortgage+Loans'),jdecode(''), jdecode('%2F48701.html'), 'true',[],'',''],
	['PAGE','1088',jdecode('Rates'),jdecode(''), jdecode('%2F1088%2Findex.html'), 'true',[ 
		['PAGE','2056',jdecode('Savings+Rates'),jdecode(''), jdecode('%2F1088%2F2056.html'), 'true',[],'',''],
		['PAGE','8606',jdecode('Full+TIS+Disclosure'),jdecode(''), jdecode('%2F1088%2F8606.html'), 'true',[],'',''],
		['PAGE','2065',jdecode('Loan+Rates'),jdecode(''), jdecode('%2F1088%2F2065.html'), 'true',[],'','']
	],'',''],
	['PAGE','6252',jdecode('Financial+Reports'),jdecode(''), jdecode('%2F6252%2Findex.html'), 'true',[ 
		['PAGE','8347',jdecode('Annual+Reports'),jdecode(''), jdecode('%2F6252%2F8347.html'), 'true',[],'',''],
		['PAGE','1106',jdecode('Monthly+Reports'),jdecode(''), jdecode('%2F6252%2F1106.html'), 'true',[],'','']
	],'',''],
	['PAGE','1079',jdecode('News'),jdecode(''), jdecode('%2F1079.html'), 'true',[],'',''],
	['PAGE','1742',jdecode('QPAFCU+Services'),jdecode(''), jdecode('%2F1742.html'), 'true',[],'',''],
	['PAGE','1751',jdecode('Officials'),jdecode(''), jdecode('%2F1751.html'), 'true',[],'',''],
	['PAGE','2280',jdecode('Directions'),jdecode(''), jdecode('%2F2280.html'), 'true',[],'',''],
	['PAGE','2734',jdecode('Privacy+Notice'),jdecode(''), jdecode('%2F2734.html'), 'true',[],'',''],
	['PAGE','7004',jdecode('EITC'),jdecode(''), jdecode('%2F7004.html'), 'true',[],'',''],
	['PAGE','7734',jdecode('Article+on+Disabled'),jdecode(''), jdecode('%2F7734.html'), 'true',[],'',''],
	['PAGE','8180',jdecode('Emergency+Fund'),jdecode(''), jdecode('%2F8180.html'), 'true',[],'',''],
	['PAGE','8251',jdecode('Youth%2FTeens'),jdecode(''), jdecode('%2F8251.html'), 'true',[],'',''],
	['PAGE','9939',jdecode('Balance+Program'),jdecode(''), jdecode('%2F9939.html'), 'true',[],'',''],
	['PAGE','1760',jdecode('CU_Use'),jdecode(''), jdecode('%2F1760.html'), 'true',[],'',''],
	['PAGE','44701',jdecode('Financial+Calculators'),jdecode(''), jdecode('%2F44701.html'), 'true',[],'',''],
	['PAGE','53701',jdecode('Dan%26%23x27%3Bs+Blog'),jdecode(''), jdecode('%2F53701.html'), 'true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='4A587F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10553';
theSitetree.graphicsetId='10449';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4A587F';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'4A587F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10553',
				graphicsetId: 	'10449',
				contentColor: 	'FFFFFF',
				contentBGColor: '4A587F',
				a_color: 		'4A587F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-849139']={
webappId:    '1501',
documentId:  '32',
internalId:  '849139',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2280',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20111231-152106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1088',
internalId:  '',
customField: '20100724-094039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2065',
internalId:  '',
customField: '20101023-105902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2056',
internalId:  '',
customField: '20111218-190053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7658',
internalId:  '',
customField: '20111031-161330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7180',
internalId:  '',
customField: '20110924-182433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1374',
internalId:  '',
customField: '20111031-161603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1383',
internalId:  '',
customField: '20110627-141425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7439',
internalId:  '',
customField: '20080220-173049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7939',
internalId:  '',
customField: '20110627-214719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8482',
internalId:  '',
customField: '20110627-142157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9195',
internalId:  '',
customField: '20110924-160503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9089',
internalId:  '',
customField: '20101010-124058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8606',
internalId:  '',
customField: '20111218-190410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6252',
internalId:  '',
customField: '20080511-223232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8347',
internalId:  '',
customField: '20110423-092559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1106',
internalId:  '',
customField: '20111106-093016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1079',
internalId:  '',
customField: '20110627-220911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1742',
internalId:  '',
customField: '20111031-161927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1751',
internalId:  '',
customField: '20110423-132832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2280',
internalId:  '',
customField: '20080719-102131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2734',
internalId:  '',
customField: '20101024-112447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7004',
internalId:  '',
customField: '20071130-231503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7734',
internalId:  '',
customField: '20080221-165447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8180',
internalId:  '',
customField: '20080223-153854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8251',
internalId:  '',
customField: '20080223-161839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9939',
internalId:  '',
customField: '20110627-213247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1760',
internalId:  '',
customField: '20110612-161304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20110627-143255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20110627-210002'
};
webappMappings['7050']=webappMappings['7050-3173']={
webappId:    '7050',
documentId:  '53701',
internalId:  '3173',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20101023-135118'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INE9JI';
var companyName   = 'Queen+of+Peace+Arlington+Federal+Credit+Union++QPAFCU';
var htmlTitle	  = 'Queen+of+Peace+Arlington+Federal+Credit+Union';
var metaKeywords  = 'credit+union%2C+church%2C+savings%2C+loans%2C+cooperative%2C+faith+based%2C+socially+conscious+investing%2C+lending';
var metaContents  = 'The+credit+union+offers+savings%2C+loans+and+other+services+to+its+members.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

