/* [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','601',jdecode('Home'),jdecode(''),'/601.html','false',[],'',''],
	['PAGE','153751',jdecode('PROMOCJE'),jdecode(''),'/153751.html','false',[],'',''],
	['PAGE','91351',jdecode('Breloki'),jdecode(''),'/91351.html','false',[],'',''],
	['PAGE','91204',jdecode('Budownictwo'),jdecode(''),'/91204.html','false',[],'',''],
	['PAGE','108269',jdecode('Banki+%26+Finanse'),jdecode(''),'/108269.html','false',[],'',''],
	['PAGE','91662',jdecode('D%C5%82ugopisy'),jdecode(''),'/91662.html','false',[],'',''],
	['PAGE','91330',jdecode('Ekologia+%26+Natura'),jdecode(''),'/91330.html','false',[],'',''],
	['PAGE','91267',jdecode('Farmacja+%26+Medycyna'),jdecode(''),'/91267.html','false',[],'',''],
	['PAGE','673',jdecode('Jojo'),jdecode(''),'/673.html','false',[],'',''],
	['PAGE','90904',jdecode('Komputer+%26+Elektronika'),jdecode(''),'/90904.html','false',[],'',''],
	['PAGE','91141',jdecode('Komunikacja+%26+Telefon'),jdecode(''),'/91141.html','false',[],'',''],
	['PAGE','90841',jdecode('K+O+S+T+K+I'),jdecode(''),'/90841.html','false',[],'',''],
	['PAGE','105269',jdecode('Kszta%C5%82ty+r%C3%B3%C5%BCne'),jdecode(''),'/105269.html','false',[],'',''],
	['PAGE','90862',jdecode('Kule+ziemskie'),jdecode(''),'/90862.html','false',[],'',''],
	['PAGE','91704',jdecode('Narz%C4%99dzia'),jdecode(''),'/91704.html','false',[],'',''],
	['PAGE','91309',jdecode('Owoce+Warzywa+'),jdecode(''),'/91309.html','false',[],'',''],
	['PAGE','694',jdecode('P+I+%C5%81+E+C+Z+K+I'),jdecode(''),'/694.html','false',[],'',''],
	['PAGE','91641',jdecode('Postacie'),jdecode(''),'/91641.html','false',[],'',''],
	['PAGE','91225',jdecode('Przemys%C5%82'),jdecode(''),'/91225.html','false',[],'',''],
	['PAGE','652',jdecode('Samochody+%26+Transport'),jdecode(''),'/652.html','false',[],'',''],
	['PAGE','91683',jdecode('Sezonowe+%26+%C5%9Awi%C4%85teczne'),jdecode(''),'/91683.html','false',[],'',''],
	['PAGE','90883',jdecode('S+P+O+R+T+O+W+E'),jdecode(''),'/90883.html','false',[],'',''],
	['PAGE','91288',jdecode('Zwierz%C4%99ta'),jdecode(''),'/91288.html','false',[],'',''],
	['PAGE','120711',jdecode('Zwierz%C4%99ta+cz.2'),jdecode(''),'/120711.html','false',[],'',''],
	['PAGE','105169',jdecode('%C5%BBywno%C5%9B%C4%87'),jdecode(''),'/105169.html','false',[],'',''],
	['PAGE','91941',jdecode(''),jdecode(''),'/91941.html','false',[],'',''],
	['PAGE','736',jdecode('Gry'),jdecode(''),'/736.html','false',[],'',''],
	['PAGE','778',jdecode('Kosmetyczne+i+do+masa%C5%BCu'),jdecode(''),'/778.html','false',[],'',''],
	['PAGE','757',jdecode('Relaksacyjne+magnetyczne'),jdecode(''),'/757.html','false',[],'',''],
	['PAGE','715',jdecode('Uk%C5%82adanki++Puzzle'),jdecode(''),'/715.html','false',[],'',''],
	['PAGE','91962',jdecode(''),jdecode(''),'/91962.html','false',[],'',''],
	['PAGE','102669',jdecode('WYSZUKIWARKA'),jdecode(''),'/102669.html','false',[],'',''],
	['PAGE','820',jdecode('KONTAKT'),jdecode(''),'/820.html','false',[],'',''],
	['PAGE','45201',jdecode('Strona+g%C5%82%C3%B3wna'),jdecode(''),'/45201.html','true',[],'',''],
	['PAGE','177151',jdecode('Antystresy'),jdecode(''),'/177151.html','true',[],'',''],
	['PAGE','45252',jdecode('Bombki'),jdecode(''),'/45252.html','true',[],'',''],
	['PAGE','54001',jdecode('Barowe+'),jdecode(''),'/54001.html','true',[],'',''],
	['PAGE','45273',jdecode('Breloczki'),jdecode(''),'/45273.html','true',[],'',''],
	['PAGE','45501',jdecode('Ceramika'),jdecode(''),'/45501.html','true',[],'',''],
	['PAGE','45601',jdecode('Czapki+Miko%C5%82aja'),jdecode(''),'/45601.html','true',[],'',''],
	['PAGE','45622',jdecode('D%C5%82ugopisy%2C+notesy'),jdecode(''),'/45622.html','true',[],'',''],
	['PAGE','45701',jdecode('Dom%2C+kuchenne'),jdecode(''),'/45701.html','true',[],'',''],
	['PAGE','45722',jdecode('DEKORACJE%2C+ozdoby'),jdecode(''),'/45722.html','true',[],'',''],
	['PAGE','45743',jdecode('Gry'),jdecode(''),'/45743.html','true',[],'',''],
	['PAGE','49601',jdecode('Komputerowe'),jdecode(''),'/49601.html','true',[],'',''],
	['PAGE','45764',jdecode('Maskotki'),jdecode(''),'/45764.html','true',[],'',''],
	['PAGE','45785',jdecode('Memoklipy'),jdecode(''),'/45785.html','true',[],'',''],
	['PAGE','45806',jdecode('Opakowania%3A+pude%C5%82ka'),jdecode(''),'/45806.html','true',[],'',''],
	['PAGE','45827',jdecode('Opakowania%3A+torebki'),jdecode(''),'/45827.html','true',[],'',''],
	['PAGE','63613',jdecode('Osobiste'),jdecode(''),'/63613.html','true',[],'',''],
	['PAGE','45848',jdecode('Pami%C4%99ci+USB'),jdecode(''),'/45848.html','true',[],'',''],
	['PAGE','45869',jdecode('P%C5%82yty%2C+kartki'),jdecode(''),'/45869.html','true',[],'',''],
	['PAGE','46901',jdecode('Ramki'),jdecode(''),'/46901.html','true',[],'',''],
	['PAGE','45974',jdecode('R%C3%B3%C5%BCno%C5%9Bci'),jdecode(''),'/45974.html','true',[],'',''],
	['PAGE','77241',jdecode('%C5%9Anie%C5%BCne+kule'),jdecode(''),'/77241.html','true',[],'',''],
	['PAGE','45890',jdecode('%C5%9Awieczki%2C+%C5%9Bwieczniki'),jdecode(''),'/45890.html','true',[],'',''],
	['PAGE','45911',jdecode('Tekstylia'),jdecode(''),'/45911.html','true',[],'',''],
	['PAGE','45932',jdecode('Worki%2C+skarpety'),jdecode(''),'/45932.html','true',[],'',''],
	['PAGE','45953',jdecode('Zawieszki'),jdecode(''),'/45953.html','true',[],'',''],
	['PAGE','62113',jdecode('Zawieszki+filcowe'),jdecode(''),'/62113.html','true',[],'',''],
	['PAGE','63013',jdecode('Adwentowe'),jdecode(''),'/63013.html','true',[],'',''],
	['PAGE','174316',jdecode(''),jdecode(''),'/174316.html','true',[],'',''],
	['ITEM','177551',jdecode('Reflects'),jdecode(''),'http://www.upominki-gadzety.pl','true',[],'','_blank'],
	['ITEM','177552',jdecode('Reflects+II'),jdecode(''),'http://www.reflects.ap68.pl','true',[],'','_blank'],
	['ITEM','177553',jdecode('The+Catalogue'),jdecode(''),'http://www.firmowe-upominki.pl','true',[],'','_blank'],
	['ITEM','177554',jdecode('Pendrive'),jdecode(''),'http://www.pamieciusb.pl','true',[],'','_blank'],
	['PAGE','177555',jdecode(''),jdecode(''),'/177555.html','true',[],'',''],
	['PAGE','46522',jdecode('KONTAKT'),jdecode(''),'/46522.html','true',[],'',''],
	['PAGE','174337',jdecode(''),jdecode(''),'/174337.html','true',[],'',''],
	['PAGE','174358',jdecode('Wyszukiwarka'),jdecode(''),'/174358.html','true',[],'',''],
	['PAGE','46564',jdecode(''),jdecode(''),'/46564.html','true',[],'',''],
	['PAGE','177576',jdecode(''),jdecode(''),'/177576.html','true',[],'',''],
	['PAGE','177597',jdecode(''),jdecode(''),'/177597.html','true',[],'',''],
	['PAGE','177618',jdecode(''),jdecode(''),'/177618.html','true',[],'',''],
	['PAGE','177639',jdecode(''),jdecode(''),'/177639.html','true',[],'','']];
var siteelementCount=75;
theSitetree.topTemplateName='Groove';
theSitetree.paletteFamily='F36969';
theSitetree.keyvisualId='6036';
theSitetree.keyvisualName='kv_6036.jpg';
theSitetree.fontsetId='27858';
theSitetree.graphicsetId='12921';
theSitetree.contentColor='5F5F60';
theSitetree.contentBGColor='E4E4E6';
var localeDef={
  language: 'pl',
  country: 'PL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Groove',
				paletteFamily: 	'F36969',
				keyvisualId: 	'6036',
				keyvisualName: 	'kv_6036.jpg',
				fontsetId: 		'27858',
				graphicsetId: 	'12921',
				contentColor: 	'5F5F60',
				contentBGColor: 'E4E4E6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090307-180911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20090312-182733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090307-190007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20090302-095652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20090228-185932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20090226-182315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20090228-190030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20090226-182119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105169',
internalId:  '',
customField: '20090311-153813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20090228-115940'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '45201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45201',
internalId:  '',
customField: '20090909-202606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45252',
internalId:  '',
customField: '20090909-203220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45953',
internalId:  '',
customField: '20090909-203543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45273',
internalId:  '',
customField: '20090909-203617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20090909-203709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45701',
internalId:  '',
customField: '20090909-203752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45722',
internalId:  '',
customField: '20090909-203835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45764',
internalId:  '',
customField: '20090909-203919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45869',
internalId:  '',
customField: '20090909-204151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45932',
internalId:  '',
customField: '20090909-204327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45890',
internalId:  '',
customField: '20090909-204245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46522',
internalId:  '',
customField: '20090909-203402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45974',
internalId:  '',
customField: '20081010-171237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45911',
internalId:  '',
customField: '20090909-204304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20080919-190447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45743',
internalId:  '',
customField: '20080917-202347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45622',
internalId:  '',
customField: '20081010-170853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49601',
internalId:  '',
customField: '20080917-212225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45785',
internalId:  '',
customField: '20090909-203940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45848',
internalId:  '',
customField: '20090909-204130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45806',
internalId:  '',
customField: '20081009-112036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45827',
internalId:  '',
customField: '20090909-204040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20081011-110132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108269',
internalId:  '',
customField: '20090312-185641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46564',
internalId:  '',
customField: '20080906-150601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20081010-163312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62113',
internalId:  '',
customField: '20090909-203459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63013',
internalId:  '',
customField: '20090909-203418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63613',
internalId:  '',
customField: '20080919-190006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77241',
internalId:  '',
customField: '20081009-111459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90841',
internalId:  '',
customField: '20090311-164224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91351',
internalId:  '',
customField: '20090312-171354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91641',
internalId:  '',
customField: '20090311-152308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91704',
internalId:  '',
customField: '20090307-193148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91662',
internalId:  '',
customField: '20090228-112733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91330',
internalId:  '',
customField: '20090312-181407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90862',
internalId:  '',
customField: '20090312-183048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91204',
internalId:  '',
customField: '20090312-174712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91267',
internalId:  '',
customField: '20090312-181533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90904',
internalId:  '',
customField: '20090312-182057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91141',
internalId:  '',
customField: '20090312-172040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91309',
internalId:  '',
customField: '20090307-175858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91225',
internalId:  '',
customField: '20090226-170114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91683',
internalId:  '',
customField: '20090312-182834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90883',
internalId:  '',
customField: '20090312-183354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91288',
internalId:  '',
customField: '20090310-192023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91941',
internalId:  '',
customField: '20090228-190113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91962',
internalId:  '',
customField: '20090228-190126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105269',
internalId:  '',
customField: '20090312-185138'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '174358',
internalId:  'search',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102669',
internalId:  '',
customField: '20090228-174442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120711',
internalId:  '',
customField: '20090312-164140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153751',
internalId:  '',
customField: '20090310-163357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177151',
internalId:  '',
customField: '20090909-220355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174316',
internalId:  '',
customField: '20090909-201650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174337',
internalId:  '',
customField: '20090909-201650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174358',
internalId:  '',
customField: '20090909-203302'
};
var canonHostname = 'wsc0.home.net.pl';
var accountId     = 'AHPL10INVB52';
var companyName   = 'Gad%C5%BCety+i+Upominki+%C5%9Awi%C4%85teczne%2C+Reklamowe+dla+Firm+i+Instytucji';
var htmlTitle	  = 'www.gadzety-swiateczne.pl%3B+%C5%9Awi%C4%85teczne+upominki+dla+firm%2C+%C5%9Bwi%C4%85teczne+gad%C5%BCety+reklamowe+firmowe.+Dla+firm+i+pod+nadruk%2C+z+logo.+Zawieszki%2C+bombki%2C+breloki%2C+czapki%2C+ozdoby+i+dekoracje+Bo%C5%BConarodzeniowe+dla+firm.+Warszawa';
var metaKeywords  = '%C5%9Bwi%C4%85teczne%2C+bombki%2C+ozdoby%2C+zawieszki%2C+torby%2C+opakowania%2C+d%C5%82ugopisy%2C+etui%2C+pude%C5%82ka%2C+gwiazdki%2C+fartuchy%2C+kubki%2C+ceramika%2C+zawieszki%2C+filcowe%2C+do+malowania%2C+%C5%9Bwiece%2C+%C5%9Bwieczniki%2C+';
var metaContents  = '%C5%9Awi%C4%85teczne+upominki+firmowe.+Gad%C5%BCety+reklamowe+%C5%9Bwi%C4%85teczne+dla+firm.+Upominki+gwiazdkowe%2C+o+tematyce+Bo%C5%BConarodzeniowej.+Bombki%2C+zawieszki+na+choink%C4%99%2C+ozdoby+%C5%9Bwi%C4%85teczne%2C+%C5%9Bwiece%2C+%C5%9Bwieczniki%2C+breloki%2C+miko%C5%82aje%2C+choinki%2C+maskotki%2C+reniferki%2C+worki+i+skarpety+na+prezenty.Czapki+miko%C5%82aja.+Opakowania+%28torebki%2C+etui%2C+pude%C5%82ka%29+%C5%9Bwi%C4%85teczne.+%C5%9Awi%C4%85teczne+artyku%C5%82y+biurowe%3A+d%C5%82ugopisy%2C+o%C5%82%C3%B3wki%2C+memoklipy%2C+ramki.+Gry+i+zabawki.';
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();
};

