/* [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','1994',jdecode('Aktualno%C5%9Bci'),jdecode(''),'/1994.html','true',[],'',''],
	['PAGE','151756',jdecode('Kim+jeste%C5%9Bmy'),jdecode(''),'/151756/index.html','true',[ 
		['PAGE','1901',jdecode('Cel+projektu'),jdecode(''),'/151756/1901.html','true',[],'',''],
		['PAGE','1952',jdecode('Zesp%C3%B3%C5%82'),jdecode(''),'/151756/1952.html','true',[],'',''],
		['PAGE','151777',jdecode('Miejsce'),jdecode(''),'/151756/151777.html','true',[],'','']
	],'',''],
	['PAGE','138256',jdecode('Nasz+sklep'),jdecode(''),'/138256.html','true',[],'',''],
	['PAGE','158156',jdecode('Kartki'),jdecode(''),'/158156.html','true',[],'',''],
	['PAGE','151856',jdecode('Opieka+na+godziny'),jdecode(''),'/151856/index.html','true',[ 
		['PAGE','151877',jdecode('Klubik+Zabawianek'),jdecode(''),'/151856/151877.html','true',[],'',''],
		['PAGE','151898',jdecode('Mama+ma+czas'),jdecode(''),'/151856/151898.html','true',[],'',''],
		['PAGE','168656',jdecode('regulaminy'),jdecode(''),'/151856/168656.html','true',[],'','']
	],'',''],
	['PAGE','1973',jdecode('Zaj%C4%99cia+dla+dzieci'),jdecode(''),'/1973/index.html','true',[ 
		['PAGE','45465',jdecode('Radosne+Biedronki'),jdecode(''),'/1973/45465.html','true',[],'',''],
		['PAGE','45486',jdecode('Skoczne+%C5%BBabki'),jdecode(''),'/1973/45486.html','true',[],'',''],
		['PAGE','45507',jdecode('Kreatywne+Zaj%C4%85czki'),jdecode(''),'/1973/45507.html','true',[],'',''],
		['PAGE','161056',jdecode('Dubi+Bebe'),jdecode(''),'/1973/161056.html','true',[],'',''],
		['PAGE','45528',jdecode('PEksperymentatora'),jdecode(''),'/1973/45528.html','true',[],'',''],
		['PAGE','141456',jdecode('PPodroznika'),jdecode(''),'/1973/141456.html','true',[],'',''],
		['PAGE','155677',jdecode('PMatematyka'),jdecode(''),'/1973/155677.html','true',[],'',''],
		['PAGE','131356',jdecode('Bli%C5%BCej+emocji'),jdecode(''),'/1973/131356.html','true',[],'',''],
		['PAGE','53623',jdecode('Regulamin+udzia%C5%82u'),jdecode(''),'/1973/53623.html','true',[],'',''],
		['PAGE','90356',jdecode('Zdj%C4%99cia+z+zaj%C4%99%C4%87'),jdecode(''),'/1973/90356.html','true',[],'',''],
		['PAGE','61123',jdecode('Chustonoszenie'),jdecode(''),'/1973/61123.html','false',[],'',''],
		['PAGE','69223',jdecode('O+chustonoszeniu'),jdecode(''),'/1973/69223.html','false',[],'',''],
		['PAGE','69244',jdecode('Warsztaty'),jdecode(''),'/1973/69244.html','false',[],'','']
	],'',''],
	['PAGE','151919',jdecode('Zaj%C4%99cia+dla+doros%C5%82ych'),jdecode(''),'/151919/index.html','true',[ 
		['PAGE','112256',jdecode('Pierwsza+pomoc'),jdecode(''),'/151919/112256.html','true',[],'',''],
		['PAGE','166556',jdecode('Muzykalne+brzuszki'),jdecode(''),'/151919/166556.html','true',[],'',''],
		['PAGE','155056',jdecode('Mniam+mniam'),jdecode(''),'/151919/155056.html','true',[],'',''],
		['PAGE','155077',jdecode('Swiadomy+porod'),jdecode(''),'/151919/155077.html','true',[],'',''],
		['PAGE','155098',jdecode('Rekodzielo'),jdecode(''),'/151919/155098.html','true',[],'',''],
		['PAGE','64223',jdecode('Rodzicielskie+rozmowy'),jdecode(''),'/151919/64223.html','true',[],'','']
	],'',''],
	['PAGE','9312',jdecode('Zapisy+i+cennik'),jdecode(''),'/9312/index.html','true',[ 
		['PAGE','59023',jdecode('Zapisy+online'),jdecode(''),'/9312/59023.html','true',[],'','']
	],'',''],
	['PAGE','61144',jdecode('M%C4%85dre+R%C4%85czki'),jdecode(''),'/61144.html','true',[],'',''],
	['PAGE','2015',jdecode('Zabawy+dla+malucha'),jdecode(''),'/2015/index.html','true',[ 
		['PAGE','101856',jdecode('zabawy+6-12'),jdecode(''),'/2015/101856.html','true',[],'',''],
		['PAGE','103256',jdecode('akuku'),jdecode(''),'/2015/103256.html','true',[],'',''],
		['PAGE','103277',jdecode('jedzonko'),jdecode(''),'/2015/103277.html','true',[],'',''],
		['PAGE','103298',jdecode('kamienie'),jdecode(''),'/2015/103298.html','true',[],'',''],
		['PAGE','124098',jdecode('Teksty'),jdecode(''),'/2015/124098.html','true',[],'',''],
		['PAGE','103319',jdecode('bujanie'),jdecode(''),'/2015/103319.html','true',[],'',''],
		['PAGE','101877',jdecode('zabawy+12-24'),jdecode(''),'/2015/101877.html','true',[],'',''],
		['PAGE','103340',jdecode('farby'),jdecode(''),'/2015/103340.html','true',[],'',''],
		['PAGE','103361',jdecode('naklejki'),jdecode(''),'/2015/103361.html','true',[],'',''],
		['PAGE','101898',jdecode('zabawy+2+i+wiecej'),jdecode(''),'/2015/101898.html','true',[],'',''],
		['PAGE','100256',jdecode('Teatrzyk+domowy'),jdecode(''),'/2015/100256.html','true',[],'',''],
		['PAGE','79334',jdecode('drobiazg+z+masy'),jdecode(''),'/2015/79334.html','true',[],'',''],
		['PAGE','104256',jdecode('teatr+cieni'),jdecode(''),'/2015/104256.html','true',[],'',''],
		['PAGE','104277',jdecode('ciasteczka'),jdecode(''),'/2015/104277.html','true',[],'',''],
		['PAGE','104298',jdecode('zbadaj+zime'),jdecode(''),'/2015/104298.html','true',[],'',''],
		['PAGE','104319',jdecode('%C5%9Blady+na+%C5%9Bniegu'),jdecode(''),'/2015/104319.html','true',[],'',''],
		['PAGE','101919',jdecode('Tematyczne'),jdecode(''),'/2015/101919.html','true',[],'',''],
		['PAGE','115056',jdecode('Wielkanoc'),jdecode(''),'/2015/115056.html','true',[],'','']
	],'',''],
	['PAGE','2036',jdecode('Rozw%C3%B3j+dziecka'),jdecode(''),'/2036/index.html','true',[ 
		['PAGE','44823',jdecode('Czytanie+dla+ka%C5%BCdego'),jdecode(''),'/2036/44823.html','true',[],'',''],
		['PAGE','97056',jdecode('Pranie+i+sprz%C4%85tanie'),jdecode(''),'/2036/97056.html','true',[],'',''],
		['PAGE','97077',jdecode('Jak+uczy+si%C4%99+m%C3%B3zg%3F'),jdecode(''),'/2036/97077.html','true',[],'',''],
		['PAGE','97098',jdecode('Adaptacja+do+przedszkola'),jdecode(''),'/2036/97098.html','true',[],'',''],
		['PAGE','97119',jdecode('Przewijanie'),jdecode(''),'/2036/97119.html','true',[],'',''],
		['PAGE','97140',jdecode('Wyj%C5%9Bcie+do+teatru'),jdecode(''),'/2036/97140.html','true',[],'',''],
		['PAGE','97161',jdecode('Stymulujemy+zmys%C5%82y'),jdecode(''),'/2036/97161.html','true',[],'',''],
		['PAGE','108456',jdecode('Nocnikowe+ABC'),jdecode(''),'/2036/108456.html','true',[],'',''],
		['PAGE','155119',jdecode('Pieluchowanie'),jdecode(''),'/2036/155119.html','true',[],'','']
	],'',''],
	['PAGE','2078',jdecode('Ksi%C4%99ga+go%C5%9Bci'),jdecode(''),'/2078.html','true',[],'',''],
	['PAGE','2099',jdecode('Pytania+rodzic%C3%B3w'),jdecode(''),'/2099.html','true',[],'',''],
	['PAGE','45744',jdecode('Polecamy'),jdecode(''),'/45744/index.html','true',[ 
		['PAGE','44723',jdecode('Ciekawe+ksi%C4%85%C5%BCki'),jdecode(''),'/45744/44723.html','true',[],'',''],
		['PAGE','3301',jdecode('Portale+info'),jdecode(''),'/45744/3301.html','true',[],'',''],
		['PAGE','73423',jdecode('Sklepy'),jdecode(''),'/45744/73423.html','true',[],'',''],
		['PAGE','73444',jdecode('Us%C5%82ugi'),jdecode(''),'/45744/73444.html','true',[],'','']
	],'','']];
var siteelementCount=71;
theSitetree.topTemplateName='Stripes';
theSitetree.paletteFamily='CC6600';
theSitetree.keyvisualId='1578';
theSitetree.keyvisualName='kinder.jpg';
theSitetree.fontsetId='26858';
theSitetree.graphicsetId='308';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FCFCFB';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stripes',
				paletteFamily: 	'CC6600',
				keyvisualId: 	'1578',
				keyvisualName: 	'kinder.jpg',
				fontsetId: 		'26858',
				graphicsetId: 	'308',
				contentColor: 	'A00000',
				contentBGColor: 'FCFCFB',
				a_color: 		'CC6600',
				b_color: 		'DEDECA',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9312',
internalId:  '',
customField: '20100826-140915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20100903-135533'
};
webappMappings['1002']=webappMappings['1002-2078ahpl10inp4n1']={
webappId:    '1002',
documentId:  '2078',
internalId:  '2078ahpl10inp4n1',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100713-184835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100801-231711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20100714-125829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100406-220725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20091221-004659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100903-140308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20091023-232657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100618-080546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44823',
internalId:  '',
customField: '20100214-165508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44723',
internalId:  '',
customField: '20100214-144035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45486',
internalId:  '',
customField: '20100830-190435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45465',
internalId:  '',
customField: '20100902-214208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141456',
internalId:  '',
customField: '20100826-135438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45507',
internalId:  '',
customField: '20100829-221103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166556',
internalId:  '',
customField: '20100802-122410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53623',
internalId:  '',
customField: '20100802-111856'
};
webappMappings['7008']=webappMappings['7008-5925']={
webappId:    '7008',
documentId:  '59023',
internalId:  '5925',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59023',
internalId:  '',
customField: '20100215-151822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45528',
internalId:  '',
customField: '20100831-223109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61144',
internalId:  '',
customField: '20100725-204337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64223',
internalId:  '',
customField: '20100729-223058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61123',
internalId:  '',
customField: '20100302-132029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45744',
internalId:  '',
customField: '20100123-155237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69223',
internalId:  '',
customField: '20100110-230234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69244',
internalId:  '',
customField: '20100302-132232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73444',
internalId:  '',
customField: '20100622-130841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73423',
internalId:  '',
customField: '20100406-220436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79334',
internalId:  '',
customField: '20100216-222217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151756',
internalId:  '',
customField: '20100714-122041'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1994',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-834ecf5d5d56aff81ff2285e84379991']={
webappId:    '7060',
documentId:  '90356',
internalId:  '834ecf5d5d56aff81ff2285e84379991',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90356',
internalId:  '',
customField: '20100831-221428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97077',
internalId:  '',
customField: '20100214-165434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97161',
internalId:  '',
customField: '20100215-153838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97056',
internalId:  '',
customField: '20100215-152913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97119',
internalId:  '',
customField: '20100215-153352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97098',
internalId:  '',
customField: '20100216-221450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97140',
internalId:  '',
customField: '20100215-160722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100256',
internalId:  '',
customField: '20100216-221722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101856',
internalId:  '',
customField: '20100505-234106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101877',
internalId:  '',
customField: '20100505-233245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103298',
internalId:  '',
customField: '20100505-234921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103256',
internalId:  '',
customField: '20100505-232014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103277',
internalId:  '',
customField: '20100505-234836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103319',
internalId:  '',
customField: '20100216-230955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103340',
internalId:  '',
customField: '20100505-233153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103361',
internalId:  '',
customField: '20100505-235102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101898',
internalId:  '',
customField: '20100409-122043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101919',
internalId:  '',
customField: '20100216-222402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104256',
internalId:  '',
customField: '20100216-234433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104277',
internalId:  '',
customField: '20100216-235554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104298',
internalId:  '',
customField: '20100217-224331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104319',
internalId:  '',
customField: '20100217-002715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108456',
internalId:  '',
customField: '20100222-232533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112256',
internalId:  '',
customField: '20100725-200605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115056',
internalId:  '',
customField: '20100310-104733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138256',
internalId:  '',
customField: '20100616-130302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131356',
internalId:  '',
customField: '20100903-135651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124098',
internalId:  '',
customField: '20100409-120224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151777',
internalId:  '',
customField: '20100830-191355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151856',
internalId:  '',
customField: '20100819-114715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151898',
internalId:  '',
customField: '20100819-114926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151877',
internalId:  '',
customField: '20100819-114824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151919',
internalId:  '',
customField: '20100802-122538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155077',
internalId:  '',
customField: '20100724-163912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155677',
internalId:  '',
customField: '20100831-222907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155056',
internalId:  '',
customField: '20100903-140050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155098',
internalId:  '',
customField: '20100824-140825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155119',
internalId:  '',
customField: '20100714-130934'
};
webappMappings['1501']=webappMappings['1501-13478808']={
webappId:    '1501',
documentId:  '1994',
internalId:  '13478808',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158156',
internalId:  '',
customField: '20100801-232716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161056',
internalId:  '',
customField: '20100802-123254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168656',
internalId:  '',
customField: '20100815-162048'
};
var canonHostname = 'wsc0.home.net.pl';
var accountId     = 'AHPL10INP4N1';
var companyName   = '+Pracownia+Tw%C3%B3rczego+Rozwoju';
var htmlTitle	  = '';
var metaKeywords  = 'dziecko%2C+rozw%C3%B3j%2C+stymulacja+rozwoju%2C+zabawa%2C+zabawy+dla+najm%C5%82odszych%2C+zabawy+Wroc%C5%82aw%2C+zaj%C4%99cia+dla+dzieci+Wroc%C5%82aw%2C+zaj%C4%99cia+muzyczne+dla+niemowl%C4%85t%2C+kurs+zdrowego+%C5%BCywienia%2C+%C5%BCywienie+niemowl%C4%85t';
var metaContents  = 'zabawy+dla+najm%C5%82odszych+z+rodzicami+we+Wroc%C5%82awiu';
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();
};
