/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','207',jdecode('Welcome+to+Grace'),jdecode(''),'/207/index.html','true',[ 
		['PAGE','144501',jdecode('Our+Newest+Members'),jdecode(''),'/207/144501.html','true',[],'','']
	],'',''],
	['PAGE','317',jdecode('Contact+or+Visit+Us'),jdecode(''),'/317/index.html','true',[ 
		['PAGE','8902',jdecode('Directions'),jdecode(''),'/317/8902.html','true',[],'','']
	],'',''],
	['PAGE','222',jdecode('About+Grace'),jdecode(''),'/222/index.html','true',[ 
		['PAGE','212',jdecode('Staff'),jdecode(''),'/222/212.html','true',[],'',''],
		['PAGE','31571',jdecode('Leaders'),jdecode(''),'/222/31571.html','true',[],'',''],
		['PAGE','49301',jdecode('Teams+%26+Committees'),jdecode(''),'/222/49301.html','true',[],'',''],
		['PAGE','217',jdecode('Mission+Statement'),jdecode(''),'/222/217.html','true',[],'','']
	],'',''],
	['PAGE','227',jdecode('What%26%23x27%3Bs+Happening'),jdecode(''),'/227/index.html','true',[ 
		['PAGE','232',jdecode('Current+Month%26%23x27%3Bs+Calendar'),jdecode(''),'/227/232.html','true',[],'',''],
		['PAGE','302',jdecode('2010+Tentative+Calendar'),jdecode(''),'/227/302.html','true',[],'',''],
		['PAGE','237',jdecode('Newsletter'),jdecode(''),'/227/237.html','true',[],'','']
	],'',''],
	['PAGE','223701',jdecode('Building+Fund+Appeal'),jdecode(''),'/223701/index.html','true',[ 
		['PAGE','293701',jdecode('Appeal+History'),jdecode(''),'/223701/293701.html','true',[],'',''],
		['PAGE','243901',jdecode('Preliminary+Plan'),jdecode(''),'/223701/243901.html','true',[],'',''],
		['PAGE','293001',jdecode('Exterior+Views'),jdecode(''),'/223701/293001.html','true',[],'','']
	],'',''],
	['PAGE','242',jdecode('Worship++%26+Devotions'),jdecode(''),'/242/index.html','true',[ 
		['PAGE','138901',jdecode('Our+Sunday++Worship+Service+'),jdecode(''),'/242/138901.html','true',[],'',''],
		['PAGE','107322',jdecode('Devotions'),jdecode(''),'/242/107322.html','true',[],'','']
	],'',''],
	['PAGE','247',jdecode('Grace+Christian+Schools'),jdecode(''),'/247/index.html','true',[ 
		['PAGE','20725',jdecode('Preschool'),jdecode(''),'/247/20725.html','true',[],'',''],
		['PAGE','20730',jdecode('Afterschool'),jdecode(''),'/247/20730.html','true',[],'',''],
		['PAGE','106201',jdecode('Monthly+Calendar+%26+News'),jdecode(''),'/247/106201.html','true',[],'','']
	],'',''],
	['PAGE','252',jdecode('Sunday+School'),jdecode(''),'/252/index.html','true',[ 
		['PAGE','22601',jdecode('Children'),jdecode(''),'/252/22601.html','true',[],'',''],
		['PAGE','22606',jdecode('Youth'),jdecode(''),'/252/22606.html','true',[],'',''],
		['PAGE','22611',jdecode('Adults'),jdecode(''),'/252/22611.html','true',[],'',''],
		['PAGE','111101',jdecode('First+Communion+'),jdecode(''),'/252/111101.html','true',[],'',''],
		['PAGE','187701',jdecode('Confirmation+Ministry'),jdecode(''),'/252/187701.html','true',[],'',''],
		['PAGE','172401',jdecode('Sunday+School+News'),jdecode(''),'/252/172401.html','true',[],'','']
	],'',''],
	['PAGE','257',jdecode('Children+%26+Youth'),jdecode(''),'/257/index.html','true',[ 
		['PAGE','104701',jdecode('Youth+News'),jdecode(''),'/257/104701.html','true',[],'',''],
		['PAGE','46201',jdecode('Child+Safety+Procedures'),jdecode(''),'/257/46201.html','true',[],'','']
	],'',''],
	['PAGE','262',jdecode('Adult+Fellowship'),jdecode(''),'/262/index.html','true',[ 
		['PAGE','267',jdecode('Lutheran+Men'),jdecode(''),'/262/267.html','true',[],'',''],
		['PAGE','272',jdecode('WELCA'),jdecode(''),'/262/272.html','true',[],'',''],
		['PAGE','277',jdecode('Leisure+Hour'),jdecode(''),'/262/277.html','true',[],'',''],
		['PAGE','51922',jdecode('Haggai+Group'),jdecode(''),'/262/51922.html','true',[],'','']
	],'',''],
	['PAGE','282',jdecode('Family+Ministries'),jdecode(''),'/282/index.html','true',[ 
		['PAGE','109601',jdecode('Bereavement+Meals'),jdecode(''),'/282/109601.html','true',[],'','']
	],'',''],
	['PAGE','287',jdecode('Music+%26+Art'),jdecode(''),'/287.html','true',[],'',''],
	['PAGE','292',jdecode('Community+%26+Outreach'),jdecode(''),'/292.html','true',[],'',''],
	['PAGE','297',jdecode('Giving+Opportunities'),jdecode(''),'/297/index.html','true',[ 
		['PAGE','81601',jdecode('Time+%26+Talent'),jdecode(''),'/297/81601.html','true',[],'','']
	],'',''],
	['PAGE','307',jdecode('Ministry+Schedules+'),jdecode(''),'/307/index.html','true',[ 
		['PAGE','312',jdecode('Facilities+Policies'),jdecode(''),'/307/312.html','true',[],'','']
	],'',''],
	['PAGE','435701',jdecode('Photo+Gallery+II'),jdecode(''),'/435701/index.html','true',[ 
		['PAGE','537275',jdecode('2010+Summer+Activities'),jdecode(''),'/435701/537275.html','true',[],'',''],
		['PAGE','537296',jdecode('2010+Vacation+Bible+School'),jdecode(''),'/435701/537296.html','true',[],'',''],
		['PAGE','521834',jdecode('2010+Easter+Photos'),jdecode(''),'/435701/521834.html','true',[],'',''],
		['PAGE','469412',jdecode('2009+Anniversary+Service'),jdecode(''),'/435701/469412.html','true',[],'',''],
		['PAGE','460101',jdecode('2009+Vacation+Bible+School'),jdecode(''),'/435701/460101.html','true',[],'',''],
		['PAGE','460122',jdecode('2009+Picnic+and+Field+Day'),jdecode(''),'/435701/460122.html','true',[],'',''],
		['PAGE','444801',jdecode('2009+Easter+Photos'),jdecode(''),'/435701/444801.html','true',[],'',''],
		['PAGE','434601',jdecode('2009+MPMC+Construction'),jdecode(''),'/435701/434601.html','true',[],'',''],
		['PAGE','434622',jdecode('2009+Valentine+Reception'),jdecode(''),'/435701/434622.html','true',[],'',''],
		['PAGE','429901',jdecode('2009+MPMC+Groundbreaking'),jdecode(''),'/435701/429901.html','true',[],'','']
	],'',''],
	['PAGE','166701',jdecode('Photo+Gallery'),jdecode(''),'/166701/index.html','true',[ 
		['PAGE','334901',jdecode('2007+Christmas+Photos'),jdecode(''),'/166701/334901.html','true',[],'',''],
		['PAGE','296001',jdecode('2007+VBS+Photos'),jdecode(''),'/166701/296001.html','true',[],'',''],
		['PAGE','265901',jdecode('2007+Easter+Photos'),jdecode(''),'/166701/265901.html','true',[],'',''],
		['PAGE','169601',jdecode('2006+Summer+Daycamp'),jdecode(''),'/166701/169601.html','true',[],'',''],
		['PAGE','169622',jdecode('2006+Youth+Gathering'),jdecode(''),'/166701/169622.html','true',[],'',''],
		['PAGE','158701',jdecode('2006+VBS+Photos'),jdecode(''),'/166701/158701.html','true',[],'',''],
		['PAGE','153201',jdecode('2006+Golf+Picnic+Photos'),jdecode(''),'/166701/153201.html','true',[],'',''],
		['PAGE','131101',jdecode('2006+Easter+Photos'),jdecode(''),'/166701/131101.html','true',[],'',''],
		['PAGE','59602',jdecode('2005+Christmas+Photos'),jdecode(''),'/166701/59602.html','true',[],'',''],
		['PAGE','22202',jdecode('2005+VBS+Photos'),jdecode(''),'/166701/22202.html','true',[],'','']
	],'',''],
	['PAGE','201201',jdecode('Site+Map+%26+Helpful+Links'),jdecode(''),'/201201/index.html','true',[ 
		['PAGE','202401',jdecode('Helpful+Links'),jdecode(''),'/201201/202401.html','true',[],'','']
	],'',''],
	['PAGE','6302',jdecode('Guestbook'),jdecode(''),'/6302/index.html','true',[ 
		['PAGE','6303',jdecode('Read+Guestbook'),jdecode(''),'/6302/6303.html','false',[],'','']
	],'','']];
