/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','153033',jdecode('Test+Forum'),jdecode(''), jdecode('%2F153033.html'), 'false',[],'',''],
	['PAGE','153054',jdecode('Jeff+Email'),jdecode(''), jdecode('%2F153054.html'), 'false',[],'',''],
	['PAGE','153312',jdecode('CW+Email'),jdecode(''), jdecode('%2F153312.html'), 'false',[],'',''],
	['PAGE','101712',jdecode('Statement+of+Faith'),jdecode(''), jdecode('%2F101712.html'), 'true',[],'',''],
	['PAGE','25301',jdecode('Abortion'),jdecode(''), jdecode('%2F25301.html'), 'true',[],'',''],
	['PAGE','61701',jdecode('Audio+Messages'),jdecode(''), jdecode('%2F61701.html'), 'true',[],'',''],
	['PAGE','25322',jdecode('Baptism'),jdecode(''), jdecode('%2F25322.html'), 'true',[],'',''],
	['PAGE','43201',jdecode('The+Bible'),jdecode(''), jdecode('%2F43201.html'), 'true',[],'',''],
	['PAGE','148312',jdecode('Calender'),jdecode(''), jdecode('%2F148312.html'), 'true',[],'',''],
	['PAGE','22822',jdecode('Calender+2010'),jdecode(''), jdecode('%2F22822.html'), 'false',[],'',''],
	['PAGE','147612',jdecode('Calender+2009'),jdecode(''), jdecode('%2F147612.html'), 'false',[],'',''],
	['PAGE','25343',jdecode('Christian+Science'),jdecode(''), jdecode('%2F25343.html'), 'true',[],'',''],
	['PAGE','22801',jdecode('Education'),jdecode(''), jdecode('%2F22801.html'), 'true',[],'',''],
	['PAGE','61201',jdecode('Espa%C3%B1ol'),jdecode(''), jdecode('%2F61201.html'), 'true',[],'',''],
	['PAGE','26001',jdecode('Evangelism'),jdecode(''), jdecode('%2F26001.html'), 'true',[],'',''],
	['PAGE','26022',jdecode('Faith+Movement'),jdecode(''), jdecode('%2F26022.html'), 'true',[],'',''],
	['PAGE','44701',jdecode('Feminism'),jdecode(''), jdecode('%2F44701.html'), 'true',[],'',''],
	['PAGE','138312',jdecode('Guest+Book'),jdecode(''), jdecode('%2F138312.html'), 'true',[],'',''],
	['PAGE','26085',jdecode('Harry+Potter'),jdecode(''), jdecode('%2F26085.html'), 'true',[],'',''],
	['PAGE','26106',jdecode('Hate+Crimes'),jdecode(''), jdecode('%2F26106.html'), 'true',[],'',''],
	['PAGE','31601',jdecode('Holidays'),jdecode(''), jdecode('%2F31601.html'), 'true',[],'',''],
	['PAGE','25201',jdecode('Homosexuality'),jdecode(''), jdecode('%2F25201.html'), 'true',[],'',''],
	['PAGE','35401',jdecode('Iglesia+Ni+Cristo'),jdecode(''), jdecode('%2F35401.html'), 'true',[],'',''],
	['PAGE','35701',jdecode('Jehovah%26%23x27%3Bs+Witnesses'),jdecode(''), jdecode('%2F35701.html'), 'true',[],'',''],
	['PAGE','35422',jdecode('Message+Boards'),jdecode(''), jdecode('%2F35422.html'), 'true',[],'',''],
	['PAGE','35722',jdecode('Mormonism'),jdecode(''), jdecode('%2F35722.html'), 'true',[],'',''],
	['PAGE','35743',jdecode('Multiculturalism'),jdecode(''), jdecode('%2F35743.html'), 'true',[],'',''],
	['PAGE','157712',jdecode('New+Letters'),jdecode(''), jdecode('%2F157712.html'), 'true',[],'',''],
	['PAGE','35764',jdecode('Personal+Bio'),jdecode(''), jdecode('%2F35764.html'), 'true',[],'',''],
	['PAGE','35785',jdecode('Photo+Documentions'),jdecode(''), jdecode('%2F35785.html'), 'false',[],'',''],
	['PAGE','35806',jdecode('Book+Suggestions'),jdecode(''), jdecode('%2F35806.html'), 'true',[],'',''],
	['PAGE','22843',jdecode('Tracts'),jdecode(''), jdecode('%2F22843.html'), 'true',[],'',''],
	['PAGE','35848',jdecode('The+Trinity'),jdecode(''), jdecode('%2F35848.html'), 'true',[],'',''],
	['PAGE','35869',jdecode('Recommended+Websites'),jdecode(''), jdecode('%2F35869.html'), 'true',[],'',''],
	['PAGE','53601',jdecode('DECONSTRUCTING+LIBERAL+TOLERANCE'),jdecode(''), jdecode('%2F53601.html'), 'false',[],'',''],
	['PAGE','55701',jdecode('Joe+and+Family'),jdecode(''), jdecode('%2F55701.html'), 'false',[],'',''],
	['PAGE','60401',jdecode('Testigos+de+Jehov%C3%A1'),jdecode(''), jdecode('%2F60401.html'), 'false',[],'',''],
	['PAGE','62001',jdecode('Behold+the+Man+Part+1'),jdecode(''), jdecode('%2F62001.html'), 'false',[],'',''],
	['PAGE','62022',jdecode('Behold+the+Man+Part+2'),jdecode(''), jdecode('%2F62022.html'), 'false',[],'',''],
	['PAGE','67301',jdecode('Behold+the+Man+Part+3'),jdecode(''), jdecode('%2F67301.html'), 'false',[],'',''],
	['PAGE','66701',jdecode('Walter+Martin'),jdecode(''), jdecode('%2F66701.html'), 'false',[],'',''],
	['PAGE','70743',jdecode('Hell+Articles+One'),jdecode(''), jdecode('%2F70743.html'), 'false',[],'',''],
	['PAGE','70764',jdecode('Hell+Articles+Two'),jdecode(''), jdecode('%2F70764.html'), 'false',[],'',''],
	['PAGE','72801',jdecode('Trinity+Articles+Book+One'),jdecode(''), jdecode('%2F72801.html'), 'false',[],'',''],
	['PAGE','73701',jdecode('Trinity+Articles+Book+Two'),jdecode(''), jdecode('%2F73701.html'), 'false',[],'',''],
	['PAGE','76601',jdecode('Trinidad+Libro'),jdecode(''), jdecode('%2F76601.html'), 'false',[],'',''],
	['PAGE','76622',jdecode('infierno+Libro'),jdecode(''), jdecode('%2F76622.html'), 'false',[],'',''],
	['PAGE','75501',jdecode('Hell+Articles+Book+One'),jdecode(''), jdecode('%2F75501.html'), 'false',[],'',''],
	['PAGE','75522',jdecode('Hell+Articles+Book+Two'),jdecode(''), jdecode('%2F75522.html'), 'false',[],'',''],
	['PAGE','78701',jdecode('Fellowship+Tract+League'),jdecode(''), jdecode('%2F78701.html'), 'false',[],'',''],
	['PAGE','81001',jdecode('Moments+with+the+Book'),jdecode(''), jdecode('%2F81001.html'), 'false',[],'',''],
	['PAGE','85701',jdecode('JW+Book+One'),jdecode(''), jdecode('%2F85701.html'), 'false',[],'',''],
	['PAGE','85722',jdecode('JW+Book+Two'),jdecode(''), jdecode('%2F85722.html'), 'false',[],'',''],
	['PAGE','85743',jdecode('JW+Book+Three'),jdecode(''), jdecode('%2F85743.html'), 'false',[],'',''],
	['PAGE','88501',jdecode('A+Cross+or+a+Stake'),jdecode(''), jdecode('%2F88501.html'), 'false',[],'',''],
	['PAGE','105212',jdecode('JW+Win'),jdecode(''), jdecode('%2F105212.html'), 'false',[],'',''],
	['PAGE','105812',jdecode('Christian+Comedy'),jdecode(''), jdecode('%2F105812.html'), 'false',[],'',''],
	['PAGE','108312',jdecode('JW+Groups'),jdecode(''), jdecode('%2F108312.html'), 'false',[],'',''],
	['PAGE','108812',jdecode('JW+Prophecy'),jdecode(''), jdecode('%2F108812.html'), 'false',[],'',''],
	['PAGE','111812',jdecode('JW+Prophecy+2'),jdecode(''), jdecode('%2F111812.html'), 'false',[],'',''],
	['PAGE','115312',jdecode('WIN+LDS'),jdecode(''), jdecode('%2F115312.html'), 'false',[],'',''],
	['PAGE','126412',jdecode('WIN+Classes'),jdecode(''), jdecode('%2F126412.html'), 'false',[],'',''],
	['PAGE','117112',jdecode('LDS+WIN+Birth+of+Chrsit'),jdecode(''), jdecode('%2F117112.html'), 'false',[],'',''],
	['PAGE','117133',jdecode('Definition+of+the+Trinity'),jdecode(''), jdecode('%2F117133.html'), 'false',[],'',''],
	['PAGE','117154',jdecode('An+Outsider+Looks+at+the+LDS+Church'),jdecode(''), jdecode('%2F117154.html'), 'false',[],'',''],
	['PAGE','118212',jdecode('Priesthood'),jdecode(''), jdecode('%2F118212.html'), 'false',[],'',''],
	['PAGE','123712',jdecode('Scientology'),jdecode(''), jdecode('%2F123712.html'), 'false',[],'',''],
	['PAGE','127812',jdecode('Outline+of+the+Trinidad'),jdecode(''), jdecode('%2F127812.html'), 'false',[],'',''],
	['PAGE','129412',jdecode('Islam'),jdecode(''), jdecode('%2F129412.html'), 'false',[],'',''],
	['PAGE','133312',jdecode('Magazines'),jdecode(''), jdecode('%2F133312.html'), 'false',[],'',''],
	['PAGE','138333',jdecode('Test'),jdecode(''), jdecode('%2F138333.html'), 'false',[],'',''],
	['PAGE','142612',jdecode('Oneness+and+Christian+Science'),jdecode(''), jdecode('%2F142612.html'), 'false',[],'',''],
	['PAGE','148112',jdecode('Calender+2011'),jdecode(''), jdecode('%2F148112.html'), 'false',[],'',''],
	['PAGE','159312',jdecode('Calender+2012'),jdecode(''), jdecode('%2F159312.html'), 'false',[],'',''],
	['PAGE','153912',jdecode('Email+Volunteer'),jdecode(''), jdecode('%2F153912.html'), 'false',[],'',''],
	['PAGE','155412',jdecode('Blogs'),jdecode(''), jdecode('%2F155412.html'), 'false',[],'',''],
	['PAGE','158912',jdecode('Norton'),jdecode(''), jdecode('%2F158912.html'), 'false',[],'','']];
