/* [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','4497',jdecode('Home'),jdecode(''),'/4497/index.html','true',[ 
		['PAGE','41346',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/4497/41346.html','false',[],'','']
	],'',''],
	['PAGE','37046',jdecode('Agenda'),jdecode(''),'/37046.html','true',[],'',''],
	['PAGE','4608',jdecode('Caf%C3%A9-Teatro'),jdecode(''),'/4608.html','true',[],'',''],
	['PAGE','156779',jdecode('Grandes+eventos'),jdecode(''),'/156779/index.html','true',[ 
		['PAGE','156800',jdecode('Homenaje+a+The+Beatles'),jdecode(''),'/156779/156800.html','true',[],'',''],
		['PAGE','156821',jdecode('Los+a%C3%B1os+80+en+Espa%C3%B1a'),jdecode(''),'/156779/156821.html','true',[],'','']
	],'',''],
	['PAGE','44846',jdecode('Compa%C3%B1%C3%ADa+de+Teatro'),jdecode(''),'/44846/index.html','true',[ 
		['PAGE','155479',jdecode('El+sue%C3%B1o+de+una...'),jdecode(''),'/44846/155479.html','true',[],'',''],
		['PAGE','108379',jdecode('Morir...+o+no+'),jdecode(''),'/44846/108379.html','true',[],'',''],
		['PAGE','108679',jdecode('Amo+y+sufro...'),jdecode(''),'/44846/108679.html','true',[],'',''],
		['PAGE','44867',jdecode('Lis%C3%ADstrata'),jdecode(''),'/44846/44867.html','true',[],'',''],
		['PAGE','6301',jdecode('La+Zapatera...'),jdecode(''),'/44846/6301.html','true',[],'',''],
		['PAGE','83746',jdecode('Las+Srtas.+de+Avi%C3%B1%C3%B3n'),jdecode(''),'/44846/83746.html','true',[],'','']
	],'',''],
	['PAGE','43646',jdecode('F%C3%BAtbol+7'),jdecode(''),'/43646/index.html','true',[ 
		['PAGE','98679',jdecode('Noticias'),jdecode(''),'/43646/98679.html','true',[],'',''],
		['PAGE','106479',jdecode('Calendario+08%2F09'),jdecode(''),'/43646/106479.html','true',[],'',''],
		['PAGE','77146',jdecode('Bitrokos'),jdecode(''),'/43646/77146.html','true',[],'','']
	],'',''],
	['PAGE','9401',jdecode('Exposiciones'),jdecode(''),'/9401.html','true',[],'',''],
	['PAGE','67646',jdecode('Certamen+Literario'),jdecode(''),'/67646/index.html','true',[ 
		['PAGE','161679',jdecode('Certamen+2009'),jdecode(''),'/67646/161679.html','true',[],'',''],
		['PAGE','133179',jdecode('Certamen+2008'),jdecode(''),'/67646/133179.html','true',[],'',''],
		['PAGE','67667',jdecode('Certamen+2007'),jdecode(''),'/67646/67667.html','true',[],'',''],
		['PAGE','4662',jdecode('Certamen+2006'),jdecode(''),'/67646/4662.html','true',[],'',''],
		['PAGE','49846',jdecode('Bases+'),jdecode(''),'/67646/49846.html','true',[],'',''],
		['PAGE','59446',jdecode('Modelo+de+Plica'),jdecode(''),'/67646/59446.html','true',[],'','']
	],'',''],
	['PAGE','61146',jdecode('Torneo+de+Mus'),jdecode(''),'/61146/index.html','true',[ 
		['PAGE','9690',jdecode('Normas+2009'),jdecode(''),'/61146/9690.html','true',[],'',''],
		['PAGE','112279',jdecode('Participantes+2009'),jdecode(''),'/61146/112279.html','true',[],'',''],
		['PAGE','155179',jdecode('Clasificacion+2009'),jdecode(''),'/61146/155179.html','true',[],'',''],
		['PAGE','119379',jdecode('Clasificacion+2008'),jdecode(''),'/61146/119379.html','true',[],'',''],
		['PAGE','62367',jdecode('Clasificaci%C3%B3n+2007'),jdecode(''),'/61146/62367.html','true',[],'','']
	],'',''],
	['PAGE','5094',jdecode('Cursos+y+Talleres'),jdecode(''),'/5094/index.html','true',[ 
		['PAGE','41646',jdecode('Cursos+y+Talleres+%28follow+up+page%29'),jdecode(''),'/5094/41646.html','false',[],'',''],
		['PAGE','157779',jdecode('Taller+de+canto'),jdecode(''),'/5094/157779.html','true',[],'',''],
		['PAGE','5121',jdecode('Bailes+de+sal%C3%B3n'),jdecode(''),'/5094/5121.html','true',[],'',''],
		['PAGE','5701',jdecode('Guitarra+espa%C3%B1ola'),jdecode(''),'/5094/5701.html','true',[],'',''],
		['PAGE','5728',jdecode('Yoga+%2F+Pilates'),jdecode(''),'/5094/5728.html','true',[],'',''],
		['PAGE','5755',jdecode('Danza+Oriental'),jdecode(''),'/5094/5755.html','true',[],'',''],
		['PAGE','5782',jdecode('Sevillanas'),jdecode(''),'/5094/5782.html','true',[],'',''],
		['PAGE','5148',jdecode('Piano'),jdecode(''),'/5094/5148.html','true',[],'',''],
		['PAGE','5175',jdecode('Dibujo+y+pintura'),jdecode(''),'/5094/5175.html','true',[],'',''],
		['PAGE','5836',jdecode('Danza+Moderna'),jdecode(''),'/5094/5836.html','true',[],'',''],
		['PAGE','5917',jdecode('D.A.M.I.'),jdecode(''),'/5094/5917.html','true',[],'',''],
		['PAGE','9663',jdecode('Reiki+'),jdecode(''),'/5094/9663.html','true',[],'','']
	],'',''],
	['PAGE','4959',jdecode('La+asociaci%C3%B3n'),jdecode(''),'/4959/index.html','true',[ 
		['PAGE','5013',jdecode('Historia+'),jdecode(''),'/4959/5013.html','true',[],'',''],
		['PAGE','5202',jdecode('Reglamento'),jdecode(''),'/4959/5202.html','true',[],'',''],
		['PAGE','4689',jdecode('El+equipo'),jdecode(''),'/4959/4689.html','true',[],'',''],
		['PAGE','5337',jdecode('Los+socios'),jdecode(''),'/4959/5337.html','true',[],'','']
	],'',''],
	['PAGE','20201',jdecode('Actividades+Socios'),jdecode(''),'/20201/index.html','true',[ 
		['PAGE','121479',jdecode('Excursiones'),jdecode(''),'/20201/121479.html','true',[],'',''],
		['PAGE','121500',jdecode('Salidas+al+Teatro'),jdecode(''),'/20201/121500.html','true',[],'',''],
		['PAGE','122079',jdecode('Otras+actividades'),jdecode(''),'/20201/122079.html','true',[],'','']
	],'',''],
	['PAGE','5040',jdecode('Blas+de+Otero'),jdecode(''),'/5040/index.html','true',[ 
		['PAGE','4554',jdecode('La+poes%C3%ADa+'),jdecode(''),'/5040/4554.html','true',[],'','']
	],'',''],
	['PAGE','12856',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/12856/index.html','true',[ 
		['PAGE','15585',jdecode('M%C3%A1s+actuaciones'),jdecode(''),'/12856/15585.html','true',[],'',''],
		['PAGE','54546',jdecode('FUTBOL+7'),jdecode(''),'/12856/54546.html','true',[],'','']
	],'',''],
	['PAGE','28935',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/28935.html','true',[],'',''],
	['PAGE','7002',jdecode('Libro+de+visitas'),jdecode(''),'/7002/index.html','true',[ 
		['PAGE','7003',jdecode('Leer+el+libro+'),jdecode(''),'/7002/7003.html','false',[],'','']
	],'',''],
	['PAGE','5229',jdecode('Enlaces'),jdecode(''),'/5229.html','true',[],'',''],
	['PAGE','41946',jdecode('Foro+FUTBOL+7'),jdecode(''),'/41946.html','true',[],'','']];
var siteelementCount=64;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='CD984C';
theSitetree.keyvisualId='3358';
theSitetree.keyvisualName='kv_3358.jpg';
theSitetree.fontsetId='10425';
theSitetree.graphicsetId='10741';
theSitetree.contentColor='AA6400';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Eatdrink',
				paletteFamily: 	'CD984C',
				keyvisualId: 	'3358',
				keyvisualName: 	'kv_3358.jpg',
				fontsetId: 		'10425',
				graphicsetId: 	'10741',
				contentColor: 	'AA6400',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'412D10',
				e_color: 		'979796',
				f_color: 		'979796',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4497',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-7002aas010ine2xn']={
webappId:    '1002',
documentId:  '7002',
internalId:  '7002aas010ine2xn',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-6343']={
webappId:    '7008',
documentId:  '4497',
internalId:  '6343',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-3127883']={
webappId:    '1501',
documentId:  '4497',
internalId:  '3127883',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54546',
internalId:  '',
customField: '20071031-134125'
};
webappMappings['7060']=webappMappings['7060-a3ec2f3ea550f244b1dafca95b6ff139']={
webappId:    '7060',
documentId:  '15585',
internalId:  'a3ec2f3ea550f244b1dafca95b6ff139',
customField: 'language:es;country:ES;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '28935',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['7008']=webappMappings['7008-6344']={
webappId:    '7008',
documentId:  '5094',
internalId:  '6344',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7003',
internalId:  '',
customField: '20061130-132426'
};
webappMappings['1003']=webappMappings['1003-aas010ine2xn113e3451644']={
webappId:    '1003',
documentId:  '41946',
internalId:  'aas010ine2xn113e3451644',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4497',
internalId:  '',
customField: '20100301-112551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43646',
internalId:  '',
customField: '20080428-133253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41346',
internalId:  '',
customField: '20070720-124528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37046',
internalId:  '',
customField: '20091221-201458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4608',
internalId:  '',
customField: '20091221-200904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44846',
internalId:  '',
customField: '20080122-114002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20080204-111236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44867',
internalId:  '',
customField: '20080310-121028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20091221-201200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4662',
internalId:  '',
customField: '20080218-113613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49846',
internalId:  '',
customField: '20091209-120415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9690',
internalId:  '',
customField: '20091022-103948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20090305-111129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41646',
internalId:  '',
customField: '20070720-125037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5121',
internalId:  '',
customField: '20091117-092205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20070308-130654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5728',
internalId:  '',
customField: '20070216-113853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5755',
internalId:  '',
customField: '20070307-120531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5782',
internalId:  '',
customField: '20070308-130836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20070308-131350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5175',
internalId:  '',
customField: '20070308-131434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155479',
internalId:  '',
customField: '20091022-112928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5836',
internalId:  '',
customField: '20090120-103600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5917',
internalId:  '',
customField: '20070117-123735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9663',
internalId:  '',
customField: '20090305-111937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157779',
internalId:  '',
customField: '20091028-115422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156800',
internalId:  '',
customField: '20091028-114657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4959',
internalId:  '',
customField: '20090217-124242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5013',
internalId:  '',
customField: '20080215-120509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5202',
internalId:  '',
customField: '20061221-135401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5040',
internalId:  '',
customField: '20080215-121711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4554',
internalId:  '',
customField: '20061221-134400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5337',
internalId:  '',
customField: '20070529-114635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20081218-104402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4689',
internalId:  '',
customField: '20090217-130419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12856',
internalId:  '',
customField: '20080303-123501'
};
webappMappings['7060']=webappMappings['7060-a706759b59c5938508ec4b3587e9c61d']={
webappId:    '7060',
documentId:  '54546',
internalId:  'a706759b59c5938508ec4b3587e9c61d',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15585',
internalId:  '',
customField: '20070117-113308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28935',
internalId:  '',
customField: '20070522-110725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7002',
internalId:  '',
customField: '20061130-132426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5229',
internalId:  '',
customField: '20100223-102429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41946',
internalId:  '',
customField: '20070720-125541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62367',
internalId:  '',
customField: '20071226-115455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106479',
internalId:  '',
customField: '20090216-123656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59446',
internalId:  '',
customField: '20071112-135026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61146',
internalId:  '',
customField: '20071121-105839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67646',
internalId:  '',
customField: '20071226-132629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67667',
internalId:  '',
customField: '20080526-133057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77146',
internalId:  '',
customField: '20081202-094141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161679',
internalId:  '',
customField: '20100212-105232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83746',
internalId:  '',
customField: '20080307-104438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98679',
internalId:  '',
customField: '20090622-122237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108679',
internalId:  '',
customField: '20081016-122445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108379',
internalId:  '',
customField: '20081117-095201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112279',
internalId:  '',
customField: '20091022-103733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119379',
internalId:  '',
customField: '20081205-104229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121500',
internalId:  '',
customField: '20081218-101354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122079',
internalId:  '',
customField: '20091209-190323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121479',
internalId:  '',
customField: '20100122-103510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155179',
internalId:  '',
customField: '20091022-103609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156779',
internalId:  '',
customField: '20091026-174036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156821',
internalId:  '',
customField: '20091026-174353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133179',
internalId:  '',
customField: '20090622-121703'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INE2XN';
var companyName   = 'CENTRO+CULTURAL+BLAS+DE+OTERO';
var htmlTitle	  = 'CENTRO+CULTURAL+BLAS+DE+OTERO';
var metaKeywords  = 'cultura+teatro+cabaret+musica+actuaciones+directo+cursos+talleres+blas+de+otero+asociacion+centro+cultural+san+sebastian+de+los+reyes+madrid+poesia+certamen+literario+relatos+';
var metaContents  = 'cultura+teatro+cabaret+musica+actuaciones+directo+cursos+talleres+blas+de+otero+asociacion+centro+cultural+san+sebastian+de+los+reyes+madrid+poesia+certamen+literario+relatos+';
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();
};
