/* [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','166167',jdecode('Aktualno%C5%9Bci+%2F+News'),jdecode(''), jdecode('%2F166167%2Findex.html'), 'true',[ 
		['PAGE','75845',jdecode('2011'),jdecode(''), jdecode('%2F166167%2F75845.html'), 'true',[],'',''],
		['PAGE','1901',jdecode('2010'),jdecode(''), jdecode('%2F166167%2F1901.html'), 'true',[],'',''],
		['PAGE','71745',jdecode('2009'),jdecode(''), jdecode('%2F166167%2F71745.html'), 'true',[],'','']
	],'',''],
	['PAGE','72266',jdecode('News'),jdecode(''), jdecode('%2F72266%2Findex.html'), 'false',[ 
		['PAGE','54666',jdecode('Old+News'),jdecode(''), jdecode('%2F72266%2F54666.html'), 'true',[],'','']
	],'',''],
	['PAGE','54687',jdecode('O+Hodowli+%2F+About+Us'),jdecode(''), jdecode('%2F54687.html'), 'true',[],'',''],
	['PAGE','3012',jdecode('O+hodowli+%2F+About+Us'),jdecode(''), jdecode('%2F3012.html'), 'false',[],'',''],
	['PAGE','151467',jdecode('Kocury+-+Males'),jdecode(''), jdecode('%2F151467%2Findex.html'), 'true',[ 
		['PAGE','151488',jdecode('Svajone%26%23x27%3Bs+PICASSO'),jdecode(''), jdecode('%2F151467%2F151488.html'), 'true',[],'',''],
		['PAGE','151509',jdecode('GABRIEL+Cynder*PL'),jdecode(''), jdecode('%2F151467%2F151509.html'), 'true',[],'',''],
		['PAGE','151530',jdecode('FALKOR+Cynder*PL'),jdecode(''), jdecode('%2F151467%2F151530.html'), 'true',[],'',''],
		['PAGE','151551',jdecode('PLCynder+AMARETTO+JW'),jdecode(''), jdecode('%2F151467%2F151551.html'), 'true',[],'',''],
		['PAGE','151572',jdecode('PL*Cynder+ALTIVO+JW'),jdecode(''), jdecode('%2F151467%2F151572.html'), 'true',[],'',''],
		['PAGE','151593',jdecode('PL*Bagira+BACARDI'),jdecode(''), jdecode('%2F151467%2F151593.html'), 'true',[],'',''],
		['PAGE','151614',jdecode('ARMANI+Agaro+Pers*PL'),jdecode(''), jdecode('%2F151467%2F151614.html'), 'true',[],'',''],
		['PAGE','151635',jdecode('BURN+Perdiss*PL'),jdecode(''), jdecode('%2F151467%2F151635.html'), 'true',[],'',''],
		['PAGE','151656',jdecode('NICOLAS+Od+Elizy*PL'),jdecode(''), jdecode('%2F151467%2F151656.html'), 'true',[],'','']
	],'',''],
	['PAGE','154898',jdecode('Kotki+-+Females'),jdecode(''), jdecode('%2F154898%2Findex.html'), 'true',[ 
		['PAGE','154919',jdecode('INKA+Cathut*PL'),jdecode(''), jdecode('%2F154898%2F154919.html'), 'true',[],'',''],
		['PAGE','154940',jdecode('EPIKA+Cynder*PL'),jdecode(''), jdecode('%2F154898%2F154940.html'), 'true',[],'',''],
		['PAGE','154961',jdecode('DAFNE+Cynder*PL'),jdecode(''), jdecode('%2F154898%2F154961.html'), 'true',[],'',''],
		['PAGE','154982',jdecode('HOTARU+Cynder*PL'),jdecode(''), jdecode('%2F154898%2F154982.html'), 'true',[],'',''],
		['PAGE','155003',jdecode('JASMINE+Panda*PL'),jdecode(''), jdecode('%2F154898%2F155003.html'), 'true',[],'',''],
		['PAGE','155024',jdecode('SUN+Panda+Pers*CFA'),jdecode(''), jdecode('%2F154898%2F155024.html'), 'true',[],'',''],
		['PAGE','155045',jdecode('PL*Bagira+PERDITA'),jdecode(''), jdecode('%2F154898%2F155045.html'), 'true',[],'',''],
		['PAGE','155066',jdecode('Benua+CASSANDRE'),jdecode(''), jdecode('%2F154898%2F155066.html'), 'true',[],'',''],
		['PAGE','155087',jdecode('GRACJA+El-Choclo*PL'),jdecode(''), jdecode('%2F154898%2F155087.html'), 'true',[],'',''],
		['PAGE','155108',jdecode('CARMEN+Stunning*PL'),jdecode(''), jdecode('%2F154898%2F155108.html'), 'true',[],'',''],
		['PAGE','155129',jdecode('MARIA+EDUARDA+Stunning*PL'),jdecode(''), jdecode('%2F154898%2F155129.html'), 'true',[],'',''],
		['PAGE','155150',jdecode('JUST++SURPRISE++Cathut*PL'),jdecode(''), jdecode('%2F154898%2F155150.html'), 'true',[],'',''],
		['PAGE','155171',jdecode('Svajone%26%23x27%3Bs+KARMA-IN-LUCK'),jdecode(''), jdecode('%2F154898%2F155171.html'), 'true',[],'',''],
		['PAGE','155192',jdecode('HONORISIA+Pers-Megicats*PL'),jdecode(''), jdecode('%2F154898%2F155192.html'), 'true',[],'',''],
		['PAGE','155213',jdecode('PL*Cynder+BE+MY+PRINCESS%21'),jdecode(''), jdecode('%2F154898%2F155213.html'), 'true',[],'','']
	],'',''],
	['PAGE','154667',jdecode('Koci%C4%99ta+%2F+Kittens'),jdecode(''), jdecode('%2F154667.html'), 'true',[],'',''],
	['PAGE','123567',jdecode('Mioty++-++Litters'),jdecode(''), jdecode('%2F123567%2Findex.html'), 'true',[ 
		['PAGE','154709',jdecode('%22++A++%22'),jdecode(''), jdecode('%2F123567%2F154709.html'), 'true',[],'',''],
		['PAGE','154730',jdecode('%22++B++%22'),jdecode(''), jdecode('%2F123567%2F154730.html'), 'true',[],'',''],
		['PAGE','154751',jdecode('%22++C++%22'),jdecode(''), jdecode('%2F123567%2F154751.html'), 'true',[],'',''],
		['PAGE','81356',jdecode('%22++D++%22'),jdecode(''), jdecode('%2F123567%2F81356.html'), 'true',[],'',''],
		['PAGE','125867',jdecode('%22++E++%22'),jdecode(''), jdecode('%2F123567%2F125867.html'), 'true',[],'',''],
		['PAGE','125888',jdecode('%22++F++%22'),jdecode(''), jdecode('%2F123567%2F125888.html'), 'true',[],'',''],
		['PAGE','125909',jdecode('%22++G++%22'),jdecode(''), jdecode('%2F123567%2F125909.html'), 'true',[],'',''],
		['PAGE','125930',jdecode('%22++H++%22'),jdecode(''), jdecode('%2F123567%2F125930.html'), 'true',[],'',''],
		['PAGE','125951',jdecode('%22++I++%22'),jdecode(''), jdecode('%2F123567%2F125951.html'), 'true',[],'','']
	],'',''],
	['PAGE','155234',jdecode('Kastraty++-++Neuters'),jdecode(''), jdecode('%2F155234%2Findex.html'), 'true',[ 
		['PAGE','155255',jdecode('ZEFIR+Od+Elizy*PL'),jdecode(''), jdecode('%2F155234%2F155255.html'), 'true',[],'',''],
		['PAGE','155276',jdecode('JE%C5%BBYNKA+Rafmonnia*PL'),jdecode(''), jdecode('%2F155234%2F155276.html'), 'true',[],'',''],
		['PAGE','155297',jdecode('BELLA+LUNA+Perdiss*PL'),jdecode(''), jdecode('%2F155234%2F155297.html'), 'true',[],'',''],
		['PAGE','155318',jdecode('A+FIRE+IN+EYES+Perdiss*PL'),jdecode(''), jdecode('%2F155234%2F155318.html'), 'true',[],'','']
	],'',''],
	['PAGE','2933',jdecode('Kontakt+%2F+Contact'),jdecode(''), jdecode('%2F2933.html'), 'true',[],'',''],
	['PAGE','4723',jdecode('Ksi%C4%99ga+Go%C5%9Bci'),jdecode(''), jdecode('%2F4723.html'), 'true',[],'',''],
	['ITEM','92667',jdecode('Guests+Book'),jdecode(''), jdecode('http%3A%2F%2Fcynder.pl%2F4723.html'), 'true',[],'',''],
	['PAGE','18823',jdecode('Linki+%2F+Links'),jdecode(''), jdecode('%2F18823.html'), 'true',[],'',''],
	['PAGE','54645',jdecode('*******************'),jdecode(''), jdecode('%2F54645%2Findex.html'), 'true',[ 
		['PAGE','172767',jdecode('.'),jdecode(''), jdecode('%2F54645%2F172767.html'), 'true',[],'','']
	],'',''],
	['PAGE','2912',jdecode('Galeria%2FGallery'),jdecode(''), jdecode('%2F2912%2Findex.html'), 'false',[ 
		['PAGE','48418',jdecode('Ula'),jdecode(''), jdecode('%2F2912%2F48418.html'), 'true',[],'',''],
		['PAGE','47555',jdecode('Alan'),jdecode(''), jdecode('%2F2912%2F47555.html'), 'true',[],'',''],
		['PAGE','47534',jdecode('Zefir'),jdecode(''), jdecode('%2F2912%2F47534.html'), 'true',[],'',''],
		['PAGE','48334',jdecode('Gracja'),jdecode(''), jdecode('%2F2912%2F48334.html'), 'true',[],'',''],
		['PAGE','58145',jdecode('Nicolas'),jdecode(''), jdecode('%2F2912%2F58145.html'), 'true',[],'',''],
		['PAGE','48376',jdecode('Jasmine'),jdecode(''), jdecode('%2F2912%2F48376.html'), 'true',[],'',''],
		['PAGE','48439',jdecode('Rachela'),jdecode(''), jdecode('%2F2912%2F48439.html'), 'true',[],'',''],
		['PAGE','48355',jdecode('Je%C5%BCynka'),jdecode(''), jdecode('%2F2912%2F48355.html'), 'true',[],'',''],
		['PAGE','48397',jdecode('Honorisia'),jdecode(''), jdecode('%2F2912%2F48397.html'), 'true',[],'',''],
		['PAGE','47576',jdecode('Just+Surprise'),jdecode(''), jdecode('%2F2912%2F47576.html'), 'true',[],'',''],
		['PAGE','83567',jdecode('EKKRLegionowi'),jdecode(''), jdecode('%2F2912%2F83567.html'), 'true',[],'','']
	],'','']];
var siteelementCount=68;
theSitetree.topTemplateName='Brush';
theSitetree.paletteFamily='6F7DC8';
theSitetree.keyvisualId='11939';
theSitetree.keyvisualName='kv_11939.jpg';
theSitetree.fontsetId='36136';
theSitetree.graphicsetId='14102';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var prodDef={
  wl_name: 'azpl',
  product: 'WSCSYSSSSLY0XKDV'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Brush',
				paletteFamily: 	'6F7DC8',
				keyvisualId: 	'11939',
				keyvisualName: 	'kv_11939.jpg',
				fontsetId: 		'36136',
				graphicsetId: 	'14102',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20111004-062216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155087',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155108',
internalId:  '',
customField: '20120115-233638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155129',
internalId:  '',
customField: '20120118-062154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18823',
internalId:  '',
customField: '20111214-164457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2912',
internalId:  '',
customField: '20100615-184529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2933',
internalId:  '',
customField: '20110210-062337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3012',
internalId:  '',
customField: '20110601-200053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166167',
internalId:  '',
customField: '20120115-225419'
};
webappMappings['1002']=webappMappings['1002-4723aaz010ineyq9']={
webappId:    '1002',
documentId:  '4723',
internalId:  '4723aaz010ineyq9',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4723',
internalId:  '',
customField: '20090729-224614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154751',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154730',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48418',
internalId:  '',
customField: '20100615-184749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47555',
internalId:  '',
customField: '20100702-211511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47534',
internalId:  '',
customField: '20100702-222439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48334',
internalId:  '',
customField: '20100703-000735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48376',
internalId:  '',
customField: '20100703-015604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48439',
internalId:  '',
customField: '20100615-190432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48355',
internalId:  '',
customField: '20100615-190500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48397',
internalId:  '',
customField: '20100615-190709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47576',
internalId:  '',
customField: '20100615-190808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125867',
internalId:  '',
customField: '20111128-024359'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '166167',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155066',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54645',
internalId:  '',
customField: '20111024-034747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151656',
internalId:  '',
customField: '20120117-225805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154919',
internalId:  '',
customField: '20120116-221248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58145',
internalId:  '',
customField: '20111128-023659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154961',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54666',
internalId:  '',
customField: '20110302-031506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54687',
internalId:  '',
customField: '20111207-183549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155024',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155045',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154940',
internalId:  '',
customField: '20120116-012835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151635',
internalId:  '',
customField: '20111127-231322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151614',
internalId:  '',
customField: '20120117-232015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151551',
internalId:  '',
customField: '20120117-224047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151509',
internalId:  '',
customField: '20120116-005520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151572',
internalId:  '',
customField: '20120116-232903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151593',
internalId:  '',
customField: '20120119-021554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123567',
internalId:  '',
customField: '20120115-231347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71745',
internalId:  '',
customField: '20111004-062354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72266',
internalId:  '',
customField: '20110619-165549'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '166167',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75845',
internalId:  '',
customField: '20120115-222756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155192',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155213',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154709',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155150',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81356',
internalId:  '',
customField: '20111014-011910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83567',
internalId:  '',
customField: '20110203-020720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155171',
internalId:  '',
customField: '20111129-050946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154982',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155003',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125888',
internalId:  '',
customField: '20111128-024937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125909',
internalId:  '',
customField: '20111014-011218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125930',
internalId:  '',
customField: '20111128-025052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125951',
internalId:  '',
customField: '20111014-011129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151467',
internalId:  '',
customField: '20111128-030412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151488',
internalId:  '',
customField: '20120116-005016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151530',
internalId:  '',
customField: '20111207-212115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154898',
internalId:  '',
customField: '20111214-020006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154667',
internalId:  '',
customField: '20120115-225459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155255',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155234',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155276',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155297',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155318',
internalId:  '',
customField: '20111128-021456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172767',
internalId:  '',
customField: '20111215-030548'
};
var webAppHostname = 'cgi-kreatorstron.az.pl:80';
var canonHostname = 'cm4all.az.pl';
var accountId     = 'AAZ010INEYQ9';
var companyName   = 'CYNDER+Cattery+-+CFA+%26+FiFe+reg.';
var htmlTitle	  = 'CYNDER*PL+-++Persian+and+Exotic+Cat+Cattery+FiFe+%26+CFA+Reg.';
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();
};