var siteelementCount=74;
theSitetree.topTemplateName='Linedup';
theSitetree.paletteFamily='4270B8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10359';
theSitetree.graphicsetId='10505';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4270B8';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Linedup',
				paletteFamily: 	'4270B8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10359',
				graphicsetId: 	'10505',
				contentColor: 	'FFFFFF',
				contentBGColor: '4270B8',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '8902',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1002']=webappMappings['1002-6302aen010inxzvv']={
webappId:    '1002',
documentId:  '6302',
internalId:  '6302aen010inxzvv',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-0cf63cd83a6250260094f0763aff66d8']={
webappId:    '7060',
documentId:  '22202',
internalId:  '0cf63cd83a6250260094f0763aff66d8',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2a67b4c96e66f7a2f6bcc9e9921c0926']={
webappId:    '7060',
documentId:  '59602',
internalId:  '2a67b4c96e66f7a2f6bcc9e9921c0926',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-e302b66c753f22b06bebebcdcfef9598']={
webappId:    '7060',
documentId:  '131101',
internalId:  'e302b66c753f22b06bebebcdcfef9598',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100715-103008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20100227-071051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144501',
internalId:  '',
customField: '20090828-124132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '317',
internalId:  '',
customField: '20100227-071339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8902',
internalId:  '',
customField: '20090124-044947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20100305-080327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20100214-180813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31571',
internalId:  '',
customField: '20100305-081307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20100214-184806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20090124-054037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20100715-103216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20100702-164218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302',
internalId:  '',
customField: '20100215-173519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20060905-134753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223701',
internalId:  '',
customField: '20100401-071822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '293701',
internalId:  '',
customField: '20100102-145847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '243901',
internalId:  '',
customField: '20090124-095114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '293001',
internalId:  '',
customField: '20090124-095203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242',
internalId:  '',
customField: '20100524-135512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138901',
internalId:  '',
customField: '20090124-115214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107322',
internalId:  '',
customField: '20090124-115311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247',
internalId:  '',
customField: '20100503-154219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20725',
internalId:  '',
customField: '20100715-103427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20730',
internalId:  '',
customField: '20100604-123323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106201',
internalId:  '',
customField: '20100604-123953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252',
internalId:  '',
customField: '20091005-084657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20091005-085123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22606',
internalId:  '',
customField: '20091005-100148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22611',
internalId:  '',
customField: '20091005-085441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111101',
internalId:  '',
customField: '20091205-102701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187701',
internalId:  '',
customField: '20091005-100026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172401',
internalId:  '',
customField: '20100605-120644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257',
internalId:  '',
customField: '20100215-174342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104701',
internalId:  '',
customField: '20100715-103949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20090126-101708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262',
internalId:  '',
customField: '20100503-073201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267',
internalId:  '',
customField: '20100503-073500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272',
internalId:  '',
customField: '20100503-073639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277',
internalId:  '',
customField: '20100503-073844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51922',
internalId:  '',
customField: '20100503-073949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282',
internalId:  '',
customField: '20091101-045753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109601',
internalId:  '',
customField: '20100215-164326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287',
internalId:  '',
customField: '20100206-064552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292',
internalId:  '',
customField: '20090126-104131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297',
internalId:  '',
customField: '20100227-071912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81601',
internalId:  '',
customField: '20100102-132248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307',
internalId:  '',
customField: '20100702-164654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312',
internalId:  '',
customField: '20090126-104752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166701',
internalId:  '',
customField: '20090311-083719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '334901',
internalId:  '',
customField: '20090217-075808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '296001',
internalId:  '',
customField: '20090217-075836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265901',
internalId:  '',
customField: '20070424-134451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169601',
internalId:  '',
customField: '20060726-091418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169622',
internalId:  '',
customField: '20060731-094802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158701',
internalId:  '',
customField: '20060701-193626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153201',
internalId:  '',
customField: '20060630-113306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131101',
internalId:  '',
customField: '20070423-150506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59602',
internalId:  '',
customField: '20071229-090523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22202',
internalId:  '',
customField: '20060607-105605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201201',
internalId:  '',
customField: '20090126-105009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202401',
internalId:  '',
customField: '20090217-083415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6302',
internalId:  '',
customField: '20090126-110601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6303',
internalId:  '',
customField: '20050629-150751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '429901',
internalId:  '',
customField: '20090311-074121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '434601',
internalId:  '',
customField: '20091005-095859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '434622',
internalId:  '',
customField: '20090327-074738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '435701',
internalId:  '',
customField: '20100408-103124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444801',
internalId:  '',
customField: '20090413-141103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460101',
internalId:  '',
customField: '20090804-143940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460122',
internalId:  '',
customField: '20090717-102351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '469412',
internalId:  '',
customField: '20090827-133943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '521834',
internalId:  '',
customField: '20100408-124830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '537296',
internalId:  '',
customField: '20100723-063925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '537275',
internalId:  '',
customField: '20100723-063925'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INXZVV';
var companyName   = 'GRACE+LUTHERAN+CHURCH';
var htmlTitle	  = 'Grace+Lutheran+Church%2C+Prosperity%2C+SC';
var metaKeywords  = 'Grace+Lutheran+Church%2C+Prosperity%2C+South+Carolina%2C+Preschool%2C+Afterschool%2C+Worship%2C';
var metaContents  = 'Grace+Lutheran+Church%2C+Prosperity%2C+South+Carolina%2C+Ministries%2C+Programs+and+Events';
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();
};
