/* [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 theSitetree=[ 
	['PAGE','5301',jdecode('PFBC+Home'),jdecode(''),'/5301/index.html','true',[ 
		['PAGE','9101',jdecode('Meeting+Times'),jdecode(''),'/5301/9101.html','true',[],'']
	],''],
	['PAGE','32101',jdecode('NW+FIRE+Conference'),jdecode(''),'/32101/index.html','true',[ 
		['PAGE','34001',jdecode('FIRE'),jdecode(''),'/32101/34001.html','true',[],''],
		['PAGE','33301',jdecode('Speaker+Biographies'),jdecode(''),'/32101/33301.html','true',[],''],
		['PAGE','34501',jdecode('Schedule'),jdecode(''),'/32101/34501.html','true',[],''],
		['PAGE','34522',jdecode('Conference+Prices'),jdecode(''),'/32101/34522.html','true',[],''],
		['PAGE','34543',jdecode('Registration'),jdecode(''),'/32101/34543.html','true',[],''],
		['PAGE','33801',jdecode('Meeting+Facilities'),jdecode(''),'/32101/33801.html','true',[],''],
		['PAGE','5352',jdecode('Conference+Q+%26+A'),jdecode(''),'/32101/5352.html','true',[],''],
		['PAGE','14601',jdecode('the+blog+%40+pfbc'),jdecode(''),'/32101/14601.html','false',[],'']
	],''],
	['PAGE','5415',jdecode('About+PFBC'),jdecode(''),'/5415/index.html','true',[ 
		['PAGE','5436',jdecode('Beliefs'),jdecode(''),'/5415/5436.html','true',[],''],
		['PAGE','5457',jdecode('Priorities'),jdecode(''),'/5415/5457.html','true',[],''],
		['PAGE','5520',jdecode('PFBC+Bylaws'),jdecode(''),'/5415/5520.html','true',[],'']
	],''],
	['PAGE','5541',jdecode('About+Jesus+Christ'),jdecode(''),'/5541.html','true',[],''],
	['PAGE','9122',jdecode('Links'),jdecode(''),'/9122.html','true',[],''],
	['PAGE','5562',jdecode('Contact+Information'),jdecode(''),'/5562/index.html','true',[ 
		['PAGE','5394',jdecode('Pastoral+Leaders'),jdecode(''),'/5562/5394.html','true',[],''],
		['PAGE','5625',jdecode('Address%2FTelephone'),jdecode(''),'/5562/5625.html','true',[],''],
		['PAGE','5604',jdecode('Location%2FDirections'),jdecode(''),'/5562/5604.html','true',[],''],
		['PAGE','5646',jdecode('Email+Us'),jdecode(''),'/5562/5646.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Shadows';
theSitetree.paletteFamily='FFB573';
theSitetree.keyvisualId='1835';
theSitetree.keyvisualName='generationen.jpg';
theSitetree.fontsetId='316';
theSitetree.graphicsetId='368';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFDAB9';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Shadows',
				paletteFamily: 	'FFB573',
				keyvisualId: 	'1835',
				keyvisualName: 	'generationen.jpg',
				fontsetId: 		'316',
				graphicsetId: 	'368',
				contentColor: 	'000000',
				contentBGColor: 'FFDAB9',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFB573',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5352aendu0in2xye']={
webappId:    '1002',
documentId:  '5352',
internalId:  '5352aendu0in2xye',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-5142']={
webappId:    '7050',
documentId:  '14601',
internalId:  '5142',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '5604',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7008']=webappMappings['7008-4899']={
webappId:    '7008',
documentId:  '5646',
internalId:  '4899',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20100531-224654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5415',
internalId:  '',
customField: '20090204-193801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5562',
internalId:  '',
customField: '20080610-220407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5352',
internalId:  '',
customField: '20100617-133851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20080916-182058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5394',
internalId:  '',
customField: '20091104-183226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5436',
internalId:  '',
customField: '20091104-192552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5457',
internalId:  '',
customField: '20100105-202049'
};
webappMappings['1501']=webappMappings['1501-14334197']={
webappId:    '1501',
documentId:  '5301',
internalId:  '14334197',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20100709-224942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5520',
internalId:  '',
customField: '20080930-202951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5541',
internalId:  '',
customField: '20080609-224115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20090622-102953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9122',
internalId:  '',
customField: '20100427-022735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5604',
internalId:  '',
customField: '20080610-143731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5625',
internalId:  '',
customField: '20081214-134417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5646',
internalId:  '',
customField: '20100617-135314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20100709-225140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20100709-225237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20100709-224654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20100723-213406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34522',
internalId:  '',
customField: '20100723-213406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34543',
internalId:  '',
customField: '20100723-213406'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2XYE';
var companyName   = 'Providence+Family+Baptist+Church';
var htmlTitle	  = 'Providence+Family+Baptist+Church';
var metaKeywords  = '44th%2C+avenue%2C+baptist%2C+church%2C+Lynnwood%2C+Washington%2C+christian%2C+jesus%2C+christ%2C+holy%2C+spirit%2C+elder%2C+elders%2C+pastor%2C+gregory%2C+dejarnette%2C+bart%2C+knight%2C+stan%2C+bibby%2C+seattle%2C+bible%2C+leader%2C+women%2C+trinity%2C+pilgrim%2C+philosophy%2C+ministry%2C+god%2C+southern%2C+convention%2C+puget%2C+sound%2C+association%2C+northwest%2C+family%2C+integrated%2C+friendly%2C+praise%2C+worship%2C+seeker%2C+Providence';
var metaContents  = 'Providence+Family+Baptist+Church';
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();
};
