/* [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('Carter+Temple'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','30015',jdecode('About+us'),jdecode(''),'/701/30015.html','true',[],'',''],
		['PAGE','57536',jdecode('Welcome'),jdecode(''),'/701/57536.html','false',[],'',''],
		['PAGE','5301',jdecode('Church+History'),jdecode(''),'/701/5301.html','true',[],'','']
	],'',''],
	['PAGE','57557',jdecode('Our+Pastor'),jdecode(''),'/57557/index.html','true',[ 
		['PAGE','5322',jdecode('Rev.+Allen+Page+III'),jdecode(''),'/57557/5322.html','true',[],'','']
	],'',''],
	['PAGE','5343',jdecode('Ministries'),jdecode(''),'/5343/index.html','true',[ 
		['PAGE','39215',jdecode('Abundant+Life'),jdecode(''),'/5343/39215.html','false',[],'',''],
		['PAGE','39757',jdecode('Bereavement+Ministry'),jdecode(''),'/5343/39757.html','false',[],'',''],
		['PAGE','40099',jdecode('Grove+Drum+Line'),jdecode(''),'/5343/40099.html','false',[],'',''],
		['PAGE','40120',jdecode('College+and+Armed+Forces'),jdecode(''),'/5343/40120.html','false',[],'',''],
		['PAGE','40141',jdecode('Commission+on+Aging'),jdecode(''),'/5343/40141.html','false',[],'',''],
		['PAGE','40162',jdecode('Commission+on+Evangilism'),jdecode(''),'/5343/40162.html','false',[],'',''],
		['PAGE','42015',jdecode('Couple%26%23x27%3Bs+Ministries'),jdecode(''),'/5343/42015.html','false',[],'',''],
		['PAGE','42036',jdecode('Culinary+Ministries'),jdecode(''),'/5343/42036.html','false',[],'',''],
		['PAGE','42057',jdecode('Drama+Ministry'),jdecode(''),'/5343/42057.html','false',[],'',''],
		['PAGE','42120',jdecode('Fannie+Water+Ford+Club'),jdecode(''),'/5343/42120.html','false',[],'',''],
		['PAGE','92315',jdecode('Girl+Scouts'),jdecode(''),'/5343/92315.html','false',[],'',''],
		['PAGE','44815',jdecode('Lay+Ministry'),jdecode(''),'/5343/44815.html','false',[],'',''],
		['PAGE','44857',jdecode('Missionary+Society'),jdecode(''),'/5343/44857.html','false',[],'',''],
		['PAGE','44899',jdecode('Music+Ministry'),jdecode(''),'/5343/44899.html','false',[],'',''],
		['PAGE','44983',jdecode('Pastor+Pride+Ministry'),jdecode(''),'/5343/44983.html','false',[],'',''],
		['PAGE','92336',jdecode('Poetry'),jdecode(''),'/5343/92336.html','false',[],'',''],
		['PAGE','79215',jdecode('Praise+Dance'),jdecode(''),'/5343/79215.html','false',[],'',''],
		['PAGE','46815',jdecode('S.J.+Laws+Club'),jdecode(''),'/5343/46815.html','false',[],'',''],
		['PAGE','92357',jdecode('Sound'),jdecode(''),'/5343/92357.html','false',[],'',''],
		['PAGE','39715',jdecode('Step+Praise+Ministry'),jdecode(''),'/5343/39715.html','false',[],'',''],
		['PAGE','82915',jdecode('Technology'),jdecode(''),'/5343/82915.html','false',[],'',''],
		['PAGE','46857',jdecode('Transportation+Ministry'),jdecode(''),'/5343/46857.html','false',[],'',''],
		['PAGE','46878',jdecode('Usher+Board+Ministry'),jdecode(''),'/5343/46878.html','false',[],'',''],
		['PAGE','46899',jdecode('Wedding+Ministry'),jdecode(''),'/5343/46899.html','false',[],'',''],
		['PAGE','46920',jdecode('Willing+Workers+Club'),jdecode(''),'/5343/46920.html','false',[],'',''],
		['PAGE','46941',jdecode('Young+Adult+Council'),jdecode(''),'/5343/46941.html','false',[],'',''],
		['PAGE','120915',jdecode('Young+Adult+Activity+List'),jdecode(''),'/5343/120915.html','false',[],'','']
	],'',''],
	['PAGE','54915',jdecode('Education'),jdecode(''),'/54915/index.html','true',[ 
		['PAGE','39736',jdecode('Audio+Ministry'),jdecode(''),'/54915/39736.html','false',[],'',''],
		['PAGE','80215',jdecode('Board+of+Christian+Education'),jdecode(''),'/54915/80215.html','false',[],'',''],
		['PAGE','40015',jdecode('Book+Ministry'),jdecode(''),'/54915/40015.html','false',[],'',''],
		['PAGE','40036',jdecode('Children%26%23x27%3Bs+Church'),jdecode(''),'/54915/40036.html','false',[],'',''],
		['PAGE','40057',jdecode('Christian+Youth+Fellowship'),jdecode(''),'/54915/40057.html','false',[],'',''],
		['PAGE','42078',jdecode('Early+Morning+Prayer'),jdecode(''),'/54915/42078.html','false',[],'',''],
		['PAGE','42099',jdecode('Elizabeth+Reddick+Bible+Study'),jdecode(''),'/54915/42099.html','false',[],'',''],
		['PAGE','42815',jdecode('H.M.Williamson+Bible+Study'),jdecode(''),'/54915/42815.html','false',[],'',''],
		['PAGE','44836',jdecode('Men%26%23x27%3Bs+Book+Ministry'),jdecode(''),'/54915/44836.html','false',[],'',''],
		['PAGE','44920',jdecode('New+Generation+Enrichment'),jdecode(''),'/54915/44920.html','false',[],'',''],
		['PAGE','44941',jdecode('New+Member+Ministry'),jdecode(''),'/54915/44941.html','false',[],'',''],
		['PAGE','46836',jdecode('Sunday+Church+School'),jdecode(''),'/54915/46836.html','false',[],'',''],
		['PAGE','132715',jdecode('Cater+Temple+Sunday+School+Class+Descriptions'),jdecode(''),'/54915/132715.html','false',[],'',''],
		['PAGE','47915',jdecode('Young+Adult+Bible+Study'),jdecode(''),'/54915/47915.html','false',[],'','']
	],'',''],
	['PAGE','54936',jdecode('Outreach'),jdecode(''),'/54936/index.html','true',[ 
		['PAGE','40078',jdecode('Clothing+Ministry'),jdecode(''),'/54936/40078.html','false',[],'',''],
		['PAGE','42162',jdecode('Free+N+One+'),jdecode(''),'/54936/42162.html','false',[],'',''],
		['PAGE','42141',jdecode('Freedom+School'),jdecode(''),'/54936/42141.html','false',[],'',''],
		['PAGE','44878',jdecode('More+Like+Christ'),jdecode(''),'/54936/44878.html','false',[],'',''],
		['PAGE','44962',jdecode('One+Church+One+School'),jdecode(''),'/54936/44962.html','false',[],'',''],
		['PAGE','116415',jdecode('+Prayer+Line'),jdecode(''),'/54936/116415.html','false',[],'','']
	],'',''],
	['PAGE','5385',jdecode('Staff'),jdecode(''),'/5385/index.html','true',[ 
		['PAGE','56215',jdecode('Rev.+Curlee+L.+Adams'),jdecode(''),'/5385/56215.html','true',[],'',''],
		['PAGE','56236',jdecode('Rev.+Gertrude+Franklin'),jdecode(''),'/5385/56236.html','true',[],'',''],
		['PAGE','56257',jdecode('Rev.+Theresa+Gordon'),jdecode(''),'/5385/56257.html','false',[],'',''],
		['PAGE','59415',jdecode('Rev.+Birdia+Moffet'),jdecode(''),'/5385/59415.html','true',[],'','']
	],'',''],
	['PAGE','5406',jdecode('Hours'),jdecode(''),'/5406.html','true',[],'',''],
	['PAGE','54415',jdecode('Calendar'),jdecode(''),'/54415/index.html','true',[ 
		['PAGE','107815',jdecode('Announcements'),jdecode(''),'/54415/107815.html','true',[],'',''],
		['PAGE','107836',jdecode('Men%26%23x27%3Bs+Day'),jdecode(''),'/54415/107836.html','false',[],'','']
	],'',''],
	['PAGE','50815',jdecode('Multimedia'),jdecode(''),'/50815.html','false',[],'',''],
	['PAGE','29815',jdecode('Guestbook'),jdecode(''),'/29815.html','true',[],'',''],
	['PAGE','51915',jdecode('Contact+us'),jdecode(''),'/51915/index.html','true',[ 
		['PAGE','50415',jdecode('Directions'),jdecode(''),'/51915/50415.html','true',[],'',''],
		['PAGE','29615',jdecode('Location'),jdecode(''),'/51915/29615.html','false',[],'','']
	],'',''],
	['PAGE','30115',jdecode('Links'),jdecode(''),'/30115.html','true',[],'',''],
	['PAGE','97515',jdecode('Technology+Survey'),jdecode(''),'/97515.html','false',[],'','']];
var siteelementCount=72;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='6683B6';
theSitetree.keyvisualId='2445';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='405';
theSitetree.graphicsetId='461';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'6683B6',
				keyvisualId: 	'2445',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'405',
				graphicsetId: 	'461',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'6683B6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-5309']={
webappId:    '7008',
documentId:  '51915',
internalId:  '5309',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100819-090635'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20100304-175753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20100804-160359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20100304-181746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50815',
internalId:  '',
customField: '20100220-005839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5385',
internalId:  '',
customField: '20100804-162735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20100831-184508'
};
webappMappings['7060']=webappMappings['7060-698593ff11444e451843e447c7d25f0b']={
webappId:    '7060',
documentId:  '50815',
internalId:  '698593ff11444e451843e447c7d25f0b',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '29615',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29615',
internalId:  '',
customField: '20091026-175735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50415',
internalId:  '',
customField: '20100219-115436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47915',
internalId:  '',
customField: '20100304-182850'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '50415',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['1002']=webappMappings['1002-29815ahw050invmy2']={
webappId:    '1002',
documentId:  '29815',
internalId:  '29815ahw050invmy2',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29815',
internalId:  '',
customField: '20100219-115340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30015',
internalId:  '',
customField: '20100302-175550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30115',
internalId:  '',
customField: '20100804-161117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42015',
internalId:  '',
customField: '20100304-180151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39215',
internalId:  '',
customField: '20100304-175923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39715',
internalId:  '',
customField: '20100304-181358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39736',
internalId:  '',
customField: '20100304-182924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40120',
internalId:  '',
customField: '20100409-153306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39757',
internalId:  '',
customField: '20091024-215001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40015',
internalId:  '',
customField: '20100304-182956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40036',
internalId:  '',
customField: '20100304-182258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40057',
internalId:  '',
customField: '20100304-182347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40078',
internalId:  '',
customField: '20100304-183135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40099',
internalId:  '',
customField: '20091024-215449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40141',
internalId:  '',
customField: '20100304-180107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40162',
internalId:  '',
customField: '20100304-180223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42036',
internalId:  '',
customField: '20100409-153339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59415',
internalId:  '',
customField: '20100319-200858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42162',
internalId:  '',
customField: '20091024-205319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42141',
internalId:  '',
customField: '20091024-204913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42099',
internalId:  '',
customField: '20100304-182509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42057',
internalId:  '',
customField: '20100304-180408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42078',
internalId:  '',
customField: '20100304-182425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42120',
internalId:  '',
customField: '20100304-181705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42815',
internalId:  '',
customField: '20100804-162445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44815',
internalId:  '',
customField: '20100304-180442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44836',
internalId:  '',
customField: '20100304-182640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44857',
internalId:  '',
customField: '20100304-180535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44878',
internalId:  '',
customField: '20100304-183102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44899',
internalId:  '',
customField: '20100304-181115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44920',
internalId:  '',
customField: '20091024-224003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44941',
internalId:  '',
customField: '20100304-182730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44962',
internalId:  '',
customField: '20100304-183204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44983',
internalId:  '',
customField: '20100304-181810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46815',
internalId:  '',
customField: '20100409-153215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46836',
internalId:  '',
customField: '20100815-154657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46857',
internalId:  '',
customField: '20100304-181556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46878',
internalId:  '',
customField: '20100304-181629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46899',
internalId:  '',
customField: '20100304-181945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46920',
internalId:  '',
customField: '20091026-165436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46941',
internalId:  '',
customField: '20100318-125044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56215',
internalId:  '',
customField: '20100304-183328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51915',
internalId:  '',
customField: '20100323-160748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54415',
internalId:  '',
customField: '20100829-152032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54936',
internalId:  '',
customField: '20100322-142741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54915',
internalId:  '',
customField: '20100322-165118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56236',
internalId:  '',
customField: '20100304-183412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57557',
internalId:  '',
customField: '20100817-124836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57536',
internalId:  '',
customField: '20091201-131724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56257',
internalId:  '',
customField: '20100304-183445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79215',
internalId:  '',
customField: '20100409-153123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80215',
internalId:  '',
customField: '20100304-182100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82915',
internalId:  '',
customField: '20100305-102418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92357',
internalId:  '',
customField: '20100304-181324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92336',
internalId:  '',
customField: '20100304-181153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92315',
internalId:  '',
customField: '20100225-105816'
};
webappMappings['1003']=webappMappings['1003-ahw050invmy212720cdda21']={
webappId:    '1003',
documentId:  '97515',
internalId:  'ahw050invmy212720cdda21',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97515',
internalId:  '',
customField: '20100302-163020'
};
webappMappings['1501']=webappMappings['1501-6069190']={
webappId:    '1501',
documentId:  '701',
internalId:  '6069190',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107815',
internalId:  '',
customField: '20100825-200420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107836',
internalId:  '',
customField: '20100611-202638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116415',
internalId:  '',
customField: '20100628-202506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120915',
internalId:  '',
customField: '20100412-201505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132715',
internalId:  '',
customField: '20100425-213715'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INVMY2';
var companyName   = 'Carter+Temple+C.M.E.+Church+++++++++++++++';
var htmlTitle	  = 'Carter+Temple+CME+Church';
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();
};
