/* [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('NASLOVNICA'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','473',jdecode('NOVOSTI'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','494',jdecode('Informacija+1'),jdecode(''),'/473/494.html','true',[],'',''],
		['PAGE','515',jdecode('Informacija+2'),jdecode(''),'/473/515.html','true',[],'','']
	],'',''],
	['PAGE','536',jdecode('NOVOSTI+IZ+SPORTA'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','557',jdecode('Sport+1%2FNogomet+iz+berna'),jdecode(''),'/536/557.html','true',[],'',''],
		['PAGE','1601',jdecode('Sport+2%2FTablica'),jdecode(''),'/536/1601.html','true',[],'',''],
		['PAGE','2301',jdecode('Sport+3%2F1.+HNL'),jdecode(''),'/536/2301.html','true',[],'',''],
		['PAGE','2701',jdecode('Tablica+1.+HNL'),jdecode(''),'/536/2701.html','true',[],'',''],
		['PAGE','2322',jdecode('EURO+08'),jdecode(''),'/536/2322.html','true',[],'',''],
		['PAGE','91101',jdecode('HRVATSKA'),jdecode(''),'/536/91101.html','true',[],'',''],
		['PAGE','91122',jdecode('NJEMACKA'),jdecode(''),'/536/91122.html','true',[],'',''],
		['PAGE','91143',jdecode('AUSTRIJA'),jdecode(''),'/536/91143.html','true',[],'',''],
		['PAGE','91164',jdecode('POLJSKA'),jdecode(''),'/536/91164.html','true',[],'',''],
		['PAGE','91185',jdecode('SVICARSKA'),jdecode(''),'/536/91185.html','true',[],'',''],
		['PAGE','2343',jdecode('EURO+08%2FTablica%2FRaspored'),jdecode(''),'/536/2343.html','true',[],'',''],
		['PAGE','2364',jdecode('Razne+info'),jdecode(''),'/536/2364.html','true',[],'','']
	],'',''],
	['PAGE','2722',jdecode('TOP+LISTA'),jdecode(''),'/2722/index.html','true',[ 
		['PAGE','155512',jdecode('Top+5+lista'),jdecode(''),'/2722/155512.html','true',[],'','']
	],'',''],
	['PAGE','2743',jdecode('EMISIJA+JADRAN'),jdecode(''),'/2743.html','true',[],'',''],
	['PAGE','6201',jdecode('TURIZAM'),jdecode(''),'/6201/index.html','true',[ 
		['PAGE','6222',jdecode('Primjerak+1'),jdecode(''),'/6201/6222.html','true',[],'',''],
		['PAGE','6243',jdecode('Primjerak+2'),jdecode(''),'/6201/6243.html','true',[],'','']
	],'',''],
	['PAGE','6264',jdecode('SPONZORI'),jdecode(''),'/6264.html','true',[],'',''],
	['PAGE','6285',jdecode('RECEPTE+ZA+KUHANJE'),jdecode(''),'/6285.html','true',[],'',''],
	['PAGE','6306',jdecode('VAZNE+ADRESE'),jdecode(''),'/6306/index.html','true',[ 
		['PAGE','6327',jdecode('%C4%8Cesto+postavljana+konzularna+pitanja'),jdecode(''),'/6306/6327.html','true',[],'','']
	],'',''],
	['PAGE','6348',jdecode('ARHIVA'),jdecode(''),'/6348/index.html','true',[ 
		['PAGE','6369',jdecode('Kultura+1'),jdecode(''),'/6348/6369.html','true',[],'',''],
		['PAGE','6390',jdecode('Kultura+2'),jdecode(''),'/6348/6390.html','true',[],'',''],
		['PAGE','6411',jdecode('Turizam'),jdecode(''),'/6348/6411.html','true',[],'',''],
		['PAGE','6432',jdecode('Sport%2FRegija+bern%2FNogomet'),jdecode(''),'/6348/6432.html','true',[],'',''],
		['PAGE','6453',jdecode('Sport%2FRazne+informacije'),jdecode(''),'/6348/6453.html','true',[],'',''],
		['PAGE','6474',jdecode('Recepte'),jdecode(''),'/6348/6474.html','true',[],'',''],
		['PAGE','60501',jdecode('Crkva'),jdecode(''),'/6348/60501.html','true',[],'',''],
		['PAGE','143001',jdecode('Audio'),jdecode(''),'/6348/143001.html','true',[],'','']
	],'',''],
	['PAGE','149212',jdecode('21.+ZOI+u+vancouver'),jdecode(''),'/149212/index.html','true',[ 
		['PAGE','150012',jdecode('Sportasi+i+sporstasice'),jdecode(''),'/149212/150012.html','true',[],'',''],
		['PAGE','150033',jdecode('Najvaznije+termine'),jdecode(''),'/149212/150033.html','true',[],'','']
	],'',''],
	['PAGE','13701',jdecode('JADRAN-MAGAZIN'),jdecode(''),'/13701/index.html','true',[ 
		['PAGE','150812',jdecode('Audio'),jdecode(''),'/13701/150812.html','true',[],'','']
	],'',''],
	['PAGE','12101',jdecode('Forum'),jdecode(''),'/12101/index.html','true',[ 
		['PAGE','33901',jdecode('Forum2'),jdecode(''),'/12101/33901.html','true',[],'',''],
		['PAGE','33922',jdecode('Forum+3'),jdecode(''),'/12101/33922.html','true',[],'',''],
		['PAGE','33943',jdecode('Forum+4'),jdecode(''),'/12101/33943.html','true',[],'','']
	],'',''],
	['PAGE','1906',jdecode('Knjiga+gostiju'),jdecode(''),'/1906/index.html','true',[ 
		['PAGE','1901',jdecode('Unjeti'),jdecode(''),'/1906/1901.html','false',[],'','']
	],'',''],
	['PAGE','54401',jdecode('CRKVA'),jdecode(''),'/54401/index.html','true',[ 
		['PAGE','54422',jdecode('Novosti'),jdecode(''),'/54401/54422.html','true',[],'',''],
		['PAGE','54443',jdecode('Adrese'),jdecode(''),'/54401/54443.html','true',[],'',''],
		['PAGE','54464',jdecode('Biblija'),jdecode(''),'/54401/54464.html','true',[],'',''],
		['PAGE','58301',jdecode('Molitva'),jdecode(''),'/54401/58301.html','true',[],'','']
	],'',''],
	['PAGE','71501',jdecode('HUMANITARNE+AKCIJE'),jdecode(''),'/71501/index.html','true',[ 
		['PAGE','73101',jdecode('Djeca+Tanzanije'),jdecode(''),'/71501/73101.html','true',[],'',''],
		['PAGE','74401',jdecode('Novosti'),jdecode(''),'/71501/74401.html','true',[],'',''],
		['PAGE','74422',jdecode('Kontakt'),jdecode(''),'/71501/74422.html','true',[],'',''],
		['PAGE','75401',jdecode('Razminiranje+Hrvatske'),jdecode(''),'/71501/75401.html','true',[],'',''],
		['PAGE','75422',jdecode('Huma.+kosarkaska+utak.'),jdecode(''),'/71501/75422.html','true',[],'','']
	],'',''],
	['PAGE','2201',jdecode('Slike+iz+studija'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','120501',jdecode('Gosti+u+emisiji'),jdecode(''),'/120501.html','true',[],'',''],
	['PAGE','7701',jdecode('BROJ+U+STUDIJO'),jdecode(''),'/7701.html','true',[],'',''],
	['PAGE','6495',jdecode('Kontakt'),jdecode(''),'/6495.html','true',[],'',''],
	['PAGE','6516',jdecode('O+nama'),jdecode(''),'/6516.html','true',[],'',''],
	['PAGE','3301',jdecode('Impressum'),jdecode(''),'/3301.html','true',[],'',''],
	['PAGE','6537',jdecode('Frekvencije'),jdecode(''),'/6537.html','true',[],'',''],
	['PAGE','64001',jdecode('Prijatelski+link'),jdecode(''),'/64001.html','true',[],'',''],
	['PAGE','140801',jdecode('ANKETA'),jdecode(''),'/140801.html','true',[],'',''],
	['PAGE','144401',jdecode('FACEBOOK'),jdecode(''),'/144401.html','true',[],'',''],
	['PAGE','155612',jdecode('Top+5+lista'),jdecode(''),'/155612/index.html','true',[ 
		['PAGE','155633',jdecode('Top+5+%2F++Predlazemo'),jdecode(''),'/155612/155633.html','true',[],'','']
	],'','']];
var siteelementCount=70;
theSitetree.topTemplateName='Objects';
theSitetree.paletteFamily='565556';
theSitetree.keyvisualId='6575';
theSitetree.keyvisualName='kv_6575.jpg';
theSitetree.fontsetId='11185';
theSitetree.graphicsetId='11996';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE2A7';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Objects',
				paletteFamily: 	'565556',
				keyvisualId: 	'6575',
				keyvisualName: 	'kv_6575.jpg',
				fontsetId: 		'11185',
				graphicsetId: 	'11996',
				contentColor: 	'000000',
				contentBGColor: 'FFE2A7',
				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['1002']=webappMappings['1002-1906ahopt0in35mk']={
webappId:    '1002',
documentId:  '1906',
internalId:  '1906ahopt0in35mk',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-9022a3fdb9ab615592b3c803bb27249b']={
webappId:    '7060',
documentId:  '2201',
internalId:  '9022a3fdb9ab615592b3c803bb27249b',
customField: 'language:de;country:CH;'
};
webappMappings['1003']=webappMappings['1003-ahopt0in35mk1153d6770a3']={
webappId:    '1003',
documentId:  '33901',
internalId:  'ahopt0in35mk1153d6770a3',
customField: 'de:CH:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155612',
internalId:  '',
customField: '20100326-012246'
};
webappMappings['7005']=webappMappings['7005-153']={
webappId:    '7005',
documentId:  '155633',
internalId:  '153',
customField: 'language:de;country:CH;'
};
webappMappings['1003']=webappMappings['1003-ahopt0in35mk1153d690409']={
webappId:    '1003',
documentId:  '12101',
internalId:  'ahopt0in35mk1153d690409',
customField: 'de:CH:'
};
webappMappings['1003']=webappMappings['1003-ahopt0in35mk1153d67a279']={
webappId:    '1003',
documentId:  '33922',
internalId:  'ahopt0in35mk1153d67a279',
customField: 'de:CH:'
};
webappMappings['1003']=webappMappings['1003-ahopt0in35mk1153d684a92']={
webappId:    '1003',
documentId:  '33943',
internalId:  'ahopt0in35mk1153d684a92',
customField: 'de:CH:'
};
webappMappings['7060']=webappMappings['7060-5fc698faec48a144ac643a7eac94c9ad']={
webappId:    '7060',
documentId:  '120501',
internalId:  '5fc698faec48a144ac643a7eac94c9ad',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100902-201917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100205-205051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100902-202027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100205-205520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100213-165255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20071006-180657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20071006-175905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20070906-184945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20070906-185417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2322',
internalId:  '',
customField: '20080601-222554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91101',
internalId:  '',
customField: '20080606-193146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91122',
internalId:  '',
customField: '20080603-181651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91143',
internalId:  '',
customField: '20080606-191307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91164',
internalId:  '',
customField: '20080606-192211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91185',
internalId:  '',
customField: '20080606-194118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2343',
internalId:  '',
customField: '20080617-145028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2364',
internalId:  '',
customField: '20100213-165740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2722',
internalId:  '',
customField: '20070727-152806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2743',
internalId:  '',
customField: '20070727-152853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20080806-161717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20080806-165013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20070729-203526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6264',
internalId:  '',
customField: '20091103-183325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6285',
internalId:  '',
customField: '20070925-184156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6306',
internalId:  '',
customField: '20070727-153002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6327',
internalId:  '',
customField: '20070727-153147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6348',
internalId:  '',
customField: '20070915-173534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6369',
internalId:  '',
customField: '20091121-180131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6390',
internalId:  '',
customField: '20090404-202030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6411',
internalId:  '',
customField: '20100120-162414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6432',
internalId:  '',
customField: '20070720-221248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6453',
internalId:  '',
customField: '20100120-161414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6474',
internalId:  '',
customField: '20070720-221248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60501',
internalId:  '',
customField: '20080302-214955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20090605-170452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140801',
internalId:  '',
customField: '20091228-194303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143001',
internalId:  '',
customField: '20100120-161050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20070925-190203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20070925-190537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33922',
internalId:  '',
customField: '20070925-191116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33943',
internalId:  '',
customField: '20070925-191650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1906',
internalId:  '',
customField: '20070727-153820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20070727-153926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54401',
internalId:  '',
customField: '20080225-223315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54422',
internalId:  '',
customField: '20080215-200315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54443',
internalId:  '',
customField: '20080322-213826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54464',
internalId:  '',
customField: '20080322-220045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20080302-214631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71501',
internalId:  '',
customField: '20080331-212357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73101',
internalId:  '',
customField: '20080402-170120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74401',
internalId:  '',
customField: '20080416-164117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74422',
internalId:  '',
customField: '20080402-170252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20080409-181125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75422',
internalId:  '',
customField: '20080515-180038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20070727-154659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120501',
internalId:  '',
customField: '20090602-213428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20070720-223827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6495',
internalId:  '',
customField: '20070723-164249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6516',
internalId:  '',
customField: '20070723-162820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20070727-154823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6537',
internalId:  '',
customField: '20070723-163611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64001',
internalId:  '',
customField: '20080308-183850'
};
webappMappings['7005']=webappMappings['7005-122']={
webappId:    '7005',
documentId:  '140801',
internalId:  '122',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144401',
internalId:  '',
customField: '20100124-041337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149212',
internalId:  '',
customField: '20100208-204644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150012',
internalId:  '',
customField: '20100209-220225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150033',
internalId:  '',
customField: '20100213-174809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150812',
internalId:  '',
customField: '20100210-175107'
};
webappMappings['7005']=webappMappings['7005-152']={
webappId:    '7005',
documentId:  '155612',
internalId:  '152',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155512',
internalId:  '',
customField: '20100326-005533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155633',
internalId:  '',
customField: '20100326-012246'
};
webappMappings['1501']=webappMappings['1501-10612977']={
webappId:    '1501',
documentId:  '401',
internalId:  '10612977',
customField: '1501'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0IN35MK';
var companyName   = 'Radio-Emisija+JADRAN';
var htmlTitle	  = 'Jadran';
var metaKeywords  = 'radio%2Cjadran%2Crabe%2Cemisija';
var metaContents  = 'radio%2Cjadran%2Cemisija%2Cmikrofon%2Crabe%2Cdalmacija%2Cdalmatien%2Chrvatski%2Cmischpult%2Cbern%2Csvicarska%2Csport%2Cinfos%2Cnovosti%2Cglazba%2C';
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();
};
