/* [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 theSitetree=[ 
	['PAGE','278',jdecode('Home'),jdecode(''),'/278.html','true',[],''],
	['PAGE','9910',jdecode('Southern+Silver'),jdecode(''),'/9910/index.html','true',[ 
		['PAGE','10516',jdecode('1197'),jdecode(''),'/9910/10516.html','true',[],''],
		['PAGE','10525',jdecode('1198'),jdecode(''),'/9910/10525.html','true',[],''],
		['PAGE','10534',jdecode('1199'),jdecode(''),'/9910/10534.html','true',[],''],
		['PAGE','10561',jdecode('1202'),jdecode(''),'/9910/10561.html','true',[],''],
		['PAGE','10570',jdecode('1203'),jdecode(''),'/9910/10570.html','true',[],''],
		['PAGE','10588',jdecode('1205'),jdecode(''),'/9910/10588.html','true',[],''],
		['PAGE','10597',jdecode('1206'),jdecode(''),'/9910/10597.html','true',[],''],
		['PAGE','10606',jdecode('1207'),jdecode(''),'/9910/10606.html','true',[],''],
		['PAGE','10615',jdecode('1208'),jdecode(''),'/9910/10615.html','true',[],''],
		['PAGE','10624',jdecode('1209'),jdecode(''),'/9910/10624.html','true',[],''],
		['PAGE','10633',jdecode('1210'),jdecode(''),'/9910/10633.html','true',[],''],
		['PAGE','12187',jdecode('1212'),jdecode(''),'/9910/12187.html','true',[],''],
		['PAGE','12196',jdecode('1213'),jdecode(''),'/9910/12196.html','true',[],''],
		['PAGE','12205',jdecode('1214'),jdecode(''),'/9910/12205.html','true',[],''],
		['PAGE','12214',jdecode('1215'),jdecode(''),'/9910/12214.html','true',[],''],
		['PAGE','12241',jdecode('1218'),jdecode(''),'/9910/12241.html','true',[],''],
		['PAGE','11654',jdecode('1219'),jdecode(''),'/9910/11654.html','true',[],''],
		['PAGE','11419',jdecode('1220'),jdecode(''),'/9910/11419.html','true',[],''],
		['PAGE','11428',jdecode('1221'),jdecode(''),'/9910/11428.html','true',[],''],
		['PAGE','11437',jdecode('1222'),jdecode(''),'/9910/11437.html','true',[],''],
		['PAGE','11446',jdecode('1223'),jdecode(''),'/9910/11446.html','true',[],''],
		['PAGE','11588',jdecode('1224'),jdecode(''),'/9910/11588.html','true',[],''],
		['PAGE','11455',jdecode('1225'),jdecode(''),'/9910/11455.html','true',[],''],
		['PAGE','15112',jdecode('1249'),jdecode(''),'/9910/15112.html','true',[],''],
		['PAGE','15121',jdecode('1250'),jdecode(''),'/9910/15121.html','true',[],''],
		['PAGE','19976',jdecode('1268'),jdecode(''),'/9910/19976.html','true',[],''],
		['PAGE','19985',jdecode('1280'),jdecode(''),'/9910/19985.html','true',[],''],
		['PAGE','30201',jdecode('1273'),jdecode(''),'/9910/30201.html','true',[],''],
		['PAGE','20003',jdecode('1282'),jdecode(''),'/9910/20003.html','true',[],''],
		['PAGE','20012',jdecode('1283'),jdecode(''),'/9910/20012.html','true',[],''],
		['PAGE','31301',jdecode('1288'),jdecode(''),'/9910/31301.html','true',[],'']
	],''],
	['PAGE','788',jdecode('Hollow+Ware'),jdecode(''),'/788/index.html','true',[ 
		['PAGE','3422',jdecode('1113'),jdecode(''),'/788/3422.html','true',[],''],
		['PAGE','3458',jdecode('1092'),jdecode(''),'/788/3458.html','true',[],''],
		['PAGE','3476',jdecode('1077'),jdecode(''),'/788/3476.html','true',[],''],
		['PAGE','16268',jdecode('1252'),jdecode(''),'/788/16268.html','true',[],''],
		['PAGE','16277',jdecode('1253'),jdecode(''),'/788/16277.html','true',[],''],
		['PAGE','17388',jdecode('1259'),jdecode(''),'/788/17388.html','true',[],''],
		['PAGE','17415',jdecode('1265'),jdecode(''),'/788/17415.html','true',[],''],
		['PAGE','17433',jdecode('1267'),jdecode(''),'/788/17433.html','true',[],''],
		['PAGE','34701',jdecode('1289'),jdecode(''),'/788/34701.html','true',[],'']
	],''],
	['PAGE','797',jdecode('Spoons+%26+Ladles'),jdecode(''),'/797/index.html','true',[ 
		['PAGE','3309',jdecode('1078'),jdecode(''),'/797/3309.html','true',[],''],
		['PAGE','3989',jdecode('1067'),jdecode(''),'/797/3989.html','true',[],''],
		['PAGE','4797',jdecode('1109'),jdecode(''),'/797/4797.html','true',[],''],
		['PAGE','7834',jdecode('1137'),jdecode(''),'/797/7834.html','true',[],''],
		['PAGE','7843',jdecode('1138'),jdecode(''),'/797/7843.html','true',[],''],
		['PAGE','7897',jdecode('1144'),jdecode(''),'/797/7897.html','true',[],''],
		['PAGE','14746',jdecode('1241'),jdecode(''),'/797/14746.html','true',[],''],
		['PAGE','14755',jdecode('1242'),jdecode(''),'/797/14755.html','true',[],''],
		['PAGE','15343',jdecode('1243'),jdecode(''),'/797/15343.html','true',[],''],
		['PAGE','15352',jdecode('1244'),jdecode(''),'/797/15352.html','true',[],''],
		['PAGE','14764',jdecode('1245'),jdecode(''),'/797/14764.html','true',[],''],
		['PAGE','15370',jdecode('1247'),jdecode(''),'/797/15370.html','true',[],''],
		['PAGE','15130',jdecode('1248'),jdecode(''),'/797/15130.html','true',[],''],
		['PAGE','15379',jdecode('1251'),jdecode(''),'/797/15379.html','true',[],''],
		['PAGE','16295',jdecode('1256'),jdecode(''),'/797/16295.html','true',[],''],
		['PAGE','17460',jdecode('1263'),jdecode(''),'/797/17460.html','true',[],''],
		['PAGE','18462',jdecode('1270'),jdecode(''),'/797/18462.html','true',[],''],
		['PAGE','18489',jdecode('1274'),jdecode(''),'/797/18489.html','true',[],''],
		['PAGE','18498',jdecode('1275'),jdecode(''),'/797/18498.html','true',[],'']
	],''],
	['PAGE','1261',jdecode('Forks'),jdecode(''),'/1261/index.html','true',[ 
		['PAGE','4016',jdecode('1051'),jdecode(''),'/1261/4016.html','true',[],''],
		['PAGE','6984',jdecode('1131'),jdecode(''),'/1261/6984.html','true',[],''],
		['PAGE','7029',jdecode('1136'),jdecode(''),'/1261/7029.html','true',[],'']
	],''],
	['PAGE','1270',jdecode('Knives'),jdecode(''),'/1270/index.html','true',[ 
		['PAGE','16313',jdecode('1257'),jdecode(''),'/1270/16313.html','true',[],'']
	],''],
	['PAGE','16971',jdecode('English+Silver'),jdecode(''),'/16971/index.html','true',[ 
		['PAGE','16980',jdecode('1258'),jdecode(''),'/16971/16980.html','true',[],''],
		['PAGE','29572',jdecode('1286'),jdecode(''),'/16971/29572.html','true',[],'']
	],''],
	['PAGE','1279',jdecode('Furniture'),jdecode(''),'/1279/index.html','true',[ 
		['PAGE','9704',jdecode('1152'),jdecode(''),'/1279/9704.html','true',[],''],
		['PAGE','13157',jdecode('1230'),jdecode(''),'/1279/13157.html','true',[],''],
		['PAGE','13202',jdecode('1236'),jdecode(''),'/1279/13202.html','true',[],''],
		['PAGE','19567',jdecode('1277'),jdecode(''),'/1279/19567.html','true',[],''],
		['PAGE','19576',jdecode('1278'),jdecode(''),'/1279/19576.html','true',[],'']
	],''],
	['PAGE','1288',jdecode('Paintings'),jdecode(''),'/1288/index.html','true',[ 
		['PAGE','4034',jdecode('1103'),jdecode(''),'/1288/4034.html','true',[],''],
		['PAGE','14581',jdecode('1238'),jdecode(''),'/1288/14581.html','true',[],'']
	],''],
	['PAGE','1297',jdecode('Miscellaneous'),jdecode(''),'/1297/index.html','true',[ 
		['PAGE','4043',jdecode('1076'),jdecode(''),'/1297/4043.html','true',[],'']
	],''],
	['PAGE','1333',jdecode('Contact+Us'),jdecode(''),'/1333.html','true',[],'']];
var siteelementCount=84;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '278',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278',
internalId:  '',
customField: '20091024-073245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '797',
internalId:  '',
customField: '20091006-101932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9910',
internalId:  '',
customField: '20090708-085541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20100104-110404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10516',
internalId:  '',
customField: '20070727-153427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10525',
internalId:  '',
customField: '20060619-152654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10534',
internalId:  '',
customField: '20060619-163746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10561',
internalId:  '',
customField: '20060619-162413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10570',
internalId:  '',
customField: '20060619-165140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10588',
internalId:  '',
customField: '20060630-185406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10597',
internalId:  '',
customField: '20060619-190116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10606',
internalId:  '',
customField: '20060630-190133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10615',
internalId:  '',
customField: '20060619-191412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10624',
internalId:  '',
customField: '20060619-192225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10633',
internalId:  '',
customField: '20081219-092107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12187',
internalId:  '',
customField: '20060707-153808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12196',
internalId:  '',
customField: '20060707-155106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12205',
internalId:  '',
customField: '20060629-170710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12214',
internalId:  '',
customField: '20060629-171514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12241',
internalId:  '',
customField: '20060629-172311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11654',
internalId:  '',
customField: '20060629-173143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11419',
internalId:  '',
customField: '20060623-155242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11428',
internalId:  '',
customField: '20060623-160337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11437',
internalId:  '',
customField: '20060623-161628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11446',
internalId:  '',
customField: '20060623-162844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11588',
internalId:  '',
customField: '20060623-170558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11455',
internalId:  '',
customField: '20060621-142624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20090708-085714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15112',
internalId:  '',
customField: '20061106-202423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15121',
internalId:  '',
customField: '20061101-164823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19976',
internalId:  '',
customField: '20080528-193026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19985',
internalId:  '',
customField: '20080603-144432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20003',
internalId:  '',
customField: '20080603-151546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20012',
internalId:  '',
customField: '20080603-155159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3422',
internalId:  '',
customField: '20060424-183311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3458',
internalId:  '',
customField: '20060424-183443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3476',
internalId:  '',
customField: '20060116-203845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16268',
internalId:  '',
customField: '20070608-163520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16277',
internalId:  '',
customField: '20070608-163430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17388',
internalId:  '',
customField: '20071203-150649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17415',
internalId:  '',
customField: '20071207-164035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17433',
internalId:  '',
customField: '20071207-170819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3309',
internalId:  '',
customField: '20060424-184638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3989',
internalId:  '',
customField: '20060424-184731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4797',
internalId:  '',
customField: '20060424-184823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7834',
internalId:  '',
customField: '20060424-185127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20060424-185150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7897',
internalId:  '',
customField: '20060424-185348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14746',
internalId:  '',
customField: '20061031-203226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14755',
internalId:  '',
customField: '20061031-204333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20061106-162907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15352',
internalId:  '',
customField: '20061106-163826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14764',
internalId:  '',
customField: '20061031-205449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15370',
internalId:  '',
customField: '20061106-201439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15130',
internalId:  '',
customField: '20061101-163603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15379',
internalId:  '',
customField: '20061106-203607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16295',
internalId:  '',
customField: '20070608-163317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17460',
internalId:  '',
customField: '20071203-165044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18462',
internalId:  '',
customField: '20080414-163053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20090112-112717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18489',
internalId:  '',
customField: '20080414-171040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18498',
internalId:  '',
customField: '20080414-172059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1261',
internalId:  '',
customField: '20091029-083132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4016',
internalId:  '',
customField: '20060424-190717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6984',
internalId:  '',
customField: '20060424-190029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7029',
internalId:  '',
customField: '20060424-190148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34701',
internalId:  '',
customField: '20100104-110457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1270',
internalId:  '',
customField: '20070608-164115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16313',
internalId:  '',
customField: '20070608-164435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16971',
internalId:  '',
customField: '20080910-145556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16980',
internalId:  '',
customField: '20070727-140853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29572',
internalId:  '',
customField: '20080910-145509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1279',
internalId:  '',
customField: '20100205-135059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9704',
internalId:  '',
customField: '20060719-170422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13157',
internalId:  '',
customField: '20080725-141116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13202',
internalId:  '',
customField: '20060719-152619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19567',
internalId:  '',
customField: '20080805-114605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19576',
internalId:  '',
customField: '20080424-140552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1288',
internalId:  '',
customField: '20070717-144105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4034',
internalId:  '',
customField: '20060424-190335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14581',
internalId:  '',
customField: '20061020-190206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1297',
internalId:  '',
customField: '20090106-104135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4043',
internalId:  '',
customField: '20060424-190418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1333',
internalId:  '',
customField: '20060628-145543'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEGWE';
var companyName   = 'Twickenham+Antiques%2C+Inc.++++++++';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
