/* [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','1701',jdecode('Startseite+-+Begr%C3%BCssung'),jdecode(''), jdecode('%2F1701.html'), 'true',[],'',''],
	['PAGE','152812',jdecode('Aktuell'),jdecode(''), jdecode('%2F152812%2Findex.html'), 'true',[ 
		['PAGE','284512',jdecode('Pressespiegel'),jdecode(''), jdecode('%2F152812%2F284512.html'), 'true',[],'',''],
		['PAGE','284533',jdecode('Jahresberichte+SSW'),jdecode(''), jdecode('%2F152812%2F284533.html'), 'true',[],'','']
	],'',''],
	['PAGE','107243',jdecode('Anl%C3%A4sse+und+Wettk%C3%A4mpfe'),jdecode(''), jdecode('%2F107243%2Findex.html'), 'true',[ 
		['PAGE','107711',jdecode('Gewehr+300+m'),jdecode(''), jdecode('%2F107243%2F107711.html'), 'true',[],'',''],
		['PAGE','120101',jdecode('Jungsch%C3%BCtzen+300+m'),jdecode(''), jdecode('%2F107243%2F120101.html'), 'true',[],'',''],
		['PAGE','107732',jdecode('Pistole+25+m+%2F+50+m'),jdecode(''), jdecode('%2F107243%2F107732.html'), 'true',[],'',''],
		['PAGE','107753',jdecode('Kleinkaliber+50+m'),jdecode(''), jdecode('%2F107243%2F107753.html'), 'true',[],'',''],
		['PAGE','120122',jdecode('Nachwuchs+Kleinkaliber+50+m'),jdecode(''), jdecode('%2F107243%2F120122.html'), 'true',[],'',''],
		['PAGE','108001',jdecode('Luftgewehr'),jdecode(''), jdecode('%2F107243%2F108001.html'), 'true',[],'',''],
		['PAGE','120143',jdecode('Nachwuchs+Luftgewehr'),jdecode(''), jdecode('%2F107243%2F120143.html'), 'true',[],'',''],
		['PAGE','108022',jdecode('Luftpistole'),jdecode(''), jdecode('%2F107243%2F108022.html'), 'true',[],'','']
	],'',''],
	['PAGE','125901',jdecode('Resultate'),jdecode(''), jdecode('%2F125901%2Findex.html'), 'true',[ 
		['PAGE','107264',jdecode('Gewehr+300+m'),jdecode(''), jdecode('%2F125901%2F107264.html'), 'true',[],'',''],
		['PAGE','120164',jdecode('Jungsch%C3%BCtzen+300+m'),jdecode(''), jdecode('%2F125901%2F120164.html'), 'true',[],'',''],
		['PAGE','108122',jdecode('Pistole+25+m+%2F+50+m'),jdecode(''), jdecode('%2F125901%2F108122.html'), 'true',[],'',''],
		['PAGE','108143',jdecode('Kleinkaliber+50+m'),jdecode(''), jdecode('%2F125901%2F108143.html'), 'true',[],'',''],
		['PAGE','120185',jdecode('Junioren+%2F+Nachwuchs+Kleinkaliber+50+m'),jdecode(''), jdecode('%2F125901%2F120185.html'), 'true',[],'',''],
		['PAGE','108164',jdecode('Luftgewehr'),jdecode(''), jdecode('%2F125901%2F108164.html'), 'true',[],'',''],
		['PAGE','120206',jdecode('Junioren+%2F+Nachwuchs+Luftgewehr'),jdecode(''), jdecode('%2F125901%2F120206.html'), 'true',[],'',''],
		['PAGE','108185',jdecode('Luftpistole'),jdecode(''), jdecode('%2F125901%2F108185.html'), 'true',[],'','']
	],'',''],
	['PAGE','129601',jdecode('Bildergalerie'),jdecode(''), jdecode('%2F129601%2Findex.html'), 'true',[ 
		['PAGE','425767',jdecode('Sch%C3%BCtzengemeinde+2011'),jdecode(''), jdecode('%2F129601%2F425767.html'), 'true',[],'',''],
		['PAGE','406567',jdecode('Familienausflug+2011'),jdecode(''), jdecode('%2F129601%2F406567.html'), 'true',[],'',''],
		['PAGE','372256',jdecode('Luftgewehr+Plauschschiessen+2011'),jdecode(''), jdecode('%2F129601%2F372256.html'), 'true',[],'','']
	],'',''],
	['PAGE','107201',jdecode('Organisation+Stadtsch%C3%BCtzen'),jdecode(''), jdecode('%2F107201%2Findex.html'), 'true',[ 
		['PAGE','107501',jdecode('Sch%C3%BCtzenrat'),jdecode(''), jdecode('%2F107201%2F107501.html'), 'true',[],'',''],
		['PAGE','107222',jdecode('Sektionen'),jdecode(''), jdecode('%2F107201%2F107222.html'), 'true',[],'',''],
		['PAGE','107606',jdecode('Gewehr+300+m'),jdecode(''), jdecode('%2F107201%2F107606.html'), 'true',[],'',''],
		['PAGE','107627',jdecode('Pistole+25+m+%2F+50+m'),jdecode(''), jdecode('%2F107201%2F107627.html'), 'true',[],'',''],
		['PAGE','107648',jdecode('Kleinkaliber+50+m'),jdecode(''), jdecode('%2F107201%2F107648.html'), 'true',[],'',''],
		['PAGE','107669',jdecode('Luftgewehr'),jdecode(''), jdecode('%2F107201%2F107669.html'), 'true',[],'',''],
		['PAGE','107690',jdecode('Luftpistole'),jdecode(''), jdecode('%2F107201%2F107690.html'), 'true',[],'',''],
		['PAGE','120001',jdecode('Nachwuchs+%7C+Jungsch%C3%BCtzen'),jdecode(''), jdecode('%2F107201%2F120001.html'), 'true',[],'',''],
		['PAGE','119201',jdecode('Gesch%C3%A4ftsstelle'),jdecode(''), jdecode('%2F107201%2F119201.html'), 'true',[],'',''],
		['PAGE','107522',jdecode('GPK'),jdecode(''), jdecode('%2F107201%2F107522.html'), 'true',[],'',''],
		['PAGE','107543',jdecode('Medienverantwortlicher'),jdecode(''), jdecode('%2F107201%2F107543.html'), 'true',[],'',''],
		['PAGE','119301',jdecode('Sch%C3%BCtzenstube+%2F+Restaurant'),jdecode(''), jdecode('%2F107201%2F119301.html'), 'true',[],'',''],
		['PAGE','107564',jdecode('weitere+Adressen'),jdecode(''), jdecode('%2F107201%2F107564.html'), 'true',[],'',''],
		['PAGE','107585',jdecode('Statuten+und+Reglemente'),jdecode(''), jdecode('%2F107201%2F107585.html'), 'true',[],'','']
	],'',''],
	['PAGE','107101',jdecode('Geschichte'),jdecode(''), jdecode('%2F107101%2Findex.html'), 'true',[ 
		['PAGE','107401',jdecode('Zeittafel'),jdecode(''), jdecode('%2F107101%2F107401.html'), 'true',[],'',''],
		['PAGE','107422',jdecode('Br%C3%A4uche'),jdecode(''), jdecode('%2F107101%2F107422.html'), 'true',[],'',''],
		['PAGE','107443',jdecode('Heute'),jdecode(''), jdecode('%2F107101%2F107443.html'), 'true',[],'','']
	],'',''],
	['PAGE','107285',jdecode('Beitritt+%2F+Kontakt+%2F+Lageplan'),jdecode(''), jdecode('%2F107285%2Findex.html'), 'true',[ 
		['PAGE','108248',jdecode('Lageplan'),jdecode(''), jdecode('%2F107285%2F108248.html'), 'true',[],'','']
	],'',''],
	['PAGE','107306',jdecode('Links'),jdecode(''), jdecode('%2F107306%2Findex.html'), 'true',[ 
		['PAGE','121101',jdecode('Sektionen%2C+Sch%C3%BCtzen'),jdecode(''), jdecode('%2F107306%2F121101.html'), 'true',[],'',''],
		['PAGE','120701',jdecode('Fachlieferanten'),jdecode(''), jdecode('%2F107306%2F120701.html'), 'true',[],'','']
	],'',''],
	['PAGE','277612',jdecode('Extranet+Sch%C3%BCtzenrat'),jdecode(''), jdecode('%2F277612%2Findex.html'), 'true',[ 
		['PAGE','277633',jdecode('Verzeichnisse+SSW'),jdecode(''), jdecode('%2F277612%2F277633.html'), 'true',[],'',''],
		['PAGE','279012',jdecode('Vertrauliche+Reglemente+Sch%C3%BCtzenrat'),jdecode(''), jdecode('%2F277612%2F279012.html'), 'true',[],'',''],
		['PAGE','279812',jdecode('Dokumente+n%C3%A4+SR-Sitzung'),jdecode(''), jdecode('%2F277612%2F279812.html'), 'true',[],'',''],
		['PAGE','312356',jdecode('Dokumente+verschiedene'),jdecode(''), jdecode('%2F277612%2F312356.html'), 'true',[],'',''],
		['PAGE','280312',jdecode('Protokolle+GV+%2F+SR-%2F+GPK-Sitzungen'),jdecode(''), jdecode('%2F277612%2F280312.html'), 'true',[],'','']
	],'','']];
var siteelementCount=56;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='364EB6';
theSitetree.keyvisualId='7153';
theSitetree.keyvisualName='kv_7153.jpg';
theSitetree.fontsetId='16394';
theSitetree.graphicsetId='12129';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'webland',
  product: 'WSCSYSSSSLY0XFY2'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'364EB6',
				keyvisualId: 	'7153',
				keyvisualName: 	'kv_7153.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12129',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				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:  '1701',
internalId:  '',
customField: '20100621-182332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107101',
internalId:  '',
customField: '20100109-172636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107401',
internalId:  '',
customField: '20090425-202903'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '108248',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108248',
internalId:  '',
customField: '20090419-135444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '425767',
internalId:  '',
customField: '20111024-165045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107264',
internalId:  '',
customField: '20111120-203644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125901',
internalId:  '',
customField: '20111113-190938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107243',
internalId:  '',
customField: '20120116-190733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107711',
internalId:  '',
customField: '20120116-190054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107306',
internalId:  '',
customField: '20090730-094652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107201',
internalId:  '',
customField: '20101107-164149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107222',
internalId:  '',
customField: '20090425-210606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107285',
internalId:  '',
customField: '20111027-114711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120001',
internalId:  '',
customField: '20100206-220001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107422',
internalId:  '',
customField: '20090430-173208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107443',
internalId:  '',
customField: '20090425-203357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107585',
internalId:  '',
customField: '20110107-162919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107501',
internalId:  '',
customField: '20101107-151812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107522',
internalId:  '',
customField: '20090424-085356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107543',
internalId:  '',
customField: '20100615-120241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107564',
internalId:  '',
customField: '20090507-214951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107606',
internalId:  '',
customField: '20110602-162339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107627',
internalId:  '',
customField: '20111204-144857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107648',
internalId:  '',
customField: '20111204-145518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107669',
internalId:  '',
customField: '20111205-093856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107690',
internalId:  '',
customField: '20111027-114344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107732',
internalId:  '',
customField: '20110615-092834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108143',
internalId:  '',
customField: '20111205-095706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107753',
internalId:  '',
customField: '20110510-190531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108001',
internalId:  '',
customField: '20120107-105040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108122',
internalId:  '',
customField: '20120116-094204'
};
webappMappings['1501']=webappMappings['1501-1007945']={
webappId:    '1501',
documentId:  '1701',
internalId:  '1007945',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119201',
internalId:  '',
customField: '20090424-085518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119301',
internalId:  '',
customField: '20110627-170027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120101',
internalId:  '',
customField: '20110218-183831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120122',
internalId:  '',
customField: '20100405-185418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120143',
internalId:  '',
customField: '20111002-213235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108022',
internalId:  '',
customField: '20120116-092804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120701',
internalId:  '',
customField: '20090424-102611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121101',
internalId:  '',
customField: '20100515-111923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120164',
internalId:  '',
customField: '20111009-180703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120185',
internalId:  '',
customField: '20110627-165733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108164',
internalId:  '',
customField: '20120203-201703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120206',
internalId:  '',
customField: '20110220-105218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108185',
internalId:  '',
customField: '20120116-092652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129601',
internalId:  '',
customField: '20111024-163225'
};
webappMappings['7060']=webappMappings['7060-799caef00ad16f2dfb111e96965c1700']={
webappId:    '7060',
documentId:  '372256',
internalId:  '799caef00ad16f2dfb111e96965c1700',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152812',
internalId:  '',
customField: '20120116-185834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277612',
internalId:  '',
customField: '20120103-100403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '372256',
internalId:  '',
customField: '20110313-185031'
};
webappMappings['7060']=webappMappings['7060-4eec2b26b68c3a8c163644b3b963df16']={
webappId:    '7060',
documentId:  '406567',
internalId:  '4eec2b26b68c3a8c163644b3b963df16',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277633',
internalId:  '',
customField: '20120103-100724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279012',
internalId:  '',
customField: '20120103-101136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279812',
internalId:  '',
customField: '20111208-080154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '280312',
internalId:  '',
customField: '20120103-100945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284512',
internalId:  '',
customField: '20111121-181704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284533',
internalId:  '',
customField: '20110309-165128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312356',
internalId:  '',
customField: '20111208-080014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '406567',
internalId:  '',
customField: '20110827-174123'
};
webappMappings['7060']=webappMappings['7060-b4eb68f32de48793feed6fe1c4330c55']={
webappId:    '7060',
documentId:  '425767',
internalId:  'b4eb68f32de48793feed6fe1c4330c55',
customField: 'language:de;country:CH;'
};
var webAppHostname = 'wsc-app.webland.ch:80';
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010INXEXW';
var companyName   = 'Stadtsch%C3%BCtzen+Wil';
var htmlTitle	  = 'Stadtsch%C3%BCtzen+Wil';
var metaKeywords  = 'Schiessen%2C+Sportschiessen%2C+Sportsch%C3%BCtzen%2C+Pistole%2C+Gewehr%2C+Kleinkaliber%2C+Luftpistole%2C+Luftgewehr%2C+Sportpistole%2C+Standardpistole%2C+Standardgewehr%2C+Waffen%2C+Wettkampf%2C+Thurau%2C+Wil%2C+St.+Gallen';
var metaContents  = 'Stadtsch%C3%BCtzen+Wil';
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();
};

