/* [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','578',jdecode('I.+++Flugtickets'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Rossiya+Airlines'),jdecode(''),'/578/599.html','true',[],'','']
	],'',''],
	['PAGE','620',jdecode('II.++Visabeschaffungen'),jdecode(''),'/620/index.html','true',[ 
		['PAGE','329501',jdecode('Visum+Russland'),jdecode(''),'/620/329501.html','true',[],'','']
	],'',''],
	['PAGE','35801',jdecode('III.+Reisen+Russland'),jdecode(''),'/35801/index.html','true',[ 
		['PAGE','1103',jdecode('Moskau'),jdecode(''),'/35801/1103.html','true',[],'',''],
		['PAGE','1124',jdecode('St.Petersburg'),jdecode(''),'/35801/1124.html','true',[],'',''],
		['PAGE','148101',jdecode('Moskau-St.Petersburg'),jdecode(''),'/35801/148101.html','true',[],'',''],
		['PAGE','35822',jdecode('Goldener+Ring'),jdecode(''),'/35801/35822.html','true',[],'',''],
		['PAGE','324901',jdecode('Gorjatschi+Klutsch'),jdecode(''),'/35801/324901.html','true',[],'',''],
		['PAGE','73401',jdecode('Irkutsk'),jdecode(''),'/35801/73401.html','true',[],'','']
	],'',''],
	['PAGE','318801',jdecode('III.+Reisen+Belarus'),jdecode(''),'/318801/index.html','true',[ 
		['PAGE','1145',jdecode('Berst-Minsk'),jdecode(''),'/318801/1145.html','true',[],'',''],
		['PAGE','319001',jdecode('Minsk-Dududki-Brest'),jdecode(''),'/318801/319001.html','true',[],'',''],
		['PAGE','320201',jdecode('Minsk-Polotzk-Witebsk'),jdecode(''),'/318801/320201.html','true',[],'','']
	],'',''],
	['PAGE','322701',jdecode('III.+Reisen+Kroatien+%28Senj%29'),jdecode(''),'/322701.html','true',[],'',''],
	['PAGE','1250',jdecode('+++++AGB+f%C3%BCr+Reisen'),jdecode(''),'/1250.html','true',[],'',''],
	['PAGE','327901',jdecode('+++++Beschreibung+Reiseorte'),jdecode(''),'/327901/index.html','true',[ 
		['PAGE','788',jdecode('Russlands++Reiseziele'),jdecode(''),'/327901/788.html','true',[],'',''],
		['PAGE','51601',jdecode('Zentrales+Russland'),jdecode(''),'/327901/51601.html','true',[],'',''],
		['PAGE','35101',jdecode('Moskau'),jdecode(''),'/327901/35101.html','true',[],'',''],
		['PAGE','60101',jdecode('Sergiev+Possad'),jdecode(''),'/327901/60101.html','true',[],'',''],
		['PAGE','60501',jdecode('Rostov'),jdecode(''),'/327901/60501.html','true',[],'',''],
		['PAGE','60522',jdecode('Jaroslawl'),jdecode(''),'/327901/60522.html','true',[],'',''],
		['PAGE','60543',jdecode('Kostroma'),jdecode(''),'/327901/60543.html','true',[],'',''],
		['PAGE','60564',jdecode('Suzdal'),jdecode(''),'/327901/60564.html','true',[],'',''],
		['PAGE','60585',jdecode('Wladimir'),jdecode(''),'/327901/60585.html','true',[],'',''],
		['PAGE','61401',jdecode('Ivanovo'),jdecode(''),'/327901/61401.html','true',[],'',''],
		['PAGE','61422',jdecode('Novgorod'),jdecode(''),'/327901/61422.html','true',[],'',''],
		['PAGE','61443',jdecode('Smolensk'),jdecode(''),'/327901/61443.html','true',[],'',''],
		['PAGE','61464',jdecode('Pskow'),jdecode(''),'/327901/61464.html','true',[],'',''],
		['PAGE','61485',jdecode('Twer'),jdecode(''),'/327901/61485.html','true',[],'',''],
		['PAGE','61506',jdecode('Nishni+Novgorod'),jdecode(''),'/327901/61506.html','true',[],'',''],
		['PAGE','50801',jdecode('Westen+Russlands'),jdecode(''),'/327901/50801.html','true',[],'',''],
		['PAGE','65001',jdecode('Osten+Russlands'),jdecode(''),'/327901/65001.html','true',[],'',''],
		['PAGE','35122',jdecode('Sibirien%2C+Transsib'),jdecode(''),'/327901/35122.html','true',[],'',''],
		['PAGE','35143',jdecode('Norden+Russlands'),jdecode(''),'/327901/35143.html','true',[],'',''],
		['PAGE','809',jdecode('St.Petersburg'),jdecode(''),'/327901/809.html','true',[],'',''],
		['PAGE','35164',jdecode('S%C3%BCden+Russlands'),jdecode(''),'/327901/35164.html','true',[],'',''],
		['PAGE','64101',jdecode('Tips+f%C3%BCr+Russlandreise'),jdecode(''),'/327901/64101.html','true',[],'',''],
		['PAGE','851',jdecode('Belarus+Reiseziele'),jdecode(''),'/327901/851.html','true',[],'',''],
		['PAGE','830',jdecode('Ukraine+Reiseziele'),jdecode(''),'/327901/830.html','true',[],'',''],
		['PAGE','49301',jdecode('Kazakhstan+Reiseziele'),jdecode(''),'/327901/49301.html','true',[],'',''],
		['PAGE','49322',jdecode('Armenien+Reiseziele'),jdecode(''),'/327901/49322.html','true',[],'',''],
		['PAGE','55522',jdecode('Aserbaijan+Reiseziele'),jdecode(''),'/327901/55522.html','true',[],'',''],
		['PAGE','56501',jdecode('Georgien+Reiseziele'),jdecode(''),'/327901/56501.html','true',[],'',''],
		['PAGE','55501',jdecode('Uzbekistan+Reiseziele+'),jdecode(''),'/327901/55501.html','true',[],'',''],
		['PAGE','55543',jdecode('Kirgizien+Reiseziele'),jdecode(''),'/327901/55543.html','true',[],'',''],
		['PAGE','55564',jdecode('Tadjikistan+Reiseziele'),jdecode(''),'/327901/55564.html','true',[],'',''],
		['PAGE','55585',jdecode('Turkmenien+Reiseziele'),jdecode(''),'/327901/55585.html','true',[],'','']
	],'',''],
	['PAGE','323801',jdecode('IV.+Reiseversicherungen'),jdecode(''),'/323801.html','true',[],'',''],
	['PAGE','1271',jdecode('V.++Expresssendungen'),jdecode(''),'/1271/index.html','true',[ 
		['PAGE','66801',jdecode('Pre-Fill+'),jdecode(''),'/1271/66801.html','true',[],'',''],
		['PAGE','316501',jdecode('AGB+f%C3%BCr+Sendungen'),jdecode(''),'/1271/316501.html','true',[],'','']
	],'',''],
	['PAGE','1334',jdecode('VI.+Uebersetzungen'),jdecode(''),'/1334.html','true',[],'',''],
	['PAGE','317601',jdecode('+++++AGB+Uebersetzungen'),jdecode(''),'/317601.html','true',[],'',''],
	['PAGE','318201',jdecode('VII.+Money+Transfer'),jdecode(''),'/318201.html','true',[],'',''],
	['PAGE','452',jdecode('+++++%C3%BCber+uns'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','494',jdecode('So+finden+Sie+uns'),jdecode(''),'/452/494.html','true',[],'','']
	],'',''],
	['PAGE','1502',jdecode('+++++Kontakt'),jdecode(''),'/1502.html','true',[],'',''],
	['PAGE','1523',jdecode('+++++Impressum'),jdecode(''),'/1523.html','true',[],'',''],
	['PAGE','34606',jdecode('+++++G%C3%A4stebuch'),jdecode(''),'/34606/index.html','true',[ 
		['PAGE','34601',jdecode('Eintr%C3%A4ge'),jdecode(''),'/34606/34601.html','false',[],'','']
	],'',''],
	['PAGE','9401',jdecode('+++++Ihr+Weg+zu+uns'),jdecode(''),'/9401.html','true',[],'',''],
	['PAGE','27101',jdecode('+++++Anfahrt'),jdecode(''),'/27101.html','true',[],'','']];
var siteelementCount=66;
theSitetree.topTemplateName='Measure';
theSitetree.paletteFamily='BAD68A';
theSitetree.keyvisualId='3873';
theSitetree.keyvisualName='kv_3873.jpg';
theSitetree.fontsetId='10492';
theSitetree.graphicsetId='11072';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Measure',
				paletteFamily: 	'BAD68A',
				keyvisualId: 	'3873',
				keyvisualName: 	'kv_3873.jpg',
				fontsetId: 		'10492',
				graphicsetId: 	'11072',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'82A04F',
				e_color: 		'82A04F',
				f_color: 		'82A04F',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '9401',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '27101',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-27112505']={
webappId:    '1501',
documentId:  '401',
internalId:  '27112505',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-34606abw0x0inend8']={
webappId:    '1002',
documentId:  '34606',
internalId:  '34606abw0x0inend8',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '316501',
internalId:  '',
customField: '20100902-153316'
};
webappMappings['7008']=webappMappings['7008-271']={
webappId:    '7008',
documentId:  '66801',
internalId:  '271',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100903-112328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100408-144224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100903-115431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20100312-221547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20100203-195239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1103',
internalId:  '',
customField: '20090520-220018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1124',
internalId:  '',
customField: '20090520-220039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35822',
internalId:  '',
customField: '20090520-220138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73401',
internalId:  '',
customField: '20090520-220206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1145',
internalId:  '',
customField: '20090811-152419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20090207-143332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51601',
internalId:  '',
customField: '20090210-121951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20090131-130800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60101',
internalId:  '',
customField: '20090131-130819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60501',
internalId:  '',
customField: '20090131-130839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60522',
internalId:  '',
customField: '20090131-130857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60543',
internalId:  '',
customField: '20090131-130915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60564',
internalId:  '',
customField: '20090131-130934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60585',
internalId:  '',
customField: '20090131-130950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61401',
internalId:  '',
customField: '20090131-131024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61422',
internalId:  '',
customField: '20090131-131045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61443',
internalId:  '',
customField: '20090131-131104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61464',
internalId:  '',
customField: '20090131-131124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61485',
internalId:  '',
customField: '20090131-131143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61506',
internalId:  '',
customField: '20090210-151627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20090131-131218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65001',
internalId:  '',
customField: '20090131-131235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35122',
internalId:  '',
customField: '20090207-125401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35143',
internalId:  '',
customField: '20090131-131316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20090131-131340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35164',
internalId:  '',
customField: '20090131-131359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20100204-145228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20090131-131437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20090131-131453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20090226-105908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49322',
internalId:  '',
customField: '20090131-131520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55522',
internalId:  '',
customField: '20090131-131535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20090131-131550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20090131-131605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55543',
internalId:  '',
customField: '20090131-131621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55564',
internalId:  '',
customField: '20090131-131636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55585',
internalId:  '',
customField: '20090131-131653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1250',
internalId:  '',
customField: '20100203-194626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1271',
internalId:  '',
customField: '20100902-154930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20090131-131739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1334',
internalId:  '',
customField: '20090801-181322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100203-185823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091030-182241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1502',
internalId:  '',
customField: '20100313-134953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1523',
internalId:  '',
customField: '20090806-161831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34606',
internalId:  '',
customField: '20090131-131931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20081209-222451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20090131-131947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20090131-132003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148101',
internalId:  '',
customField: '20090520-220106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '317601',
internalId:  '',
customField: '20091102-175356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318201',
internalId:  '',
customField: '20091127-210513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318801',
internalId:  '',
customField: '20100203-195604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '319001',
internalId:  '',
customField: '20090811-133622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '320201',
internalId:  '',
customField: '20090811-134130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '322701',
internalId:  '',
customField: '20100203-195336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '323801',
internalId:  '',
customField: '20100203-202007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '324901',
internalId:  '',
customField: '20091104-110610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '327901',
internalId:  '',
customField: '20100903-105835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329501',
internalId:  '',
customField: '20100408-144728'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INEND8';
var companyName   = 'Priority+World+GmbH';
var htmlTitle	  = 'Homepage+Priority+World';
var metaKeywords  = 'Flugtickets%2C+flight%2C+tickets%2C+Russlandsreise%2C+Russie%2C+Moscow%2CSt.Petersburg%2C++Kiev%2COdessa%2C+Belarus%2C+Minsk%2C+Brest%2C+Ukraine%2C+Kazakhstan%2C++Verkauf+von+Flugtickets%2C+Reisen%2C+Reiseversicherungen%2C+Versand+von+Dokumente%2C+Pakete%2C+Ubersetzungen%2C+Z%C3%BCrich%2C+Schweiz%2C+Kanton+Z%C3%BCrich';
var metaContents  = 'Verkauf+von+Flugtickets%2C+Reisen%2C+Reiseversicherungen%2C+Versand+von+Dokumente%2C+Pakete%2C+Ubersetzungen';
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();
};
