/* [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(''), jdecode('%2F4497%2Findex.html'), 'true',[ 
		['PAGE','41346',jdecode('Home+%28follow+up+page%29'),jdecode(''), jdecode('%2F4497%2F41346.html'), 'false',[],'','']
	],'',''],
	['PAGE','4608',jdecode('Caf%C3%A9-Teatro'),jdecode(''), jdecode('%2F4608%2Findex.html'), 'true',[ 
		['PAGE','213379',jdecode('LA+ESFERA+CABARET'),jdecode(''), jdecode('%2F4608%2F213379.html'), 'true',[],'','']
	],'',''],
	['PAGE','5094',jdecode('Cursos+y+Talleres'),jdecode(''), jdecode('%2F5094%2Findex.html'), 'true',[ 
		['PAGE','41646',jdecode('Cursos+y+Talleres+%28follow+up+page%29'),jdecode(''), jdecode('%2F5094%2F41646.html'), 'false',[],'',''],
		['PAGE','208179',jdecode('CURSO+2011%2F2012'),jdecode(''), jdecode('%2F5094%2F208179.html'), 'true',[],'',''],
		['PAGE','5121',jdecode('Bailes+de+sal%C3%B3n'),jdecode(''), jdecode('%2F5094%2F5121.html'), 'true',[],'',''],
		['PAGE','157779',jdecode('Taller+de+canto'),jdecode(''), jdecode('%2F5094%2F157779.html'), 'true',[],'',''],
		['PAGE','5836',jdecode('Danza+Moderna'),jdecode(''), jdecode('%2F5094%2F5836.html'), 'true',[],'',''],
		['PAGE','5755',jdecode('Danza+Oriental'),jdecode(''), jdecode('%2F5094%2F5755.html'), 'true',[],'',''],
		['PAGE','5175',jdecode('Dibujo+y+pintura'),jdecode(''), jdecode('%2F5094%2F5175.html'), 'true',[],'',''],
		['PAGE','5701',jdecode('Guitarra+espa%C3%B1ola'),jdecode(''), jdecode('%2F5094%2F5701.html'), 'true',[],'',''],
		['PAGE','5728',jdecode('Yoga+%2F+Pilates'),jdecode(''), jdecode('%2F5094%2F5728.html'), 'true',[],'',''],
		['PAGE','5782',jdecode('Sevillanas'),jdecode(''), jdecode('%2F5094%2F5782.html'), 'true',[],'',''],
		['PAGE','5148',jdecode('Piano'),jdecode(''), jdecode('%2F5094%2F5148.html'), 'true',[],'','']
	],'',''],
	['PAGE','44846',jdecode('Compa%C3%B1%C3%ADa+de+Teatro'),jdecode(''), jdecode('%2F44846%2Findex.html'), 'true',[ 
		['PAGE','196379',jdecode('Historia+de+una+escalera'),jdecode(''), jdecode('%2F44846%2F196379.html'), 'true',[],'',''],
		['PAGE','196400',jdecode('100+a%C3%B1os+Miguel+Hern%C3%A1ndez'),jdecode(''), jdecode('%2F44846%2F196400.html'), 'true',[],'',''],
		['PAGE','155479',jdecode('El+sue%C3%B1o+de+una...'),jdecode(''), jdecode('%2F44846%2F155479.html'), 'true',[],'',''],
		['PAGE','108379',jdecode('Morir...+o+no+'),jdecode(''), jdecode('%2F44846%2F108379.html'), 'true',[],'',''],
		['PAGE','108679',jdecode('Amo+y+sufro...'),jdecode(''), jdecode('%2F44846%2F108679.html'), 'true',[],'',''],
		['PAGE','44867',jdecode('Lis%C3%ADstrata'),jdecode(''), jdecode('%2F44846%2F44867.html'), 'true',[],'',''],
		['PAGE','6301',jdecode('La+Zapatera...'),jdecode(''), jdecode('%2F44846%2F6301.html'), 'true',[],'',''],
		['PAGE','83746',jdecode('Las+Srtas.+de+Avi%C3%B1%C3%B3n'),jdecode(''), jdecode('%2F44846%2F83746.html'), 'true',[],'','']
	],'',''],
	['PAGE','156779',jdecode('Grandes+eventos'),jdecode(''), jdecode('%2F156779%2Findex.html'), 'true',[ 
		['PAGE','212879',jdecode('Homenaje+a+Queen'),jdecode(''), jdecode('%2F156779%2F212879.html'), 'true',[],'',''],
		['PAGE','205179',jdecode('Celebraciones+Utilidad+Publica'),jdecode(''), jdecode('%2F156779%2F205179.html'), 'true',[],'',''],
		['PAGE','177879',jdecode('Valles+Calchaqu%C3%ADes'),jdecode(''), jdecode('%2F156779%2F177879.html'), 'true',[],'',''],
		['PAGE','156800',jdecode('Homenaje+a+The+Beatles'),jdecode(''), jdecode('%2F156779%2F156800.html'), 'true',[],'',''],
		['PAGE','156821',jdecode('Los+a%C3%B1os+80+en+Espa%C3%B1a'),jdecode(''), jdecode('%2F156779%2F156821.html'), 'true',[],'','']
	],'',''],
	['PAGE','188879',jdecode('F%C3%BAtbol'),jdecode(''), jdecode('%2F188879%2Findex.html'), 'true',[ 
		['PAGE','43646',jdecode('F%C3%BAtbol+7'),jdecode(''), jdecode('%2F188879%2F43646.html'), 'true',[],'',''],
		['PAGE','188900',jdecode('F%C3%BAtbol+Sala'),jdecode(''), jdecode('%2F188879%2F188900.html'), 'true',[],'','']
	],'',''],
	['PAGE','9401',jdecode('Exposiciones'),jdecode(''), jdecode('%2F9401.html'), 'true',[],'',''],
	['PAGE','67646',jdecode('Certamen+Literario'),jdecode(''), jdecode('%2F67646%2Findex.html'), 'true',[ 
		['PAGE','49846',jdecode('Bases+'),jdecode(''), jdecode('%2F67646%2F49846.html'), 'true',[],'',''],
		['PAGE','59446',jdecode('Modelo+de+Plica'),jdecode(''), jdecode('%2F67646%2F59446.html'), 'true',[],'',''],
		['PAGE','224079',jdecode('Certamen+2012'),jdecode(''), jdecode('%2F67646%2F224079.html'), 'true',[],'',''],
		['PAGE','195979',jdecode('Certamen+2010'),jdecode(''), jdecode('%2F67646%2F195979.html'), 'true',[],'',''],
		['PAGE','161679',jdecode('Certamen+2009'),jdecode(''), jdecode('%2F67646%2F161679.html'), 'true',[],'',''],
		['PAGE','133179',jdecode('Certamen+2008'),jdecode(''), jdecode('%2F67646%2F133179.html'), 'true',[],'',''],
		['PAGE','67667',jdecode('Certamen+2007'),jdecode(''), jdecode('%2F67646%2F67667.html'), 'true',[],'',''],
		['PAGE','4662',jdecode('Certamen+2006'),jdecode(''), jdecode('%2F67646%2F4662.html'), 'true',[],'','']
	],'',''],
	['PAGE','61146',jdecode('Torneo+de+Mus'),jdecode(''), jdecode('%2F61146%2Findex.html'), 'true',[ 
		['PAGE','9690',jdecode('Normas'),jdecode(''), jdecode('%2F61146%2F9690.html'), 'true',[],'','']
	],'',''],
	['PAGE','4959',jdecode('La+asociaci%C3%B3n'),jdecode(''), jdecode('%2F4959%2Findex.html'), 'true',[ 
		['PAGE','5013',jdecode('Historia+'),jdecode(''), jdecode('%2F4959%2F5013.html'), 'true',[],'',''],
		['PAGE','5202',jdecode('Reglamento'),jdecode(''), jdecode('%2F4959%2F5202.html'), 'true',[],'',''],
		['PAGE','4689',jdecode('El+equipo'),jdecode(''), jdecode('%2F4959%2F4689.html'), 'true',[],'',''],
		['PAGE','5337',jdecode('Los+socios'),jdecode(''), jdecode('%2F4959%2F5337.html'), 'true',[],'',''],
		['PAGE','211379',jdecode('Decl.Utilidad+P%C3%BAblica'),jdecode(''), jdecode('%2F4959%2F211379.html'), 'true',[],'','']
	],'',''],
	['PAGE','20201',jdecode('Actividades+Socios'),jdecode(''), jdecode('%2F20201%2Findex.html'), 'true',[ 
		['PAGE','224779',jdecode('Asamblea+General+Ordinaria'),jdecode(''), jdecode('%2F20201%2F224779.html'), 'true',[],'',''],
		['PAGE','121479',jdecode('Excursiones'),jdecode(''), jdecode('%2F20201%2F121479.html'), 'true',[],'',''],
		['PAGE','121500',jdecode('Salidas+al+Teatro'),jdecode(''), jdecode('%2F20201%2F121500.html'), 'true',[],'',''],
		['PAGE','122079',jdecode('Otras+actividades'),jdecode(''), jdecode('%2F20201%2F122079.html'), 'true',[],'','']
	],'',''],
	['PAGE','5040',jdecode('Blas+de+Otero'),jdecode(''), jdecode('%2F5040%2Findex.html'), 'true',[ 
		['PAGE','4554',jdecode('La+poes%C3%ADa+'),jdecode(''), jdecode('%2F5040%2F4554.html'), 'true',[],'','']
	],'',''],
	['PAGE','28935',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''), jdecode('%2F28935.html'), 'true',[],'',''],
	['PAGE','7002',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F7002%2Findex.html'), 'true',[ 
		['PAGE','7003',jdecode('Leer+el+libro+'),jdecode(''), jdecode('%2F7002%2F7003.html'), 'false',[],'','']
	],'',''],
	['PAGE','5229',jdecode('Enlaces'),jdecode(''), jdecode('%2F5229.html'), 'true',[],'',''],
	['PAGE','210679',jdecode('Foro+SOCIOS'),jdecode(''), jdecode('%2F210679.html'), 'true',[],'',''],
	['PAGE','188921',jdecode('Foro+FUTBOL+SALA'),jdecode(''), jdecode('%2F188921.html'), 'true',[],'',''],
	['PAGE','207279',jdecode('Foro+FUTBOL+7'),jdecode(''), jdecode('%2F207279.html'), 'true',[],'','']];
var siteelementCount=66;
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 prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
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:  '188900',
internalId:  '',
customField: '20110927-113459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188921',
internalId:  '',
customField: '20101020-190926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195979',
internalId:  '',
customField: '20110627-110215'
};
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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208179',
internalId:  '',
customField: '20111019-114435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4497',
internalId:  '',
customField: '20120123-103128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43646',
internalId:  '',
customField: '20110927-113612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41346',
internalId:  '',
customField: '20070720-124528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212879',
internalId:  '',
customField: '20110916-105857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4608',
internalId:  '',
customField: '20120113-122351'
};
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: '20110902-094744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4662',
internalId:  '',
customField: '20080218-113613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49846',
internalId:  '',
customField: '20120110-115758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9690',
internalId:  '',
customField: '20091022-103948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20111019-114334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41646',
internalId:  '',
customField: '20070720-125037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5121',
internalId:  '',
customField: '20110607-113359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20110607-113514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5728',
internalId:  '',
customField: '20110607-113801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5755',
internalId:  '',
customField: '20110607-114043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5782',
internalId:  '',
customField: '20110607-114156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20070308-131350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5175',
internalId:  '',
customField: '20110607-114538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155479',
internalId:  '',
customField: '20091022-112928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5836',
internalId:  '',
customField: '20110607-114357'
};
webappMappings['1003']=webappMappings['1003-aas010ine2xn11f88dc1666']={
webappId:    '1003',
documentId:  '207279',
internalId:  'aas010ine2xn11f88dc1666',
customField: 'es:ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157779',
internalId:  '',
customField: '20110607-112955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156800',
internalId:  '',
customField: '20100423-101530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4959',
internalId:  '',
customField: '20100505-115804'
};
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: '20101209-122226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4689',
internalId:  '',
customField: '20110902-101906'
};
webappMappings['1003']=webappMappings['1003-aas010ine2xn12bbe774c60']={
webappId:    '1003',
documentId:  '188921',
internalId:  'aas010ine2xn12bbe774c60',
customField: 'es:ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196400',
internalId:  '',
customField: '20101221-183505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196379',
internalId:  '',
customField: '20101221-184206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205179',
internalId:  '',
customField: '20110517-115123'
};
webappMappings['1003']=webappMappings['1003-aas010ine2xn130ac672078']={
webappId:    '1003',
documentId:  '210679',
internalId:  'aas010ine2xn130ac672078',
customField: 'es:ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210679',
internalId:  '',
customField: '20110620-113647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211379',
internalId:  '',
customField: '20110628-130144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213379',
internalId:  '',
customField: '20110922-111042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177879',
internalId:  '',
customField: '20100503-131230'
};
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: '20111118-131712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207279',
internalId:  '',
customField: '20110606-102248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224779',
internalId:  '',
customField: '20120123-102500'
};
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:  '161679',
internalId:  '',
customField: '20100629-103955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83746',
internalId:  '',
customField: '20080307-104438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188879',
internalId:  '',
customField: '20101110-103754'
};
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:  '121500',
internalId:  '',
customField: '20081218-101354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122079',
internalId:  '',
customField: '20101209-122529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121479',
internalId:  '',
customField: '20110518-095809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224079',
internalId:  '',
customField: '20120110-115841'
};
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: '20111104-132625'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INE2XN';
var companyName   = 'CENTRO+CULTURAL+BLAS+DE+OTERO';
var htmlTitle	  = '';
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+exposiciones';
var metaContents  = 'Esta+Asociaci%C3%B3n+sin+%C3%A1nimo+de+lucro+de+San+Sebasti%C3%A1n+de+los+Reyes+apuesta+por+el+ocio+y+la+cultura+en+todas+sus+facetas%3A+Teatro%2C+cabaret%2C+musica%2C+actuaciones+en+directo%2C+cursos%2C+talleres%2C+poesia%2C+certamen+literario%2C+relatos%2C+exposiciones+y+mucho+m%C3%A1s.+Que+no+te+lo+cuenten%2C+vis%C3%ADtanos.';
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();
};

