/* [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','81001',jdecode('Fallen+Heroes'),jdecode(''), jdecode('%2F81001%2Findex.html'), 'true',[ 
		['PAGE','161523',jdecode('Ceremony+-+2010+Bash'),jdecode(''), jdecode('%2F81001%2F161523.html'), 'true',[],'','']
	],'',''],
	['PAGE','64101',jdecode('In+the+News'),jdecode(''), jdecode('%2F64101.html'), 'true',[],'',''],
	['PAGE','58001',jdecode('Alumni+Association'),jdecode(''), jdecode('%2F58001%2Findex.html'), 'true',[ 
		['PAGE','59701',jdecode('Meeting+Recaps'),jdecode(''), jdecode('%2F58001%2F59701.html'), 'true',[],'',''],
		['PAGE','77401',jdecode('Alumni+Enrollment'),jdecode(''), jdecode('%2F58001%2F77401.html'), 'true',[],'','']
	],'',''],
	['PAGE','79701',jdecode('Photos+from+the+Past'),jdecode(''), jdecode('%2F79701.html'), 'true',[],'',''],
	['PAGE','53901',jdecode('64+State+Champs'),jdecode(''), jdecode('%2F53901.html'), 'true',[],'',''],
	['PAGE','136312',jdecode('Class+1960'),jdecode(''), jdecode('%2F136312.html'), 'true',[],'',''],
	['PAGE','181745',jdecode('Class+1961'),jdecode(''), jdecode('%2F181745.html'), 'true',[],'',''],
	['PAGE','78701',jdecode('Class+1962'),jdecode(''), jdecode('%2F78701.html'), 'true',[],'',''],
	['PAGE','86501',jdecode('Class+1963'),jdecode(''), jdecode('%2F86501%2Findex.html'), 'true',[ 
		['PAGE','188845',jdecode('In+Memory'),jdecode(''), jdecode('%2F86501%2F188845.html'), 'true',[],'','']
	],'',''],
	['PAGE','95201',jdecode('Class+1964'),jdecode(''), jdecode('%2F95201%2Findex.html'), 'true',[ 
		['PAGE','95222',jdecode('Reunion+Info'),jdecode(''), jdecode('%2F95201%2F95222.html'), 'true',[],'','']
	],'',''],
	['PAGE','7801',jdecode('Class+1965'),jdecode(''), jdecode('%2F7801.html'), 'true',[],'',''],
	['PAGE','7822',jdecode('Class+1966'),jdecode(''), jdecode('%2F7822%2Findex.html'), 'true',[ 
		['PAGE','177934',jdecode('Reunion+45th'),jdecode(''), jdecode('%2F7822%2F177934.html'), 'true',[],'','']
	],'',''],
	['PAGE','29601',jdecode('Class+1967'),jdecode(''), jdecode('%2F29601%2Findex.html'), 'true',[ 
		['PAGE','41401',jdecode('In+Memory'),jdecode(''), jdecode('%2F29601%2F41401.html'), 'true',[],'',''],
		['PAGE','147423',jdecode('Reunion+Info'),jdecode(''), jdecode('%2F29601%2F147423.html'), 'true',[],'','']
	],'',''],
	['PAGE','7843',jdecode('Class+1968'),jdecode(''), jdecode('%2F7843%2Findex.html'), 'true',[ 
		['PAGE','50501',jdecode('In+Memory'),jdecode(''), jdecode('%2F7843%2F50501.html'), 'true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Class+1969'),jdecode(''), jdecode('%2F473%2Findex.html'), 'true',[ 
		['PAGE','7864',jdecode('In+Memory'),jdecode(''), jdecode('%2F473%2F7864.html'), 'true',[],'',''],
		['PAGE','11301',jdecode('Trivia'),jdecode(''), jdecode('%2F473%2F11301.html'), 'true',[],'',''],
		['PAGE','43101',jdecode('Classmates+Missing'),jdecode(''), jdecode('%2F473%2F43101.html'), 'true',[],'',''],
		['PAGE','62201',jdecode('Reunion+Confirmation'),jdecode(''), jdecode('%2F473%2F62201.html'), 'true',[],'',''],
		['PAGE','69101',jdecode('69+Golf+Scramble'),jdecode(''), jdecode('%2F473%2F69101.html'), 'true',[],'','']
	],'',''],
	['PAGE','494',jdecode('Class+1970'),jdecode(''), jdecode('%2F494%2Findex.html'), 'true',[ 
		['PAGE','7501',jdecode('In+Memory'),jdecode(''), jdecode('%2F494%2F7501.html'), 'true',[],'',''],
		['PAGE','9901',jdecode('Trivia'),jdecode(''), jdecode('%2F494%2F9901.html'), 'true',[],'',''],
		['PAGE','62222',jdecode('Last+Will'),jdecode(''), jdecode('%2F494%2F62222.html'), 'true',[],'',''],
		['PAGE','63101',jdecode('Class+Prophesy'),jdecode(''), jdecode('%2F494%2F63101.html'), 'true',[],'',''],
		['PAGE','146523',jdecode('Reunion'),jdecode(''), jdecode('%2F494%2F146523.html'), 'true',[],'',''],
		['PAGE','149123',jdecode('Veterans'),jdecode(''), jdecode('%2F494%2F149123.html'), 'true',[],'',''],
		['PAGE','149144',jdecode('Classmates'),jdecode(''), jdecode('%2F494%2F149144.html'), 'true',[],'','']
	],'',''],
	['PAGE','515',jdecode('Class+1971'),jdecode(''), jdecode('%2F515%2Findex.html'), 'true',[ 
		['PAGE','38801',jdecode('In+Memory+Of'),jdecode(''), jdecode('%2F515%2F38801.html'), 'true',[],'',''],
		['PAGE','175834',jdecode('40th+Reunion'),jdecode(''), jdecode('%2F515%2F175834.html'), 'true',[],'','']
	],'',''],
	['PAGE','536',jdecode('Class+1972'),jdecode(''), jdecode('%2F536%2Findex.html'), 'true',[ 
		['PAGE','7885',jdecode('In+Memory'),jdecode(''), jdecode('%2F536%2F7885.html'), 'true',[],'',''],
		['PAGE','186845',jdecode('40th+Reunion'),jdecode(''), jdecode('%2F536%2F186845.html'), 'true',[],'','']
	],'',''],
	['PAGE','99401',jdecode('Class+1975'),jdecode(''), jdecode('%2F99401%2Findex.html'), 'true',[ 
		['PAGE','99422',jdecode('In+Memory'),jdecode(''), jdecode('%2F99401%2F99422.html'), 'true',[],'','']
	],'',''],
	['PAGE','114301',jdecode('Class+1976'),jdecode(''), jdecode('%2F114301.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('Class+1977'),jdecode(''), jdecode('%2F7201%2Findex.html'), 'true',[ 
		['PAGE','184145',jdecode('35th+Reunion'),jdecode(''), jdecode('%2F7201%2F184145.html'), 'true',[],'',''],
		['PAGE','75901',jdecode('In+Memory'),jdecode(''), jdecode('%2F7201%2F75901.html'), 'true',[],'','']
	],'',''],
	['PAGE','90701',jdecode('Class+1979'),jdecode(''), jdecode('%2F90701%2Findex.html'), 'true',[ 
		['PAGE','92201',jdecode('InMemory'),jdecode(''), jdecode('%2F90701%2F92201.html'), 'true',[],'','']
	],'',''],
	['PAGE','57201',jdecode('Class+1983'),jdecode(''), jdecode('%2F57201.html'), 'true',[],'',''],
	['PAGE','142212',jdecode('Class+1986'),jdecode(''), jdecode('%2F142212.html'), 'true',[],'',''],
	['PAGE','84301',jdecode('Class+1988'),jdecode(''), jdecode('%2F84301.html'), 'true',[],'',''],
	['PAGE','104301',jdecode('Class+1989'),jdecode(''), jdecode('%2F104301.html'), 'true',[],'',''],
	['PAGE','162223',jdecode('Class+1990'),jdecode(''), jdecode('%2F162223.html'), 'true',[],'',''],
	['PAGE','167223',jdecode('Class+1991'),jdecode(''), jdecode('%2F167223%2Findex.html'), 'true',[ 
		['PAGE','177034',jdecode('20th+Reunion'),jdecode(''), jdecode('%2F167223%2F177034.html'), 'true',[],'','']
	],'',''],
	['PAGE','163023',jdecode('Big+Belmont+Bash+2011'),jdecode(''), jdecode('%2F163023.html'), 'true',[],'',''],
	['PAGE','186745',jdecode('Big+Belmont+Bash+2012'),jdecode(''), jdecode('%2F186745%2Findex.html'), 'true',[ 
		['PAGE','195545',jdecode('Golf+Outting'),jdecode(''), jdecode('%2F186745%2F195545.html'), 'true',[],'','']
	],'',''],
	['PAGE','5906',jdecode('Guestbook'),jdecode(''), jdecode('%2F5906%2Findex.html'), 'true',[ 
		['PAGE','5901',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F5906%2F5901.html'), 'false',[],'','']
	],'',''],
	['PAGE','10701',jdecode('School+History'),jdecode(''), jdecode('%2F10701.html'), 'true',[],'',''],
	['PAGE','35701',jdecode('Classmates+Businesses'),jdecode(''), jdecode('%2F35701.html'), 'true',[],'',''],
	['PAGE','44401',jdecode('Bucky+Bison'),jdecode(''), jdecode('%2F44401.html'), 'true',[],'',''],
	['PAGE','36801',jdecode('Multi-Class+Photos'),jdecode(''), jdecode('%2F36801.html'), 'true',[],'',''],
	['PAGE','137912',jdecode('Groundbreaking'),jdecode(''), jdecode('%2F137912.html'), 'true',[],'','']];
var siteelementCount=69;
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 prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
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: '20110308-150830'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20111225-221832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20120108-091017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20110308-150857'
};
webappMappings['1501']=webappMappings['1501-1668402']={
webappId:    '1501',
documentId:  '401',
internalId:  '1668402',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20120108-090933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7822',
internalId:  '',
customField: '20100922-154612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20110308-150957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20110409-093519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20100922-154727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20110817-173713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7864',
internalId:  '',
customField: '20111029-095721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75901',
internalId:  '',
customField: '20090428-192032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20110308-150931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20101209-185043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20111215-152025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20101222-130102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20101222-130239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20101209-184959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100922-154901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7885',
internalId:  '',
customField: '20111029-100037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20120108-091134'
};
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:  '186745',
internalId:  '',
customField: '20110817-174932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20120108-091417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20120108-091512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20120108-091539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20110308-151135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20100922-155359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20120108-090703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20120108-091206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20111002-125734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62222',
internalId:  '',
customField: '20101222-130115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63101',
internalId:  '',
customField: '20101222-130134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20120108-090618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20110308-150808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77401',
internalId:  '',
customField: '20110308-151200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78701',
internalId:  '',
customField: '20120108-090851'
};
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: '20101222-125759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86501',
internalId:  '',
customField: '20110522-145040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84301',
internalId:  '',
customField: '20120108-091251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90701',
internalId:  '',
customField: '20101219-213411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136312',
internalId:  '',
customField: '20120108-090742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92201',
internalId:  '',
customField: '20110814-173842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95201',
internalId:  '',
customField: '20100922-154544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95222',
internalId:  '',
customField: '20090201-104201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195545',
internalId:  '',
customField: '20120108-091714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99401',
internalId:  '',
customField: '20100922-154949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99422',
internalId:  '',
customField: '20090919-102330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20120108-091320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114301',
internalId:  '',
customField: '20120108-091044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137912',
internalId:  '',
customField: '20120108-091626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142212',
internalId:  '',
customField: '20120108-091228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146523',
internalId:  '',
customField: '20110814-173823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147423',
internalId:  '',
customField: '20110817-174652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149144',
internalId:  '',
customField: '20110308-150647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149123',
internalId:  '',
customField: '20110308-150710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161523',
internalId:  '',
customField: '20100819-150530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162223',
internalId:  '',
customField: '20120108-091347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163023',
internalId:  '',
customField: '20110817-175001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188845',
internalId:  '',
customField: '20110903-091220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167223',
internalId:  '',
customField: '20110106-193614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175834',
internalId:  '',
customField: '20110512-204259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177034',
internalId:  '',
customField: '20110306-204743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177934',
internalId:  '',
customField: '20110308-150218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181745',
internalId:  '',
customField: '20120108-090818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184145',
internalId:  '',
customField: '20110718-160615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186845',
internalId:  '',
customField: '20110817-175113'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.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();
};

