/* [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','1701',jdecode('Home'),jdecode(''), jdecode('%2F1701.html'), 'true',[],'',''],
	['PAGE','2301',jdecode('Our+History'),jdecode(''), jdecode('%2F2301.html'), 'true',[],'',''],
	['PAGE','63331',jdecode('Anniversary+Video'),jdecode(''), jdecode('%2F63331.html'), 'true',[],'',''],
	['PAGE','56831',jdecode('What+We+Believe'),jdecode(''), jdecode('%2F56831%2Findex.html'), 'true',[ 
		['PAGE','59131',jdecode('++++How+to+Know+Jesus'),jdecode(''), jdecode('%2F56831%2F59131.html'), 'true',[],'','']
	],'',''],
	['PAGE','25751',jdecode('Our+Staff'),jdecode(''), jdecode('%2F25751%2Findex.html'), 'true',[ 
		['PAGE','26251',jdecode('++Samuel+G.+Catoe'),jdecode(''), jdecode('%2F25751%2F26251.html'), 'true',[],'',''],
		['PAGE','48052',jdecode('++Wendi+Humphries'),jdecode(''), jdecode('%2F25751%2F48052.html'), 'true',[],'',''],
		['PAGE','48073',jdecode('++Jeff+Stilwell'),jdecode(''), jdecode('%2F25751%2F48073.html'), 'true',[],'',''],
		['PAGE','48031',jdecode('++Magnus+Walker'),jdecode(''), jdecode('%2F25751%2F48031.html'), 'true',[],'','']
	],'',''],
	['PAGE','68731',jdecode('Happening+Now%21'),jdecode(''), jdecode('%2F68731.html'), 'true',[],'',''],
	['PAGE','2322',jdecode('Opportunities'),jdecode(''), jdecode('%2F2322%2Findex.html'), 'true',[ 
		['PAGE','31731',jdecode('Sunday+School'),jdecode(''), jdecode('%2F2322%2F31731.html'), 'true',[],'',''],
		['PAGE','31752',jdecode('Sunday+Worship'),jdecode(''), jdecode('%2F2322%2F31752.html'), 'true',[],'',''],
		['PAGE','31831',jdecode('Midweek+Service'),jdecode(''), jdecode('%2F2322%2F31831.html'), 'true',[],'',''],
		['PAGE','40831',jdecode('IGNITE%21'),jdecode(''), jdecode('%2F2322%2F40831.html'), 'true',[],'','']
	],'',''],
	['PAGE','61231',jdecode('What+to+Expect'),jdecode(''), jdecode('%2F61231.html'), 'true',[],'',''],
	['PAGE','2406',jdecode('Music+%26+Worship+'),jdecode(''), jdecode('%2F2406.html'), 'true',[],'',''],
	['PAGE','2385',jdecode('Children%26%23x27%3Bs+Ministry'),jdecode(''), jdecode('%2F2385%2Findex.html'), 'true',[ 
		['PAGE','29371',jdecode('Fall+Festival+'),jdecode(''), jdecode('%2F2385%2F29371.html'), 'true',[],'','']
	],'',''],
	['PAGE','2364',jdecode('Student+Ministry'),jdecode(''), jdecode('%2F2364%2Findex.html'), 'true',[ 
		['PAGE','13111',jdecode('Student+Ministry+PIX%21'),jdecode(''), jdecode('%2F2364%2F13111.html'), 'true',[],'',''],
		['PAGE','6101',jdecode('Atlanta+Fest+'),jdecode(''), jdecode('%2F2364%2F6101.html'), 'true',[],'',''],
		['PAGE','36431',jdecode('Whataburger'),jdecode(''), jdecode('%2F2364%2F36431.html'), 'true',[],'',''],
		['PAGE','27251',jdecode('Carowinds%21'),jdecode(''), jdecode('%2F2364%2F27251.html'), 'true',[],'',''],
		['PAGE','13711',jdecode('Lock+In+%232'),jdecode(''), jdecode('%2F2364%2F13711.html'), 'true',[],'',''],
		['PAGE','25041',jdecode('Lock+In+%231'),jdecode(''), jdecode('%2F2364%2F25041.html'), 'true',[],'','']
	],'',''],
	['PAGE','69731',jdecode('Women%26%23x27%3Bs+Ministry'),jdecode(''), jdecode('%2F69731.html'), 'true',[],'',''],
	['PAGE','61252',jdecode('Senior+Adult+Ministry'),jdecode(''), jdecode('%2F61252.html'), 'true',[],'',''],
	['PAGE','53131',jdecode('MISSIONS%21'),jdecode(''), jdecode('%2F53131.html'), 'true',[],'',''],
	['PAGE','55131',jdecode('Our+Newsletter+Online'),jdecode(''), jdecode('%2F55131.html'), 'true',[],'',''],
	['PAGE','28271',jdecode('Directions'),jdecode(''), jdecode('%2F28271.html'), 'true',[],'',''],
	['PAGE','60631',jdecode('Contact+Us'),jdecode(''), jdecode('%2F60631.html'), 'true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='A9A975';
theSitetree.keyvisualId='7854';
theSitetree.keyvisualName='kv_7854.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12294';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCC99';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'A9A975',
				keyvisualId: 	'7854',
				keyvisualName: 	'kv_7854.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12294',
				contentColor: 	'000000',
				contentBGColor: 'CCCC99',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'A9A975',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20120115-164620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2322',
internalId:  '',
customField: '20120201-103959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20110923-162834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61231',
internalId:  '',
customField: '20110924-124836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2364',
internalId:  '',
customField: '20110916-090046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2385',
internalId:  '',
customField: '20110819-090959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2406',
internalId:  '',
customField: '20110925-160053'
};
webappMappings['1501']=webappMappings['1501-15610820']={
webappId:    '1501',
documentId:  '1701',
internalId:  '15610820',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-f3b922fc6038ad42fa4c126a0f6959cf']={
webappId:    '7060',
documentId:  '6101',
internalId:  'f3b922fc6038ad42fa4c126a0f6959cf',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20110923-092525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13111',
internalId:  '',
customField: '20091224-142230'
};
webappMappings['7060']=webappMappings['7060-0fa3784a186cfd5dbb8e400237c33d0e']={
webappId:    '7060',
documentId:  '13711',
internalId:  '0fa3784a186cfd5dbb8e400237c33d0e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13711',
internalId:  '',
customField: '20091224-140203'
};
webappMappings['7060']=webappMappings['7060-4e15de039d0e950ea71696eaf37224aa']={
webappId:    '7060',
documentId:  '25041',
internalId:  '4e15de039d0e950ea71696eaf37224aa',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25041',
internalId:  '',
customField: '20091227-155606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53131',
internalId:  '',
customField: '20110819-101746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48031',
internalId:  '',
customField: '20111019-112557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25751',
internalId:  '',
customField: '20110924-123534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26251',
internalId:  '',
customField: '20111004-085108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55131',
internalId:  '',
customField: '20120201-104239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56831',
internalId:  '',
customField: '20110925-161410'
};
webappMappings['7060']=webappMappings['7060-1004cb8208e25175ea74a2dde24a823f']={
webappId:    '7060',
documentId:  '27251',
internalId:  '1004cb8208e25175ea74a2dde24a823f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27251',
internalId:  '',
customField: '20110923-092604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28271',
internalId:  '',
customField: '20110925-161348'
};
webappMappings['7060']=webappMappings['7060-515bbf6573671ad878c7928fc2bda587']={
webappId:    '7060',
documentId:  '29371',
internalId:  '515bbf6573671ad878c7928fc2bda587',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29371',
internalId:  '',
customField: '20110927-092440'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31731',
internalId:  '',
customField: '20110818-125142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31752',
internalId:  '',
customField: '20100113-110919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31831',
internalId:  '',
customField: '20110818-125903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40831',
internalId:  '',
customField: '20110928-083831'
};
webappMappings['7060']=webappMappings['7060-4801dd51e2768df26f271a3d618d1a05']={
webappId:    '7060',
documentId:  '36431',
internalId:  '4801dd51e2768df26f271a3d618d1a05',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36431',
internalId:  '',
customField: '20100325-185224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59131',
internalId:  '',
customField: '20110924-124432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48073',
internalId:  '',
customField: '20111004-085018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48052',
internalId:  '',
customField: '20110925-161248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60631',
internalId:  '',
customField: '20110924-125308'
};
webappMappings['7008']=webappMappings['7008-26597']={
webappId:    '7008',
documentId:  '60631',
internalId:  '26597',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61252',
internalId:  '',
customField: '20111004-091606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63331',
internalId:  '',
customField: '20110924-121622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68731',
internalId:  '',
customField: '20120201-104140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69731',
internalId:  '',
customField: '20111004-091126'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHVBA';
var companyName   = 'Park+Street+Baptist+Church';
var htmlTitle	  = 'Park+Street+Baptist+Church+-+What+A+Fellowship%2C+What+A+Joy+Divine';
var metaKeywords  = '';
var metaContents  = '';
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();
};

