/* [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('Arvin+High+School'),jdecode(''),'/201/index.html','true',[ 
		['PAGE','26701',jdecode('Alma+Mater'),jdecode(''),'/201/26701.html','true',[],'','']
	],'',''],
	['PAGE','4907',jdecode('Guestbook'),jdecode(''),'/4907/index.html','true',[ 
		['PAGE','4908',jdecode('Read+Guestbook'),jdecode(''),'/4907/4908.html','false',[],'','']
	],'',''],
	['PAGE','284874',jdecode('Arvin+High+60th+Anniv'),jdecode(''),'/284874.html','true',[],'',''],
	['PAGE','177917',jdecode('5oth+Reunion+pictures'),jdecode(''),'/177917.html','true',[],'',''],
	['PAGE','185539',jdecode('50th+Class+Reunion+pictures'),jdecode(''),'/185539.html','true',[],'',''],
	['PAGE','179817',jdecode('1958+50th+Reunion+pictures'),jdecode(''),'/179817.html','true',[],'',''],
	['PAGE','266152',jdecode('58+50th+class+reunion'),jdecode(''),'/266152.html','true',[],'',''],
	['PAGE','267552',jdecode('58+class+reunion'),jdecode(''),'/267552.html','true',[],'',''],
	['PAGE','268152',jdecode('50th+Class+reunion+1'),jdecode(''),'/268152.html','true',[],'',''],
	['PAGE','71417',jdecode('Latest+updates'),jdecode(''),'/71417/index.html','true',[ 
		['PAGE','139417',jdecode('Lamont+46-47'),jdecode(''),'/71417/139417.html','true',[],'',''],
		['PAGE','110317',jdecode('June+4%2C+1958'),jdecode(''),'/71417/110317.html','true',[],'',''],
		['PAGE','110338',jdecode('June+4%2C+1958'),jdecode(''),'/71417/110338.html','true',[],'',''],
		['PAGE','111217',jdecode('June+4%2C+1958'),jdecode(''),'/71417/111217.html','true',[],'','']
	],'',''],
	['PAGE','232',jdecode('Update+address%2Femail'),jdecode(''),'/232/index.html','true',[ 
		['PAGE','30802',jdecode('Update+classmate+profile+%28follow+up+page%29'),jdecode(''),'/232/30802.html','false',[],'','']
	],'',''],
	['PAGE','53897',jdecode('1958+Classmates'),jdecode(''),'/53897/index.html','true',[ 
		['PAGE','34347',jdecode('Mary+Alderete'),jdecode(''),'/53897/34347.html','true',[],'',''],
		['PAGE','47117',jdecode('Frank+Andress'),jdecode(''),'/53897/47117.html','true',[],'',''],
		['PAGE','68617',jdecode('Leon+Cole'),jdecode(''),'/53897/68617.html','true',[],'',''],
		['PAGE','287074',jdecode('Eldon+Daniel'),jdecode(''),'/53897/287074.html','true',[],'',''],
		['PAGE','142817',jdecode('David+Emerson'),jdecode(''),'/53897/142817.html','true',[],'',''],
		['PAGE','144517',jdecode('Phillip+Gary'),jdecode(''),'/53897/144517.html','true',[],'',''],
		['PAGE','166817',jdecode('Faye+Harris'),jdecode(''),'/53897/166817.html','true',[],'',''],
		['PAGE','26201',jdecode('Valeri+Henderson'),jdecode(''),'/53897/26201.html','true',[],'',''],
		['PAGE','66917',jdecode('Anna+Hooten+'),jdecode(''),'/53897/66917.html','true',[],'',''],
		['PAGE','78417',jdecode('Edith+Inns'),jdecode(''),'/53897/78417.html','true',[],'',''],
		['PAGE','75517',jdecode('Martha+Johnson'),jdecode(''),'/53897/75517.html','true',[],'',''],
		['PAGE','77217',jdecode('Carolyn+Leary'),jdecode(''),'/53897/77217.html','true',[],'',''],
		['PAGE','34947',jdecode('Warren+Ligon'),jdecode(''),'/53897/34947.html','true',[],'',''],
		['PAGE','93017',jdecode('Lois+Maxwell'),jdecode(''),'/53897/93017.html','true',[],'',''],
		['PAGE','77238',jdecode('Dan+Neumarkel'),jdecode(''),'/53897/77238.html','true',[],'',''],
		['PAGE','27901',jdecode('Winnie+Royal'),jdecode(''),'/53897/27901.html','true',[],'',''],
		['PAGE','33304',jdecode('Jim+Stewart'),jdecode(''),'/53897/33304.html','true',[],'',''],
		['PAGE','287674',jdecode('Jim%26%23x27%3Bs+vacation+photo%26%23x27%3Bs'),jdecode(''),'/53897/287674.html','true',[],'','']
	],'',''],
	['PAGE','275552',jdecode('Mountain+View+School'),jdecode(''),'/275552/index.html','true',[ 
		['PAGE','278052',jdecode('1953+-+1954+'),jdecode(''),'/275552/278052.html','true',[],'','']
	],'',''],
	['PAGE','133017',jdecode('Sunset+-+Vineland+School'),jdecode(''),'/133017.html','true',[],'',''],
	['PAGE','137338',jdecode('Ernie%26%23x27%3Bs+school+days'),jdecode(''),'/137338.html','true',[],'',''],
	['PAGE','207',jdecode('Arvin+Union+School'),jdecode(''),'/207/index.html','true',[ 
		['PAGE','49317',jdecode('page+1'),jdecode(''),'/207/49317.html','true',[],'',''],
		['PAGE','49862',jdecode('page+2'),jdecode(''),'/207/49862.html','true',[],'','']
	],'',''],
	['PAGE','275573',jdecode('Arvin+High'),jdecode(''),'/275573.html','true',[],'',''],
	['PAGE','45717',jdecode('Senior+Photos'),jdecode(''),'/45717/index.html','true',[ 
		['PAGE','46417',jdecode('Page+1'),jdecode(''),'/45717/46417.html','true',[],'',''],
		['PAGE','46422',jdecode('Page+2'),jdecode(''),'/45717/46422.html','true',[],'',''],
		['PAGE','46427',jdecode('Page+3'),jdecode(''),'/45717/46427.html','true',[],'',''],
		['PAGE','46432',jdecode('Page+4'),jdecode(''),'/45717/46432.html','true',[],'',''],
		['PAGE','47917',jdecode('Page+5'),jdecode(''),'/45717/47917.html','true',[],'',''],
		['PAGE','47922',jdecode('Page+6'),jdecode(''),'/45717/47922.html','true',[],'',''],
		['PAGE','47927',jdecode('Page+7'),jdecode(''),'/45717/47927.html','true',[],'',''],
		['PAGE','47932',jdecode('Page+8'),jdecode(''),'/45717/47932.html','true',[],'','']
	],'',''],
	['PAGE','217',jdecode('Sports'),jdecode(''),'/217.html','true',[],'',''],
	['PAGE','227',jdecode('The+Teams'),jdecode(''),'/227.html','true',[],'',''],
	['PAGE','18601',jdecode('Cheer+Leaders'),jdecode(''),'/18601/index.html','true',[ 
		['PAGE','19001',jdecode('Beverly+Rohrback'),jdecode(''),'/18601/19001.html','true',[],'',''],
		['PAGE','19006',jdecode('Dean+Forbes+%26+Louise+McCoy'),jdecode(''),'/18601/19006.html','true',[],'',''],
		['PAGE','19011',jdecode('Chester+Owens+%26+Helen+Leeds'),jdecode(''),'/18601/19011.html','true',[],'',''],
		['PAGE','222',jdecode('The+Fight+Song'),jdecode(''),'/18601/222.html','true',[],'','']
	],'',''],
	['PAGE','22101',jdecode('Favorite+Links'),jdecode(''),'/22101.html','true',[],'',''],
	['PAGE','27006',jdecode('In+Memory'),jdecode(''),'/27006/index.html','true',[ 
		['PAGE','104917',jdecode('Obituary+notices'),jdecode(''),'/27006/104917.html','true',[],'',''],
		['PAGE','274352',jdecode('Avin+Cemetary'),jdecode(''),'/27006/274352.html','true',[],'','']
	],'','']];
var siteelementCount=65;
theSitetree.topTemplateName='Steel';
theSitetree.paletteFamily='CA0E0E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10808';
theSitetree.graphicsetId='11247';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4E4E4E';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Steel',
				paletteFamily: 	'CA0E0E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10808',
				graphicsetId: 	'11247',
				contentColor: 	'FFFFFF',
				contentBGColor: '4E4E4E',
				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['1002']=webappMappings['1002-4907aen010in2w6y']={
webappId:    '1002',
documentId:  '4907',
internalId:  '4907aen010in2w6y',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100306-100848'
};
webappMappings['1501']=webappMappings['1501-1887619']={
webappId:    '1501',
documentId:  '201',
internalId:  '1887619',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268152',
internalId:  '',
customField: '20090529-174757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267552',
internalId:  '',
customField: '20090529-174045'
};
webappMappings['7060']=webappMappings['7060-423582bbe4aa43c5a90db058e814e94c']={
webappId:    '7060',
documentId:  '268152',
internalId:  '423582bbe4aa43c5a90db058e814e94c',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-dde48f6b152d26139980862b3634d009']={
webappId:    '7060',
documentId:  '179817',
internalId:  'dde48f6b152d26139980862b3634d009',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179817',
internalId:  '',
customField: '20081021-134030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53897',
internalId:  '',
customField: '20080320-094228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166817',
internalId:  '',
customField: '20090709-103552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20060423-132858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4907',
internalId:  '',
customField: '20060423-133034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4908',
internalId:  '',
customField: '20060424-093212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177917',
internalId:  '',
customField: '20090501-153513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185539',
internalId:  '',
customField: '20090904-200817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71417',
internalId:  '',
customField: '20081111-102941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139417',
internalId:  '',
customField: '20070127-115101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110317',
internalId:  '',
customField: '20060613-164639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110338',
internalId:  '',
customField: '20060613-165830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111217',
internalId:  '',
customField: '20060613-170023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20081111-102941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30802',
internalId:  '',
customField: '20050911-165015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34347',
internalId:  '',
customField: '20090709-103418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47117',
internalId:  '',
customField: '20081114-104107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68617',
internalId:  '',
customField: '20080604-110341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142817',
internalId:  '',
customField: '20070201-114535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144517',
internalId:  '',
customField: '20080623-140357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20090709-103627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66917',
internalId:  '',
customField: '20090726-092844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78417',
internalId:  '',
customField: '20060126-101329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75517',
internalId:  '',
customField: '20060126-102344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77217',
internalId:  '',
customField: '20060126-102458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34947',
internalId:  '',
customField: '20081114-104630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93017',
internalId:  '',
customField: '20060308-083504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77238',
internalId:  '',
customField: '20080604-110341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20091021-102206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33304',
internalId:  '',
customField: '20091228-185045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287674',
internalId:  '',
customField: '20091228-190327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133017',
internalId:  '',
customField: '20061214-171925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137338',
internalId:  '',
customField: '20061214-171836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20091228-185045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49317',
internalId:  '',
customField: '20060424-084115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49862',
internalId:  '',
customField: '20060424-084237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45717',
internalId:  '',
customField: '20081211-100622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46417',
internalId:  '',
customField: '20081211-100818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46422',
internalId:  '',
customField: '20081211-100906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46427',
internalId:  '',
customField: '20081211-100937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46432',
internalId:  '',
customField: '20081211-101005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47917',
internalId:  '',
customField: '20081211-101040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47922',
internalId:  '',
customField: '20081211-101109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47927',
internalId:  '',
customField: '20081211-101151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47932',
internalId:  '',
customField: '20081211-101221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20060424-093447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20060424-093616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20060424-093659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20051001-161743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19006',
internalId:  '',
customField: '20051001-162131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19011',
internalId:  '',
customField: '20090521-154642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20090521-154843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20091228-191824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27006',
internalId:  '',
customField: '20100119-154754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104917',
internalId:  '',
customField: '20080628-140108'
};
webappMappings['7008']=webappMappings['7008-706']={
webappId:    '7008',
documentId:  '232',
internalId:  '706',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '266152',
internalId:  '',
customField: '20090501-153935'
};
webappMappings['7060']=webappMappings['7060-ea2aef32d3a6c48b8a994890a19e3682']={
webappId:    '7060',
documentId:  '267552',
internalId:  'ea2aef32d3a6c48b8a994890a19e3682',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-29aa61e53d363dd74e458e94c8e70bd0']={
webappId:    '7060',
documentId:  '266152',
internalId:  '29aa61e53d363dd74e458e94c8e70bd0',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274352',
internalId:  '',
customField: '20090710-104734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275552',
internalId:  '',
customField: '20090805-194038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275573',
internalId:  '',
customField: '20090804-190239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278052',
internalId:  '',
customField: '20090813-132438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284874',
internalId:  '',
customField: '20091025-095900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287074',
internalId:  '',
customField: '20091225-192006'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010IN2W6Y';
var companyName   = 'ARVIN+HIGH+SCHOOL+1954-1958';
var htmlTitle	  = 'Arvin+High+School+1958';
var metaKeywords  = 'Reunions%2C+classmates%2C+pictures%2C+poems%2C+link+to+carlos+royal%2C+alma+mater%2C+fight+song%2C+football%2C+basketball%2C+baseball+teams%2C+cheerleaders%2C+link+to+terri+collins%2C+bears%2C+teachers';
var metaContents  = 'Classmate+information+for+Arvin+High+School%2C+CA+1958+class.++Reunion+data%2C+photos+and+general+information+regarding+Arvin+High+School.';
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();
};