var siteelementCount=78;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='85';
theSitetree.graphicsetId='104';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'85',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120119-114217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22822',
internalId:  '',
customField: '20110227-221908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22843',
internalId:  '',
customField: '20110715-121150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20110106-231216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20090413-151620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20110819-023558'
};
webappMappings['1003']=webappMappings['1003-aendu0inxhdr11e4ca9729e']={
webappId:    '1003',
documentId:  '26106',
internalId:  'aendu0inxhdr11e4ca9729e',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26106',
internalId:  '',
customField: '20090422-231022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25322',
internalId:  '',
customField: '20090329-153632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20120120-121849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35422',
internalId:  '',
customField: '20101111-104206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35401',
internalId:  '',
customField: '20090413-150521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26022',
internalId:  '',
customField: '20090407-234323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25343',
internalId:  '',
customField: '20101222-121321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090407-234118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20090414-175112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20090414-190440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35722',
internalId:  '',
customField: '20090416-202309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35743',
internalId:  '',
customField: '20090414-190609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35764',
internalId:  '',
customField: '20110714-194729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35785',
internalId:  '',
customField: '20090324-192121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35806',
internalId:  '',
customField: '20090325-184459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35848',
internalId:  '',
customField: '20090327-184002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20110226-214843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35869',
internalId:  '',
customField: '20110107-004130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20090412-162420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26085',
internalId:  '',
customField: '20100213-233822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20090418-133759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60401',
internalId:  '',
customField: '20090618-115522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61201',
internalId:  '',
customField: '20090618-154100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61701',
internalId:  '',
customField: '20110226-213528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62001',
internalId:  '',
customField: '20090622-215622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62022',
internalId:  '',
customField: '20090622-215556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66701',
internalId:  '',
customField: '20110104-174209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67301',
internalId:  '',
customField: '20090622-215535'
};
webappMappings['1002']=webappMappings['1002-138312aendu0inxhdr']={
webappId:    '1002',
documentId:  '138312',
internalId:  '138312aendu0inxhdr',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117133',
internalId:  '',
customField: '20100201-212315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115312',
internalId:  '',
customField: '20100731-131222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75501',
internalId:  '',
customField: '20090805-113511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75522',
internalId:  '',
customField: '20090805-113408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70743',
internalId:  '',
customField: '20090623-014504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70764',
internalId:  '',
customField: '20090623-014504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20090805-105328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20090805-105819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20090805-110848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76622',
internalId:  '',
customField: '20090805-111131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78701',
internalId:  '',
customField: '20090728-115612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81001',
internalId:  '',
customField: '20101221-110834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117112',
internalId:  '',
customField: '20100202-162514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117154',
internalId:  '',
customField: '20100202-165809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85701',
internalId:  '',
customField: '20090805-162731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85722',
internalId:  '',
customField: '20090805-180433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85743',
internalId:  '',
customField: '20090805-095738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88501',
internalId:  '',
customField: '20091221-011527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105212',
internalId:  '',
customField: '20100818-110239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101712',
internalId:  '',
customField: '20091024-132931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108312',
internalId:  '',
customField: '20091224-164852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123712',
internalId:  '',
customField: '20100818-115342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126412',
internalId:  '',
customField: '20110208-013318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127812',
internalId:  '',
customField: '20100731-130207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129412',
internalId:  '',
customField: '20100831-095537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133312',
internalId:  '',
customField: '20101120-125945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118212',
internalId:  '',
customField: '20100202-183151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108812',
internalId:  '',
customField: '20091211-234133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105812',
internalId:  '',
customField: '20091024-132758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138312',
internalId:  '',
customField: '20101223-081234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111812',
internalId:  '',
customField: '20091211-233322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138333',
internalId:  '',
customField: '20101223-080233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142612',
internalId:  '',
customField: '20110314-090953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147612',
internalId:  '',
customField: '20110227-222802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148112',
internalId:  '',
customField: '20110721-164559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148312',
internalId:  '',
customField: '20120119-113542'
};
webappMappings['7050']=webappMappings['7050-13146']={
webappId:    '7050',
documentId:  '155412',
internalId:  '13146',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-aendu0inxhdr13100504e8e']={
webappId:    '1003',
documentId:  '153033',
internalId:  'aendu0inxhdr13100504e8e',
customField: 'en:US'
};
webappMappings['7008']=webappMappings['7008-4136']={
webappId:    '7008',
documentId:  '153054',
internalId:  '4136',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155412',
internalId:  '',
customField: '20110721-234518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153033',
internalId:  '',
customField: '20110714-191058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153054',
internalId:  '',
customField: '20110715-114057'
};
webappMappings['7008']=webappMappings['7008-4137']={
webappId:    '7008',
documentId:  '153312',
internalId:  '4137',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153312',
internalId:  '',
customField: '20110715-114233'
};
webappMappings['7008']=webappMappings['7008-4265']={
webappId:    '7008',
documentId:  '153912',
internalId:  '4265',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153912',
internalId:  '',
customField: '20110724-092256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157712',
internalId:  '',
customField: '20120120-111116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158912',
internalId:  '',
customField: '20111104-093505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159312',
internalId:  '',
customField: '20120119-112520'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INXHDR';
var companyName   = 'Christian+Witnesses';
var htmlTitle	  = 'Christian+Witnesses';
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();
};

