/* [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(''),'/701/index.html','true',[ 
		['PAGE','14601',jdecode('Pastor+Porter%26%23x27%3Bs+Welcome'),jdecode(''),'/701/14601.html','true',[],'',''],
		['PAGE','200752',jdecode('Our+Vision'),jdecode(''),'/701/200752.html','true',[],'',''],
		['PAGE','752',jdecode('Our+Ministry+Mission'),jdecode(''),'/701/752.html','true',[],'',''],
		['PAGE','794',jdecode('Our+Beliefs'),jdecode(''),'/701/794.html','true',[],'',''],
		['PAGE','70794',jdecode('Kingdom+Building+Activities'),jdecode(''),'/701/70794.html','true',[],'','']
	],'',''],
	['PAGE','8201',jdecode('Worship+and+Services+Schedule'),jdecode(''),'/8201/index.html','true',[ 
		['PAGE','182952',jdecode('Saturday+Prayer+Schedule'),jdecode(''),'/8201/182952.html','true',[],'','']
	],'',''],
	['PAGE','202852',jdecode('ABC%26%23x27%3Bs+of+Giving+Your+Life+to+Christ+'),jdecode(''),'/202852.html','true',[],'',''],
	['PAGE','70752',jdecode('Annual+Calendar+of+Events+'),jdecode(''),'/70752.html','true',[],'',''],
	['PAGE','201852',jdecode('Praise+Zone+Guest+Survey'),jdecode(''),'/201852.html','true',[],'',''],
	['PAGE','198852',jdecode('Employment+and+Career+Growth+Group'),jdecode(''),'/198852/index.html','true',[ 
		['PAGE','198873',jdecode('Employment+%26+Career+Blog+'),jdecode(''),'/198852/198873.html','true',[],'','']
	],'',''],
	['PAGE','114852',jdecode('Groups+For+Growth%2C+Service+and+Fun'),jdecode(''),'/114852/index.html','true',[ 
		['PAGE','157773',jdecode('Personal+Growth+Groups'),jdecode(''),'/114852/157773.html','true',[],'',''],
		['PAGE','157794',jdecode('Member+Care+Groups'),jdecode(''),'/114852/157794.html','true',[],'',''],
		['PAGE','157752',jdecode('Fun+Activities+Groups'),jdecode(''),'/114852/157752.html','true',[],'','']
	],'',''],
	['PAGE','176252',jdecode('Opportunities+to+Get+Involved'),jdecode(''),'/176252.html','true',[],'',''],
	['PAGE','138452',jdecode('Local+Weather+and+Traffic'),jdecode(''),'/138452.html','true',[],'',''],
	['PAGE','7201',jdecode('Private+Prayer+Requests+To+Pastor'),jdecode(''),'/7201/index.html','true',[ 
		['PAGE','61552',jdecode('Online+Prayer+Management+Tool'),jdecode(''),'/7201/61552.html','true',[],'','']
	],'',''],
	['PAGE','15001',jdecode('Your+Directions+To+The+Praisezone'),jdecode(''),'/15001.html','true',[],'',''],
	['PAGE','920',jdecode('Subscribe+To+Inspirational+Messages+'),jdecode(''),'/920.html','true',[],'',''],
	['PAGE','899',jdecode('Membership+Growth+and+Retention'),jdecode(''),'/899/index.html','true',[ 
		['PAGE','136552',jdecode('Survey+of+Kirkland+Guests'),jdecode(''),'/899/136552.html','true',[],'',''],
		['PAGE','53952',jdecode('Membership+Support+%26+Services'),jdecode(''),'/899/53952.html','true',[],'',''],
		['PAGE','19601',jdecode('Seminars+%26+Self-Help+Sessions'),jdecode(''),'/899/19601.html','true',[],'',''],
		['PAGE','130252',jdecode('Seminar+Downloads'),jdecode(''),'/899/130252.html','true',[],'',''],
		['PAGE','983',jdecode('Christian+Website+Links'),jdecode(''),'/899/983.html','true',[],'','']
	],'',''],
	['PAGE','815',jdecode('Departments'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','836',jdecode('Elders+%26+Ministers'),jdecode(''),'/815/836.html','true',[],'',''],
		['PAGE','68752',jdecode('Missionary+Circle'),jdecode(''),'/815/68752.html','true',[],'',''],
		['PAGE','66173',jdecode('Deacon+Board'),jdecode(''),'/815/66173.html','true',[],'',''],
		['PAGE','857',jdecode('Men%26%23x27%3Bs+Ministry'),jdecode(''),'/815/857.html','true',[],'',''],
		['PAGE','66194',jdecode('Women%26%23x27%3Bs+Ministry'),jdecode(''),'/815/66194.html','true',[],'',''],
		['PAGE','66215',jdecode('Youth+Ministry'),jdecode(''),'/815/66215.html','true',[],'',''],
		['PAGE','66236',jdecode('Music+Ministry'),jdecode(''),'/815/66236.html','true',[],'',''],
		['PAGE','100752',jdecode('Sunday+School+Department'),jdecode(''),'/815/100752.html','true',[],'','']
	],'',''],
	['PAGE','941',jdecode('Contact+Us'),jdecode(''),'/941.html','true',[],'',''],
	['PAGE','42852',jdecode('Ministry+Affiliations'),jdecode(''),'/42852/index.html','true',[ 
		['PAGE','99452',jdecode('C.O.G.I.C.+History'),jdecode(''),'/42852/99452.html','true',[],'',''],
		['PAGE','100252',jdecode('C.O.G.I.C.+Doctrine'),jdecode(''),'/42852/100252.html','true',[],'','']
	],'',''],
	['PAGE','46552',jdecode('Exciting+Job+Opportunities'),jdecode(''),'/46552.html','true',[],'',''],
	['PAGE','195852',jdecode('Fasting+and+Praying+Guides'),jdecode(''),'/195852.html','true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1745';
theSitetree.keyvisualName='familie.jpg';
theSitetree.fontsetId='294';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1745',
				keyvisualName: 	'familie.jpg',
				fontsetId: 		'294',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '15001',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['7005']=webappMappings['7005-87']={
webappId:    '7005',
documentId:  '136552',
internalId:  '87',
customField: 'language:en;country:US;'
};
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: '20100304-192825'
};
webappMappings['7005']=webappMappings['7005-641']={
webappId:    '7005',
documentId:  '201852',
internalId:  '641',
customField: 'language:en;country:US;'
};
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: '20090209-235415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136552',
internalId:  '',
customField: '20080501-183657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20070918-212952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201852',
internalId:  '',
customField: '20090712-004507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20070819-174207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20070819-174348'
};
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: '20090422-221632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20080318-194059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20080318-194155'
};
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: '20080212-090534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68752',
internalId:  '',
customField: '20080327-190502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66173',
internalId:  '',
customField: '20080327-172613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20080509-205530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66194',
internalId:  '',
customField: '20080607-203857'
};
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: '20080427-223945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70752',
internalId:  '',
customField: '20090826-135714'
};
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: '20090422-224846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70794',
internalId:  '',
customField: '20090712-004258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20071124-111635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42852',
internalId:  '',
customField: '20090422-222328'
};
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 canonHostname = 'diywk01.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';
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';
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();
};
