/* [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','43',jdecode('Back+on+the+Bicycle'),jdecode(''),'/43.html','false',[],'',''],
	['PAGE','24250',jdecode('About+Us'),jdecode(''),'/24250/index.html','true',[ 
		['PAGE','24609',jdecode('Franks+tips+column'),jdecode(''),'/24250/24609.html','false',[],'','']
	],'',''],
	['PAGE','24078',jdecode('***EXCITING+NEWS***'),jdecode(''),'/24078.html','true',[],'',''],
	['PAGE','64',jdecode('How+We+Started'),jdecode(''),'/64.html','true',[],'',''],
	['PAGE','29006',jdecode('Meet+the+Hope+Team'),jdecode(''),'/29006.html','false',[],'',''],
	['PAGE','23637',jdecode('Survivor+Stories'),jdecode(''),'/23637.html','true',[],'',''],
	['PAGE','8188',jdecode('Board+of+Directors'),jdecode(''),'/8188/index.html','true',[ 
		['PAGE','7968',jdecode('Dr.+Spellman'),jdecode(''),'/8188/7968.html','false',[],'',''],
		['PAGE','7977',jdecode('Dr.+Marshall'),jdecode(''),'/8188/7977.html','false',[],'',''],
		['PAGE','12782',jdecode('Peter+V.+Cornelis+'),jdecode(''),'/8188/12782.html','false',[],'',''],
		['PAGE','26570',jdecode('Joe+Foley'),jdecode(''),'/8188/26570.html','false',[],'',''],
		['PAGE','8103',jdecode('Yi+Ting+Chiang'),jdecode(''),'/8188/8103.html','false',[],'','']
	],'',''],
	['PAGE','15497',jdecode('Sponsors'),jdecode(''),'/15497.html','true',[],'',''],
	['PAGE','19611',jdecode('Upcoming+Events'),jdecode(''),'/19611.html','true',[],'',''],
	['PAGE','27692',jdecode('Past++Events'),jdecode(''),'/27692.html','true',[],'',''],
	['PAGE','59001',jdecode('Live+Chat'),jdecode(''),'/59001.html','true',[],'',''],
	['PAGE','2380',jdecode('Info+and+Links'),jdecode(''),'/2380/index.html','false',[ 
		['PAGE','2832',jdecode('Neuro+Plasticity%3F'),jdecode(''),'/2380/2832.html','true',[],'',''],
		['PAGE','1997',jdecode('Road+to+plasticity'),jdecode(''),'/2380/1997.html','true',[],'',''],
		['PAGE','19813',jdecode('Physical+Therapy'),jdecode(''),'/2380/19813.html','true',[],'',''],
		['PAGE','19883',jdecode('Speech+Therapy'),jdecode(''),'/2380/19883.html','true',[],'',''],
		['PAGE','4025',jdecode('Things+for+home.'),jdecode(''),'/2380/4025.html','true',[],'',''],
		['PAGE','4328',jdecode('Home+Recovery+Tricks'),jdecode(''),'/2380/4328.html','true',[],'',''],
		['PAGE','7193',jdecode('Umbilical+cordstem+cells'),jdecode(''),'/2380/7193.html','true',[],'',''],
		['PAGE','8767',jdecode('depression+signs+and+facts'),jdecode(''),'/2380/8767.html','true',[],'',''],
		['PAGE','8949',jdecode('Medcare+Euro+article'),jdecode(''),'/2380/8949.html','true',[],'',''],
		['PAGE','22371',jdecode('Elder+care+law'),jdecode(''),'/2380/22371.html','true',[],'',''],
		['PAGE','9102',jdecode('strength+from+stroke'),jdecode(''),'/2380/9102.html','true',[],'',''],
		['PAGE','27227',jdecode('Stroke+Central+Pain+Syndrome'),jdecode(''),'/2380/27227.html','true',[],'',''],
		['PAGE','15293',jdecode('joan+green+article'),jdecode(''),'/2380/15293.html','true',[],'',''],
		['PAGE','19516',jdecode('Signs+of+a+Stroke'),jdecode(''),'/2380/19516.html','true',[],'',''],
		['PAGE','20674',jdecode('Attitude+is+important'),jdecode(''),'/2380/20674.html','true',[],'',''],
		['PAGE','21065',jdecode('Vision+Therapy'),jdecode(''),'/2380/21065.html','false',[],'',''],
		['PAGE','21185',jdecode('More+on+neuro+plasticity'),jdecode(''),'/2380/21185.html','false',[],'',''],
		['PAGE','21265',jdecode('7+wonders+of++the+world'),jdecode(''),'/2380/21265.html','false',[],'',''],
		['PAGE','21383',jdecode('article+on+Novavision'),jdecode(''),'/2380/21383.html','false',[],'',''],
		['PAGE','22750',jdecode('AVMs+Planning+Brain+Surgery'),jdecode(''),'/2380/22750.html','false',[],'',''],
		['PAGE','23115',jdecode('Get+kids+checked+for+Aneurysms'),jdecode(''),'/2380/23115.html','false',[],'',''],
		['PAGE','25070',jdecode('Who+are+we'),jdecode(''),'/2380/25070.html','false',[],'',''],
		['PAGE','26160',jdecode('What+can+we+do%3F'),jdecode(''),'/2380/26160.html','false',[],'',''],
		['PAGE','24135',jdecode('trtmnt+hem+stroke'),jdecode(''),'/2380/24135.html','false',[],'','']
	],'',''],
	['PAGE','41001',jdecode('Videos'),jdecode(''),'/41001.html','true',[],'',''],
	['PAGE','2587',jdecode('Useful+Stroke+Links'),jdecode(''),'/2587.html','false',[],'',''],
	['PAGE','60301',jdecode('Forums'),jdecode(''),'/60301.html','true',[],'',''],
	['PAGE','2715',jdecode('Guestbook'),jdecode(''),'/2715.html','true',[],'',''],
	['PAGE','3654',jdecode('Newsletter'),jdecode(''),'/3654/index.html','true',[ 
		['PAGE','15113',jdecode('Feedback+form++%28follow+up+page%29'),jdecode(''),'/3654/15113.html','false',[],'','']
	],'',''],
	['PAGE','29111',jdecode('Thank+You+Letters'),jdecode(''),'/29111.html','false',[],'',''],
	['PAGE','51801',jdecode('Donate'),jdecode(''),'/51801.html','true',[],'',''],
	['PAGE','52701',jdecode('Contact+Us'),jdecode(''),'/52701.html','true',[],'',''],
	['PAGE','16598',jdecode('For+the+Strokee'),jdecode(''),'/16598.html','false',[],'',''],
	['PAGE','16944',jdecode('For+the+Caregiver'),jdecode(''),'/16944.html','false',[],'',''],
	['PAGE','28238',jdecode('Home+Therapy'),jdecode(''),'/28238/index.html','false',[ 
		['PAGE','28247',jdecode('Hand+and+Finger'),jdecode(''),'/28238/28247.html','false',[],'',''],
		['PAGE','28304',jdecode('Arm+and+Shoulder'),jdecode(''),'/28238/28304.html','false',[],'',''],
		['PAGE','28477',jdecode('Leg+Therapy'),jdecode(''),'/28238/28477.html','false',[],'',''],
		['PAGE','28544',jdecode('Short+Term+Memory'),jdecode(''),'/28238/28544.html','false',[],'','']
	],'',''],
	['PAGE','24731',jdecode('Memorials'),jdecode(''),'/24731.html','false',[],'',''],
	['PAGE','26891',jdecode('In+Honor+of+Donations'),jdecode(''),'/26891.html','false',[],'',''],
	['PAGE','2505',jdecode('Donors'),jdecode(''),'/2505.html','true',[],'',''],
	['PAGE','18334',jdecode('Contact+Congressman'),jdecode(''),'/18334.html','true',[],'',''],
	['PAGE','18343',jdecode('Contact+Senator'),jdecode(''),'/18343.html','true',[],'',''],
	['PAGE','18916',jdecode('Speaking+Info'),jdecode(''),'/18916.html','true',[],'',''],
	['PAGE','2714',jdecode('Read+Guestbook'),jdecode(''),'/2714.html','false',[],'',''],
	['PAGE','20300',jdecode('Survivor+Meetings+USA'),jdecode(''),'/20300.html','false',[],'',''],
	['PAGE','23269',jdecode('Blog'),jdecode(''),'/23269.html','false',[],'',''],
	['PAGE','23465',jdecode('Stroke+Fact+Sheet'),jdecode(''),'/23465.html','false',[],'',''],
	['PAGE','23971',jdecode('Optical+Chart'),jdecode(''),'/23971.html','false',[],'',''],
	['PAGE','25980',jdecode('missing+pieces+speech+recovery'),jdecode(''),'/25980.html','false',[],'','']];
var siteelementCount=70;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='385CA9';
theSitetree.keyvisualId='7160';
theSitetree.keyvisualName='kv_7160.jpg';
theSitetree.fontsetId='16412';
theSitetree.graphicsetId='12134';
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: 			'Capri',
				paletteFamily: 	'385CA9',
				keyvisualId: 	'7160',
				keyvisualName: 	'kv_7160.jpg',
				fontsetId: 		'16412',
				graphicsetId: 	'12134',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8188',
internalId:  '',
customField: '20100806-140704'
};
webappMappings['1002']=webappMappings['1002-2715AHW050IN3196']={
webappId:    '1002',
documentId:  '2715',
internalId:  '2715AHW050IN3196',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-77']={
webappId:    '7050',
documentId:  '23269',
internalId:  '77',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '24250',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20100211-191425'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '24250',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2715',
internalId:  '',
customField: '20100501-100826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15497',
internalId:  '',
customField: '20100217-140330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64',
internalId:  '',
customField: '20100308-180738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19611',
internalId:  '',
customField: '20100901-121422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27692',
internalId:  '',
customField: '20100831-230031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7977',
internalId:  '',
customField: '20090808-173245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7968',
internalId:  '',
customField: '20060508-220417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8103',
internalId:  '',
customField: '20060508-164026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26570',
internalId:  '',
customField: '20080603-154921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12782',
internalId:  '',
customField: '20090808-173313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29111',
internalId:  '',
customField: '20100211-130835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29006',
internalId:  '',
customField: '20090811-123053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16598',
internalId:  '',
customField: '20100211-183419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16944',
internalId:  '',
customField: '20100211-184648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28238',
internalId:  '',
customField: '20090809-101925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28247',
internalId:  '',
customField: '20090808-185422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28304',
internalId:  '',
customField: '20090808-185820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28477',
internalId:  '',
customField: '20090808-185850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28544',
internalId:  '',
customField: '20090808-190206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24731',
internalId:  '',
customField: '20090808-190608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26891',
internalId:  '',
customField: '20090808-190911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2505',
internalId:  '',
customField: '20100901-120040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18334',
internalId:  '',
customField: '20100211-132215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18343',
internalId:  '',
customField: '20100211-132112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18916',
internalId:  '',
customField: '20100812-141440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2380',
internalId:  '',
customField: '20100211-183844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2832',
internalId:  '',
customField: '20080227-232520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1997',
internalId:  '',
customField: '20060224-001823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19813',
internalId:  '',
customField: '20070104-185004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19883',
internalId:  '',
customField: '20070104-230818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4025',
internalId:  '',
customField: '20071018-225029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4328',
internalId:  '',
customField: '20070127-193302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7193',
internalId:  '',
customField: '20060403-174415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8767',
internalId:  '',
customField: '20070913-170958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8949',
internalId:  '',
customField: '20060517-001408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22371',
internalId:  '',
customField: '20070306-163929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9102',
internalId:  '',
customField: '20100211-184925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27227',
internalId:  '',
customField: '20070913-151039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15293',
internalId:  '',
customField: '20060929-144957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19516',
internalId:  '',
customField: '20061225-193416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20674',
internalId:  '',
customField: '20070127-201822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21065',
internalId:  '',
customField: '20070203-152823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21185',
internalId:  '',
customField: '20070913-170819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21265',
internalId:  '',
customField: '20070208-024335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21383',
internalId:  '',
customField: '20070212-201253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22750',
internalId:  '',
customField: '20070319-164512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23115',
internalId:  '',
customField: '20070403-201013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25070',
internalId:  '',
customField: '20070607-174511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26160',
internalId:  '',
customField: '20070704-230123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24135',
internalId:  '',
customField: '20070604-214957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2587',
internalId:  '',
customField: '20090811-213910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2714',
internalId:  '',
customField: '20061207-142738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3654',
internalId:  '',
customField: '20100813-112238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15113',
internalId:  '',
customField: '20060913-232824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20300',
internalId:  '',
customField: '20090808-202854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23269',
internalId:  '',
customField: '20081104-122954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23465',
internalId:  '',
customField: '20070430-234310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23637',
internalId:  '',
customField: '20100812-142340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23971',
internalId:  '',
customField: '20070501-001041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24078',
internalId:  '',
customField: '20100501-074728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24250',
internalId:  '',
customField: '20100517-210537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24609',
internalId:  '',
customField: '20070709-173339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20100603-172910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60301',
internalId:  '',
customField: '20100211-130524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51801',
internalId:  '',
customField: '20100305-163609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20100501-074856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25980',
internalId:  '',
customField: '20070703-130048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20100904-115720'
};
webappMappings['7008']=webappMappings['7008-8352']={
webappId:    '7008',
documentId:  '3654',
internalId:  '8352',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3196';
var companyName   = 'H.O.P.E.+for+Stroke++%22Healing+On+Positive+Energy%22++';
var htmlTitle	  = 'H.O.P.E.+for+Stroke+-+Support+for+stroke+survivors+and+their+loved+ones';
var metaKeywords  = '+key+note+speaker%2C+motivational+speaker%2C+stroke%2C+stroke+support%2C+stroke+help%2C+stroke+support+groups%2C+stroke+information%2C++new+to+stroke%2C+stroke+friends%2C+stroke+needs%2C+aneurysms%2C+AVMs%2C+ischemic+stroke%2C+hemorrhagic+stroke%2C+brain+attack%2C+stroke+attack%2C+brain+infarc%2C+brain+stem+stroke%2C+how+to+beat+stroke%2C+brain+injury%2C+hemiplegia%2C+rehabilitation+for+stroke%2C+stroke+rehabilitation%2C+stroke+depression%2C+stroke+remedies%2C+depression+from+stroke%2C+memory+loss+stroke%2C+vision+loss+from+stroke%2C+vision+help+for+stroke%2C+plasticity%2C+neuro+plasticity%2C+spasticity%2C+speech+loss%2C+speech+loss+from+stroke%2C+speech+rehabilitation%2C+physical+rehabilitation+for+stroke%2C+physical+rehabilitation%2C+occupational+therapy+from+stroke%2C+occupational+therapy%2C+physical+therapy%2C+physical+therapy+stroke%2C+drop+foot%2C+stroke+gadgets%2C+stroke+tools%2C+wheelchairs.+speakers%2C+speaker%2C+public+speaking%2C+speaking+engagements%2C+interesting+speaker+topics%2C+motivational+speakers%2C+speakers+on+stroke+recovery%2C+speaker+about+stroke%2C+professional+speakers%2C+message+point+speakers%2C+professional+speaker%2C+arterial+venous+malformation%2C+help+I+had+a+stroke%2C+help+stroke%2C+stroke+help%2C+stroke+sadness%2C+stroke+depression%2C+number+one+stroke+support%2C+number+one+stroke+organization%2C+number+one+stroke+help%2C+stroke+Im+scared%2C+stroke+terrified%2C+personal+stroke+help';
var metaContents  = 'We+are+a+non-profit+%28501c3%29+organization+made+up+of+volunteer+stroke+survivors+and+caregivers+helping+other+stroke+survivors+and+caregivers+through+a+devasting+life+event.++';
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();
};
