/* [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','6301',jdecode('Welcome'),jdecode(''), jdecode('%2F6301.html'), 'true',[],'',''],
	['PAGE','24112',jdecode('Picture+Pages'),jdecode(''), jdecode('%2F24112%2Findex.html'), 'true',[ 
		['PAGE','20112',jdecode('Fun%2C+Food+and+Fellowship'),jdecode(''), jdecode('%2F24112%2F20112.html'), 'true',[],'',''],
		['PAGE','42012',jdecode('White+Top+Mission+Trips'),jdecode(''), jdecode('%2F24112%2F42012.html'), 'true',[],'','']
	],'',''],
	['PAGE','44212',jdecode('Newsletter'),jdecode(''), jdecode('%2F44212.html'), 'true',[],'',''],
	['ITEM','62112',jdecode('Living+River+Camp+Link'),jdecode(''), jdecode('http%3A%2F%2Flivingriver.org'), 'true',[],'','_blank'],
	['PAGE','19712',jdecode('Pastor%26%23x27%3Bs+Sermons'),jdecode(''), jdecode('%2F19712%2Findex.html'), 'true',[ 
		['PAGE','57412',jdecode('December+4%2C+2011++%22This+is+just+the+beginning%22'),jdecode(''), jdecode('%2F19712%2F57412.html'), 'true',[],'',''],
		['PAGE','57433',jdecode('December+11%2C+2011++%22Wounded%22'),jdecode(''), jdecode('%2F19712%2F57433.html'), 'true',[],'',''],
		['PAGE','58912',jdecode('January+8%2C+2012%2C+%22Crossing+the+Jordan%22'),jdecode(''), jdecode('%2F19712%2F58912.html'), 'true',[],'',''],
		['PAGE','60212',jdecode('January+15%2C+2012%2C+%22The+Snarky+Disciple%22'),jdecode(''), jdecode('%2F19712%2F60212.html'), 'true',[],'',''],
		['PAGE','62512',jdecode('January+29%2C+2012%2C+%26%23x27%3BYou+really+gotta+hold+on+me%22'),jdecode(''), jdecode('%2F19712%2F62512.html'), 'true',[],'',''],
		['PAGE','62533',jdecode('February+5%2C+2012%2C+%22Pyroxia%22'),jdecode(''), jdecode('%2F19712%2F62533.html'), 'true',[],'',''],
		['PAGE','66812',jdecode('February+12%2C+2012%2C+%22I+double+dog+dare+you%22'),jdecode(''), jdecode('%2F19712%2F66812.html'), 'true',[],'',''],
		['PAGE','66833',jdecode('February+19%2C+2012%2C+%22Changed+from+Glory+into+Glory%22'),jdecode(''), jdecode('%2F19712%2F66833.html'), 'true',[],'','']
	],'',''],
	['PAGE','18912',jdecode('Church+Mission+Statement'),jdecode(''), jdecode('%2F18912.html'), 'true',[],'',''],
	['PAGE','6373',jdecode('Upcoming+Events'),jdecode(''), jdecode('%2F6373.html'), 'true',[],'',''],
	['PAGE','19512',jdecode('Ministries'),jdecode(''), jdecode('%2F19512.html'), 'true',[],'',''],
	['PAGE','16812',jdecode('Ambassadors'),jdecode(''), jdecode('%2F16812.html'), 'true',[],'',''],
	['PAGE','26012',jdecode('Liturgists'),jdecode(''), jdecode('%2F26012.html'), 'true',[],'',''],
	['PAGE','18212',jdecode('Communion+Servers'),jdecode(''), jdecode('%2F18212.html'), 'true',[],'',''],
	['PAGE','16833',jdecode('Community+Children%26%23x27%3Bs+Choir'),jdecode(''), jdecode('%2F16833.html'), 'true',[],'',''],
	['PAGE','27312',jdecode('Presbyterian+Women+'),jdecode(''), jdecode('%2F27312.html'), 'true',[],'',''],
	['PAGE','26912',jdecode('Garden+News'),jdecode(''), jdecode('%2F26912.html'), 'true',[],'',''],
	['PAGE','6394',jdecode('Contact'),jdecode(''), jdecode('%2F6394.html'), 'true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Favor';
theSitetree.paletteFamily='9CA3D3';
theSitetree.keyvisualId='7344';
theSitetree.keyvisualName='kv_7344.jpg';
theSitetree.fontsetId='16467';
theSitetree.graphicsetId='12163';
theSitetree.contentColor='323232';
theSitetree.contentBGColor='E4E7FB';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Favor',
				paletteFamily: 	'9CA3D3',
				keyvisualId: 	'7344',
				keyvisualName: 	'kv_7344.jpg',
				fontsetId: 		'16467',
				graphicsetId: 	'12163',
				contentColor: 	'323232',
				contentBGColor: 'E4E7FB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20120116-152628'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20120219-163917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6394',
internalId:  '',
customField: '20110110-125227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16812',
internalId:  '',
customField: '20120219-162524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16833',
internalId:  '',
customField: '20120219-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18212',
internalId:  '',
customField: '20120211-180252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18912',
internalId:  '',
customField: '20110410-185615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19512',
internalId:  '',
customField: '20110410-184953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19712',
internalId:  '',
customField: '20120219-164043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24112',
internalId:  '',
customField: '20110716-194531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20112',
internalId:  '',
customField: '20110522-142718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58912',
internalId:  '',
customField: '20120108-170750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26912',
internalId:  '',
customField: '20120211-180815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60212',
internalId:  '',
customField: '20120116-152235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26012',
internalId:  '',
customField: '20111106-200731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27312',
internalId:  '',
customField: '20120219-163416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57412',
internalId:  '',
customField: '20111226-104148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62512',
internalId:  '',
customField: '20120211-170709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62533',
internalId:  '',
customField: '20120211-173022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66812',
internalId:  '',
customField: '20120219-155059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57433',
internalId:  '',
customField: '20111226-105149'
};
webappMappings['1501']=webappMappings['1501-17397306']={
webappId:    '1501',
documentId:  '6301',
internalId:  '17397306',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42012',
internalId:  '',
customField: '20120108-175050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44212',
internalId:  '',
customField: '20120219-160550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66833',
internalId:  '',
customField: '20120219-155824'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CNV6';
var companyName   = 'Westminster+Presbyterian+Church+%28USA%29+';
var htmlTitle	  = 'Westminster+Presbyterian+Church+%28USA%29++Montgomery%2C+Alabama';
var metaKeywords  = 'Westminster+Presbyterian+Church%2C++PCUSA%2C++Montgomery%2C+Alabama%2C+Westminster+Community+Children%27s+Choir%2C+WCCC%2C+Children%27s+Choir%2C+Community+Choir%2C+Westminster%2C+Ministries%2C+Upcoming+Events%2C+Pastor%27s+Corner+%2C+Sermons';
var metaContents  = 'Westminster+Presbyterian+Church%2C+Montgomery%2C+Alabama%2C+Community+Choir%2C+Childrens+Choir%0APCUSA%2C+Westminster+PCUSA%2C+Children%27s+Community+Choir%2C+Ministries%2C++Upcoming+Events.+Pastor%27s+Corner%2C+Sermons';
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();
};

