/* [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(''),'/401.html','true',[],'',''],
	['PAGE','81001',jdecode('Fallen+Heroes'),jdecode(''),'/81001/index.html','true',[ 
		['PAGE','161523',jdecode('Ceremony+-+2010+Bash'),jdecode(''),'/81001/161523.html','true',[],'','']
	],'',''],
	['PAGE','64101',jdecode('In+the+News'),jdecode(''),'/64101.html','true',[],'',''],
	['PAGE','58001',jdecode('Alumni+Association'),jdecode(''),'/58001/index.html','true',[ 
		['PAGE','59701',jdecode('Meeting+Recaps'),jdecode(''),'/58001/59701.html','true',[],'',''],
		['PAGE','77401',jdecode('Alumni+Enrollment'),jdecode(''),'/58001/77401.html','true',[],'','']
	],'',''],
	['PAGE','79701',jdecode('Photos+from+the+Past'),jdecode(''),'/79701.html','true',[],'',''],
	['PAGE','53901',jdecode('64+State+Champs'),jdecode(''),'/53901.html','true',[],'',''],
	['PAGE','136312',jdecode('Class+1960'),jdecode(''),'/136312.html','true',[],'',''],
	['PAGE','78701',jdecode('Class+1962'),jdecode(''),'/78701.html','true',[],'',''],
	['PAGE','86501',jdecode('Class+1963'),jdecode(''),'/86501.html','true',[],'',''],
	['PAGE','95201',jdecode('Class+1964'),jdecode(''),'/95201/index.html','true',[ 
		['PAGE','95222',jdecode('Reunion+Info'),jdecode(''),'/95201/95222.html','true',[],'',''],
		['PAGE','96401',jdecode('In+Memory'),jdecode(''),'/95201/96401.html','true',[],'','']
	],'',''],
	['PAGE','7801',jdecode('Class+1965'),jdecode(''),'/7801.html','true',[],'',''],
	['PAGE','7822',jdecode('Class+1966'),jdecode(''),'/7822.html','true',[],'',''],
	['PAGE','29601',jdecode('Class+1967'),jdecode(''),'/29601/index.html','true',[ 
		['PAGE','41401',jdecode('In+Memory'),jdecode(''),'/29601/41401.html','true',[],'',''],
		['PAGE','147423',jdecode('Reunion+Info'),jdecode(''),'/29601/147423.html','true',[],'','']
	],'',''],
	['PAGE','7843',jdecode('Class+1968'),jdecode(''),'/7843/index.html','true',[ 
		['PAGE','50501',jdecode('In+Memory'),jdecode(''),'/7843/50501.html','true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Class+1969'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','7864',jdecode('In+Memory'),jdecode(''),'/473/7864.html','true',[],'',''],
		['PAGE','11301',jdecode('Trivia'),jdecode(''),'/473/11301.html','true',[],'',''],
		['PAGE','43101',jdecode('Classmates+Missing'),jdecode(''),'/473/43101.html','true',[],'',''],
		['PAGE','62201',jdecode('Reunion+Confirmation'),jdecode(''),'/473/62201.html','true',[],'',''],
		['PAGE','69101',jdecode('69+Golf+Scramble'),jdecode(''),'/473/69101.html','true',[],'','']
	],'',''],
	['PAGE','494',jdecode('Class+1970'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','7501',jdecode('In+Memory'),jdecode(''),'/494/7501.html','true',[],'',''],
		['PAGE','9901',jdecode('Trivia'),jdecode(''),'/494/9901.html','true',[],'',''],
		['PAGE','62222',jdecode('Last+Will'),jdecode(''),'/494/62222.html','true',[],'',''],
		['PAGE','63101',jdecode('Class+Prophesy'),jdecode(''),'/494/63101.html','true',[],'',''],
		['PAGE','146523',jdecode('Reunion'),jdecode(''),'/494/146523.html','true',[],'',''],
		['PAGE','149123',jdecode('Veterans'),jdecode(''),'/494/149123.html','true',[],'',''],
		['PAGE','149144',jdecode('Classmates'),jdecode(''),'/494/149144.html','true',[],'','']
	],'',''],
	['PAGE','515',jdecode('Class+1971'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','38801',jdecode('In+Memory+Of'),jdecode(''),'/515/38801.html','true',[],'','']
	],'',''],
	['PAGE','536',jdecode('Class+1972'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','7885',jdecode('In+Memory'),jdecode(''),'/536/7885.html','true',[],'','']
	],'',''],
	['PAGE','122312',jdecode('Class+1973'),jdecode(''),'/122312.html','true',[],'',''],
	['PAGE','149165',jdecode('Class+1974'),jdecode(''),'/149165.html','true',[],'',''],
	['PAGE','99401',jdecode('Class+1975'),jdecode(''),'/99401/index.html','true',[ 
		['PAGE','99422',jdecode('In+Memory'),jdecode(''),'/99401/99422.html','true',[],'','']
	],'',''],
	['PAGE','114301',jdecode('Class+1976'),jdecode(''),'/114301.html','true',[],'',''],
	['PAGE','7201',jdecode('Class+1977'),jdecode(''),'/7201/index.html','true',[ 
		['PAGE','75901',jdecode('In+Memory'),jdecode(''),'/7201/75901.html','true',[],'','']
	],'',''],
	['PAGE','37801',jdecode('Class+1978'),jdecode(''),'/37801.html','true',[],'',''],
	['PAGE','90701',jdecode('Class+1979'),jdecode(''),'/90701/index.html','true',[ 
		['PAGE','92201',jdecode('InMemory'),jdecode(''),'/90701/92201.html','true',[],'','']
	],'',''],
	['PAGE','57201',jdecode('Class+1983'),jdecode(''),'/57201.html','true',[],'',''],
	['PAGE','142212',jdecode('Class+1986'),jdecode(''),'/142212.html','true',[],'',''],
	['PAGE','84301',jdecode('Class+1988'),jdecode(''),'/84301.html','true',[],'',''],
	['PAGE','104301',jdecode('Class+1989'),jdecode(''),'/104301.html','true',[],'',''],
	['PAGE','162223',jdecode('Class+1990'),jdecode(''),'/162223.html','true',[],'',''],
	['PAGE','578',jdecode('Big+Belmont+Bash+2009'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','21601',jdecode('Map+to+VFW+9927'),jdecode(''),'/578/21601.html','true',[],'',''],
		['PAGE','67701',jdecode('Confirmation'),jdecode(''),'/578/67701.html','true',[],'','']
	],'',''],
	['PAGE','126512',jdecode('Big+Belmont+Bash+2010'),jdecode(''),'/126512/index.html','true',[ 
		['PAGE','145223',jdecode('Golf+Outting'),jdecode(''),'/126512/145223.html','true',[],'','']
	],'',''],
	['PAGE','163023',jdecode('Big+Belmont+Bash+2011'),jdecode(''),'/163023/index.html','true',[ 
		['PAGE','165823',jdecode('Golf+Outing+2011'),jdecode(''),'/163023/165823.html','true',[],'','']
	],'',''],
	['PAGE','5906',jdecode('Guestbook'),jdecode(''),'/5906/index.html','true',[ 
		['PAGE','5901',jdecode('Read+Guestbook'),jdecode(''),'/5906/5901.html','false',[],'','']
	],'',''],
	['PAGE','10301',jdecode('Cleveland+School+News'),jdecode(''),'/10301.html','true',[],'',''],
	['PAGE','10701',jdecode('School+History'),jdecode(''),'/10701.html','true',[],'',''],
	['PAGE','35701',jdecode('Classmates+Businesses'),jdecode(''),'/35701.html','true',[],'',''],
	['PAGE','44401',jdecode('Bucky+Bison'),jdecode(''),'/44401.html','true',[],'',''],
	['PAGE','36801',jdecode('Multi-Class+Photos'),jdecode(''),'/36801.html','true',[],'',''],
	['PAGE','137912',jdecode('Groundbreaking'),jdecode(''),'/137912.html','true',[],'','']];
var siteelementCount=70;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1238';
theSitetree.keyvisualName='justizia.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='228';
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: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1238',
				keyvisualName: 	'justizia.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'228',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5906aendu0inxvrs']={
webappId:    '1002',
documentId:  '5906',
internalId:  '5906aendu0inxvrs',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62201',
internalId:  '',
customField: '20090927-105429'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100419-151635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090929-153524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20091205-060104'
};
webappMappings['1501']=webappMappings['1501-1668402']={
webappId:    '1501',
documentId:  '401',
internalId:  '1668402',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '21601',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122312',
internalId:  '',
customField: '20090729-154234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20080805-153104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7822',
internalId:  '',
customField: '20080818-093120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20100409-161109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20091008-191324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20100512-161719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20091124-193433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7864',
internalId:  '',
customField: '20100717-065611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75901',
internalId:  '',
customField: '20090428-192032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20071207-165254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080804-154941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20090621-104952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20071207-165539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100625-093443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20100111-180519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090904-173013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7885',
internalId:  '',
customField: '20100213-054223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20090904-173149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20081023-182831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100215-124510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5906',
internalId:  '',
customField: '20071209-200025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20071205-181150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20080727-144322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20091027-152828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20100527-151810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20100527-150757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20080925-204106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20100419-151658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20080229-173501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20080323-112408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20081023-183105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20100618-171927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62222',
internalId:  '',
customField: '20080620-155148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63101',
internalId:  '',
customField: '20080620-155651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20091120-152513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67701',
internalId:  '',
customField: '20090808-073454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20090912-081848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77401',
internalId:  '',
customField: '20100618-171547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78701',
internalId:  '',
customField: '20080818-092838'
};
webappMappings['7060']=webappMappings['7060-5e95edc13d96d8f53a3085a119bb28f8']={
webappId:    '7060',
documentId:  '79701',
internalId:  '5e95edc13d96d8f53a3085a119bb28f8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79701',
internalId:  '',
customField: '20080818-095857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81001',
internalId:  '',
customField: '20100623-170400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86501',
internalId:  '',
customField: '20100409-160915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84301',
internalId:  '',
customField: '20081012-221522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90701',
internalId:  '',
customField: '20081128-081350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136312',
internalId:  '',
customField: '20100123-093551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92201',
internalId:  '',
customField: '20100717-065659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95201',
internalId:  '',
customField: '20090131-104948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95222',
internalId:  '',
customField: '20090201-104201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96401',
internalId:  '',
customField: '20090201-104333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99401',
internalId:  '',
customField: '20090621-151010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99422',
internalId:  '',
customField: '20090919-102330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20090428-154836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114301',
internalId:  '',
customField: '20090621-151121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126512',
internalId:  '',
customField: '20100811-191305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137912',
internalId:  '',
customField: '20091106-193458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142212',
internalId:  '',
customField: '20100126-163926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145223',
internalId:  '',
customField: '20100609-162727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146523',
internalId:  '',
customField: '20100824-150234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147423',
internalId:  '',
customField: '20100409-161506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149165',
internalId:  '',
customField: '20100423-151453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149144',
internalId:  '',
customField: '20100711-144901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149123',
internalId:  '',
customField: '20100808-112457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161523',
internalId:  '',
customField: '20100819-150530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162223',
internalId:  '',
customField: '20100814-170615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163023',
internalId:  '',
customField: '20100814-170804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165823',
internalId:  '',
customField: '20100824-150315'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INXVRS';
var companyName   = 'Belmont+High+School+Multi-Class+Site';
var htmlTitle	  = 'Belmont+High+School+Multi-Class+Site';
var metaKeywords  = 'Bison';
var metaContents  = 'Belmont+High+School++Cleveland+Grade+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();
};
