/* [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','701',jdecode('Kirkland+Memorial+COGIC'),jdecode(''), jdecode('%2F701%2Findex.html'), 'true',[ 
		['PAGE','14601',jdecode('Pastor+Porter%26%23x27%3Bs+Welcome'),jdecode(''), jdecode('%2F701%2F14601.html'), 'true',[],'',''],
		['PAGE','200752',jdecode('Our+Vision'),jdecode(''), jdecode('%2F701%2F200752.html'), 'true',[],'',''],
		['PAGE','752',jdecode('Our+Ministry+Mission'),jdecode(''), jdecode('%2F701%2F752.html'), 'true',[],'',''],
		['PAGE','794',jdecode('Our+Beliefs'),jdecode(''), jdecode('%2F701%2F794.html'), 'true',[],'',''],
		['PAGE','70794',jdecode('Kingdom+Building+Activities'),jdecode(''), jdecode('%2F701%2F70794.html'), 'true',[],'','']
	],'',''],
	['PAGE','8201',jdecode('Worship+and+Services+Schedule'),jdecode(''), jdecode('%2F8201%2Findex.html'), 'true',[ 
		['PAGE','182952',jdecode('Saturday+Prayer+Schedule'),jdecode(''), jdecode('%2F8201%2F182952.html'), 'true',[],'','']
	],'',''],
	['PAGE','202852',jdecode('ABC%26%23x27%3Bs+of+Giving+Your+Life+to+Christ+'),jdecode(''), jdecode('%2F202852.html'), 'true',[],'',''],
	['PAGE','232063',jdecode('2012+Ministry+Calendar'),jdecode(''), jdecode('%2F232063.html'), 'true',[],'',''],
	['PAGE','222263',jdecode('Weekend+Events'),jdecode(''), jdecode('%2F222263.html'), 'true',[],'',''],
	['PAGE','815',jdecode('Departments'),jdecode(''), jdecode('%2F815%2Findex.html'), 'true',[ 
		['PAGE','100752',jdecode('Sunday+School+Department'),jdecode(''), jdecode('%2F815%2F100752.html'), 'true',[],'',''],
		['PAGE','836',jdecode('Elders+%26+Ministers'),jdecode(''), jdecode('%2F815%2F836.html'), 'true',[],'',''],
		['PAGE','68752',jdecode('Missionary+Circle'),jdecode(''), jdecode('%2F815%2F68752.html'), 'true',[],'',''],
		['PAGE','66173',jdecode('Deacon+Board'),jdecode(''), jdecode('%2F815%2F66173.html'), 'true',[],'',''],
		['PAGE','857',jdecode('Men%26%23x27%3Bs+Ministry'),jdecode(''), jdecode('%2F815%2F857.html'), 'true',[],'',''],
		['PAGE','66194',jdecode('Women%26%23x27%3Bs+Ministry'),jdecode(''), jdecode('%2F815%2F66194.html'), 'true',[],'',''],
		['PAGE','66215',jdecode('Youth+Ministry'),jdecode(''), jdecode('%2F815%2F66215.html'), 'true',[],'',''],
		['PAGE','66236',jdecode('Music+Ministry'),jdecode(''), jdecode('%2F815%2F66236.html'), 'true',[],'','']
	],'',''],
	['PAGE','198852',jdecode('Employment+and+Career+Growth+Group'),jdecode(''), jdecode('%2F198852%2Findex.html'), 'true',[ 
		['PAGE','198873',jdecode('Employment+%26+Career+Blog+'),jdecode(''), jdecode('%2F198852%2F198873.html'), 'true',[],'','']
	],'',''],
	['PAGE','114852',jdecode('Groups+For+Growth%2C+Service+and+Fun'),jdecode(''), jdecode('%2F114852%2Findex.html'), 'true',[ 
		['PAGE','157773',jdecode('Personal+Growth+Groups'),jdecode(''), jdecode('%2F114852%2F157773.html'), 'true',[],'',''],
		['PAGE','157794',jdecode('Member+Care+Groups'),jdecode(''), jdecode('%2F114852%2F157794.html'), 'true',[],'',''],
		['PAGE','157752',jdecode('Fun+Activities+Groups'),jdecode(''), jdecode('%2F114852%2F157752.html'), 'true',[],'','']
	],'',''],
	['PAGE','176252',jdecode('Opportunities+to+Get+Involved'),jdecode(''), jdecode('%2F176252.html'), 'true',[],'',''],
	['PAGE','138452',jdecode('Local+Weather+and+Traffic'),jdecode(''), jdecode('%2F138452.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('Private+Prayer+Requests+To+Pastor'),jdecode(''), jdecode('%2F7201%2Findex.html'), 'true',[ 
		['PAGE','61552',jdecode('Online+Prayer+Management+Tool'),jdecode(''), jdecode('%2F7201%2F61552.html'), 'true',[],'','']
	],'',''],
	['PAGE','15001',jdecode('Your+Directions+To+The+Praisezone'),jdecode(''), jdecode('%2F15001.html'), 'true',[],'',''],
	['PAGE','941',jdecode('Contact+Us'),jdecode(''), jdecode('%2F941.html'), 'true',[],'',''],
	['PAGE','920',jdecode('Subscribe+To+Inspirational+Messages+'),jdecode(''), jdecode('%2F920.html'), 'true',[],'',''],
	['PAGE','899',jdecode('Membership+Growth+and+Retention'),jdecode(''), jdecode('%2F899%2Findex.html'), 'true',[ 
		['PAGE','53952',jdecode('Membership+Support+%26+Services'),jdecode(''), jdecode('%2F899%2F53952.html'), 'true',[],'',''],
		['PAGE','19601',jdecode('Seminars+%26+Self-Help+Sessions'),jdecode(''), jdecode('%2F899%2F19601.html'), 'true',[],'',''],
		['PAGE','130252',jdecode('Seminar+Downloads'),jdecode(''), jdecode('%2F899%2F130252.html'), 'true',[],'',''],
		['PAGE','983',jdecode('Christian+Website+Links'),jdecode(''), jdecode('%2F899%2F983.html'), 'true',[],'','']
	],'',''],
	['PAGE','195852',jdecode('Fasting+and+Praying+Guides'),jdecode(''), jdecode('%2F195852.html'), 'true',[],'',''],
	['ITEM','227663',jdecode('Great+Commission+District'),jdecode(''), jdecode('http%3A%2F%2Fwww.greatcommissiondistrict.org%2F'), 'true',[],'','_blank'],
	['PAGE','42852',jdecode('Ministry+Affiliations'),jdecode(''), jdecode('%2F42852%2Findex.html'), 'true',[ 
		['PAGE','99452',jdecode('C.O.G.I.C.+History'),jdecode(''), jdecode('%2F42852%2F99452.html'), 'true',[],'',''],
		['PAGE','100252',jdecode('C.O.G.I.C.+Doctrine'),jdecode(''), jdecode('%2F42852%2F100252.html'), 'true',[],'','']
	],'',''],
	['PAGE','46552',jdecode('Exciting+Job+Opportunities'),jdecode(''), jdecode('%2F46552.html'), 'true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1745';
theSitetree.keyvisualName='familie.jpg';
theSitetree.fontsetId='294';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp14-sbtsan',
  product: 'WSCSYSSSSLYTCPI5'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1745',
				keyvisualName: 	'familie.jpg',
				fontsetId: 		'294',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '15001',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232063',
internalId:  '',
customField: '20120207-015004'
};
webappMappings['7008']=webappMappings['7008-812']={
webappId:    '7008',
documentId:  '7201',
internalId:  '812',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20120128-185717'
};
webappMappings['1501']=webappMappings['1501-3254121']={
webappId:    '1501',
documentId:  '701',
internalId:  '3254121',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114852',
internalId:  '',
customField: '20090211-230956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157794',
internalId:  '',
customField: '20090211-225938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157752',
internalId:  '',
customField: '20090209-233951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157773',
internalId:  '',
customField: '20090422-065138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20120126-125743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222263',
internalId:  '',
customField: '20120205-012758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20110407-230414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20070819-174207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20120202-000128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176252',
internalId:  '',
customField: '20090101-233219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138452',
internalId:  '',
customField: '20090101-204513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20080419-090300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61552',
internalId:  '',
customField: '20090113-102321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20070325-223012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195852',
internalId:  '',
customField: '20110412-000532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20080318-194059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20120118-230601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53952',
internalId:  '',
customField: '20080315-111739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20080825-185129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130252',
internalId:  '',
customField: '20080328-162551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20080703-164550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20080408-220637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20120205-012541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68752',
internalId:  '',
customField: '20080327-190502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66173',
internalId:  '',
customField: '20120108-220301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20080509-205530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66194',
internalId:  '',
customField: '20120205-004327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66215',
internalId:  '',
customField: '20090320-235014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66236',
internalId:  '',
customField: '20090320-234929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100752',
internalId:  '',
customField: '20120205-012237'
};
webappMappings['7050']=webappMappings['7050-1517']={
webappId:    '7050',
documentId:  '198873',
internalId:  '1517',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200752',
internalId:  '',
customField: '20110102-151223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70794',
internalId:  '',
customField: '20110212-205702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20120118-230407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42852',
internalId:  '',
customField: '20120118-225640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99452',
internalId:  '',
customField: '20080210-000036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100252',
internalId:  '',
customField: '20080318-193833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46552',
internalId:  '',
customField: '20080310-105759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182952',
internalId:  '',
customField: '20090210-015725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198852',
internalId:  '',
customField: '20090422-075406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198873',
internalId:  '',
customField: '20090422-220329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202852',
internalId:  '',
customField: '20090507-133845'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3I2Z';
var companyName   = 'KIRKLAND+MEMORIAL+CHURCH+OF+GOD+IN+CHRIST';
var htmlTitle	  = 'THE+PRAISE+ZONE+COGIC+-+CAMP+SPRINGS%2C+MARYLAND';
var metaKeywords  = 'Church+of+God+in+Christ%2C+Kirkland+COGIC%2CHoliness%2C+Gospel%2C+Outreach%2C+Praising+God%2C+Praise+Zone%2C+Embracing+People%2C+Inspirational%2C+Washington+DC+Jurisdicton%2C+Saved%2C+Baptismal%2C+Holy+Ghost%2C+Bishop+Patterson%2C+Spiritual%2C+Baptist%2C+AME%2C+Non-Denomination%2C+Missionaries%2C+Elders%2C+Church%2C+Churches+in+Maryland%2C+Churches+in+Camp+Springs%2C+Churches+in+Washington+DC+Church%2C+Churches+in+Suitland%2C+Maryland%2C+COGIC+in+Maryland%2C+COGIC+in+Washington%2C+DC%2C+COGIC+in+Virginia%2C+Small+Groups%2C+COGIC%2C+Church+of+God+in+Christ%2C+Virginia%2C+Northern+Virginia%2C+Great+Commission+District%2C+District+Superintendent';
var metaContents  = 'Praise+Zone%2C+Church+of+God+and+Christ%2C+Camp+Springs+Maryland%2C+Suitland+Maryland%2C+Elder+David+J.+Porter%2C+Praising+God%2C+Embracing+People%2C+and+Changing+Lives%2C+Maryland+Church%2C+Camp+Springs+Church%2C+Waldorf+Church%2C+Washington%2C+DC+Church%2C+Kirkland+Memorial+Church+of+God+in+Christ%2C+PRAISEZONE%2C+COGIC+Washington+DC%2C+COGIC+Maryland%2C+COGIC+Virginia%2C+Jesus%2C+AIM+Conference%2C+Suitland+COGIC%2C+COGIC%2C++church+outreach%2C+saints%2C+holy+convocation%2C+Church+of+God+in+Christ%2C+Great+Commission+District%2C+District+Superintendent';
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();
};

