/* [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','1401',jdecode('Inicio'),jdecode(''), jdecode('%2F1401.html'), 'true',[],'',''],
	['PAGE','1452',jdecode('Alumnos'),jdecode(''), jdecode('%2F1452.html'), 'true',[],'',''],
	['PAGE','1473',jdecode('Curriculums'),jdecode(''), jdecode('%2F1473.html'), 'true',[],'',''],
	['PAGE','4301',jdecode('Programa+de+Radio+Salud+Cuantica'),jdecode(''), jdecode('%2F4301.html'), 'true',[],'',''],
	['PAGE','1494',jdecode('Articulos'),jdecode(''), jdecode('%2F1494%2Findex.html'), 'true',[ 
		['PAGE','3701',jdecode('Beneficios+del+reiki'),jdecode(''), jdecode('%2F1494%2F3701.html'), 'true',[],'',''],
		['PAGE','3722',jdecode('beneficios+de+la+kinesiolog%C3%ADa'),jdecode(''), jdecode('%2F1494%2F3722.html'), 'true',[],'',''],
		['PAGE','3743',jdecode('chakras'),jdecode(''), jdecode('%2F1494%2F3743.html'), 'true',[],'',''],
		['PAGE','3764',jdecode('protecci%C3%B3n+de+la+energ%C3%ADa+negativa'),jdecode(''), jdecode('%2F1494%2F3764.html'), 'true',[],'',''],
		['PAGE','3785',jdecode('Beneficios+de+la+meditaci%C3%B3n'),jdecode(''), jdecode('%2F1494%2F3785.html'), 'true',[],'','']
	],'',''],
	['PAGE','1515',jdecode('Cursos+y+Diplomados'),jdecode(''), jdecode('%2F1515%2Findex.html'), 'true',[ 
		['PAGE','1536',jdecode('Reiki+Japon%C3%A9s'),jdecode(''), jdecode('%2F1515%2F1536.html'), 'true',[],'',''],
		['PAGE','1557',jdecode('kinesiolog%C3%ADa+holistica'),jdecode(''), jdecode('%2F1515%2F1557.html'), 'true',[],'',''],
		['PAGE','1578',jdecode('Lenguaje+Corporal'),jdecode(''), jdecode('%2F1515%2F1578.html'), 'true',[],'',''],
		['PAGE','3806',jdecode('Lenguaje+Oculto+del+Nombre'),jdecode(''), jdecode('%2F1515%2F3806.html'), 'true',[],'',''],
		['PAGE','3827',jdecode('T%C3%BA+Palabra+es+PODER'),jdecode(''), jdecode('%2F1515%2F3827.html'), 'true',[],'',''],
		['PAGE','3848',jdecode('Mente+Cuantica+Millonaria'),jdecode(''), jdecode('%2F1515%2F3848.html'), 'true',[],'',''],
		['PAGE','6723',jdecode('Taller+de+Actuaci%C3%B3n'),jdecode(''), jdecode('%2F1515%2F6723.html'), 'true',[],'','']
	],'',''],
	['PAGE','3869',jdecode('Meditaci%C3%B3n+Gratuita'),jdecode(''), jdecode('%2F3869.html'), 'true',[],'',''],
	['PAGE','1599',jdecode('Clases'),jdecode(''), jdecode('%2F1599.html'), 'true',[],'',''],
	['PAGE','1620',jdecode('Terapias'),jdecode(''), jdecode('%2F1620%2Findex.html'), 'true',[ 
		['PAGE','8423',jdecode('Osteopat%C3%ADa+para+Columna+V+'),jdecode(''), jdecode('%2F1620%2F8423.html'), 'true',[],'',''],
		['PAGE','8923',jdecode('Tanatolog%C3%ADa'),jdecode(''), jdecode('%2F1620%2F8923.html'), 'true',[],'','']
	],'',''],
	['PAGE','1641',jdecode('Cont%C3%A1ctenos'),jdecode(''), jdecode('%2F1641.html'), 'true',[],'',''],
	['PAGE','1662',jdecode('Noticias'),jdecode(''), jdecode('%2F1662.html'), 'true',[],'',''],
	['PAGE','1683',jdecode('Tienda'),jdecode(''), jdecode('%2F1683.html'), 'true',[],'',''],
	['PAGE','1704',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F1704.html'), 'true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='689763';
theSitetree.keyvisualId='7867';
theSitetree.keyvisualName='kv_7867.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12297';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9FCC9A';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'689763',
				keyvisualId: 	'7867',
				keyvisualName: 	'kv_7867.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12297',
				contentColor: 	'000000',
				contentBGColor: '9FCC9A',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'689763',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['4001']=webappMappings['4001-18813015']={
webappId:    '4001',
documentId:  '1683',
internalId:  '18813015',
customField: 'language:es;country:ES;'
};
webappMappings['1002']=webappMappings['1002-1704avf340i797y0']={
webappId:    '1002',
documentId:  '1704',
internalId:  '1704avf340i797y0',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20120125-154722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1599',
internalId:  '',
customField: '20120116-155841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1515',
internalId:  '',
customField: '20120125-154929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20120130-154853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20120116-154146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1473',
internalId:  '',
customField: '20120112-150358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1494',
internalId:  '',
customField: '20120111-145801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20120112-121629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1557',
internalId:  '',
customField: '20120112-122409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1578',
internalId:  '',
customField: '20120112-123357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1641',
internalId:  '',
customField: '20120112-133810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1662',
internalId:  '',
customField: '20120111-145801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1683',
internalId:  '',
customField: '20120111-145801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1704',
internalId:  '',
customField: '20120111-145802'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1401',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1452',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1473',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1494',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1515',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1536',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1557',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1578',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1599',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1620',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1641',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1662',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1683',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1704',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3869',
internalId:  '',
customField: '20120112-133935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20120123-143627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3722',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3743',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3764',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3785',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3806',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3827',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3848',
internalId:  '',
customField: '20120112-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6723',
internalId:  '',
customField: '20120123-143337'
};
webappMappings['1501']=webappMappings['1501-19056603']={
webappId:    '1501',
documentId:  '1401',
internalId:  '19056603',
customField: '1501'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4301',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3701',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3722',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3743',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3764',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3785',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3806',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3827',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3848',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '6723',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3869',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8423',
internalId:  '',
customField: '20120126-162655'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8423',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8923',
internalId:  '',
customField: '20120130-154941'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8923',
internalId:  '',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I797Y0';
var companyName   = 'CENTRO+ENTERPRISE+REIKI';
var htmlTitle	  = '';
var metaKeywords  = 'reiki%2C+yoga%2C+taichi%2C+cursos%2C+curso%2C+diplomados%2C+talleres%2C+meditacion%2C+gendai%2C+japon%C3%A9s%2C+polanco%2C+anzures%2C+chapultepec%2C+antara%2C+tarot%2C+terapias%2C+clases%2C+psicoanalisis%2C+psicoterapia%2C+masaje%2C+masajes%2C+tui+na%2C+shiatsu%2C+ayurveda%2C+buda%2C+medicina%2C+natural%2C+integral%2C+acupuntura%2C+mente%2C+cuantica%2C+lenguaje+corporal%2C+kinesiolog%C3%ADa%2C+holistica%2C+holistico%2C+yin+yang%2C+superaci%C3%B3n+personal%2C+iluminaci%C3%B3n%2C+crecimiento%2C+terapias%2C+craneosacral%2C+osteopatia%2C+columna+vertebral%2C+diagnostico+por+el+rostro%2C+reflexolog%C3%ADa%2C+actuaci%C3%B3n%2C+actoral%2C+actor%2C+actriz%2Cescuela%2C+centro%2C+holistico%2C+yin+yang%2C+lenguaje+facial%2C+paul+eckman%2C+kinesiolog%C3%ADa%2C+sanar%2C+limpias%2C+chamanico%2C+liberaci%C3%B3n%2C+artes+marciales%2C+artes+esenicas%2C+teatro%2C+danza%2C+meditaciones%2C+sintonizaci%C3%B3n%2C+sintonizaciones%2C+iniciaciones%2C+reiky%2C+qi+gong%2C+chi+kung%2C+namm+yoga%2C+kundalini+yoga%2C+liverpool%2C+respioraci%C3%B3n+natural%2C+energetico%2C+energizante%2C+cancer%2C+fibromialgia%2C+neuralg%C3%ADa+al+trigemino%2C+paralisis+facial%2C+acupuntura+estetica%2C+cansancio+cronico%2C+fatiga+muscular%2C+fatiga%2C+masaje+deportivo%2C+ciatica%2C+torticolis%2C+contracturas%2C+desgarres%2C+lumbalgia%2C+dolor+de+cadera%2C+dolor+de+piernas%2C+dolor+de+cabeza%2C+migra%C3%B1ana%2C+acufenos%2C+dolor+de+oidos%2C+corazon%2C+ri%C3%B1%C3%B3n%2C+vejiga%2C+pancreas%2C+diabetes%2C+hipertensi%C3%B3n%2C+hipotensi%C3%B3n%2C+presi%C3%B3n+arterial+alta%2C+psicomotricidad%2C+tratamiento%2C+tratamientos%2C+alternativo%2C+dolor%2C+aceites+vehiculares%2C+aceites+esenciales%2C+venta%2C+dolor+de+manos%2C+artritis%2C+varices%2C+dermatitis%2C+gastritis%2C+colitis%2C+ulceras%2C+diarrea%2C+estre%C3%B1imiento%2C+enojo%2C+neuratenia%2C+neurastenico%2C+depresi%C3%B3n+depresivos%2C+manico+depresivos%2C+tristeza%2C+miedos%2C+fobias%2C+insomnio%2C+cansancio%2C+estres%2C+traumas%2C+masaje+para+embarazo%2C+depresi%C3%B3n+pos+parto%2C+craneosacral%2C+terapia+craneosacral%2C+terapia+visceral%2C+sinusitis%2C+dolor+de+nariz%2C+dolor+de+tobillo%2C+dolor+de+piernas%2C+problemas+de+circulaci%C3%B3n%2C+retenci%C3%B3n+de+liquidos%2C+hinchazon%2C+dolor+de+rodillas%2C+edematizaci%C3%B3n%2C+hiperalg%C3%ADa%2C+polidur%C3%ADa%2C+polifagia%2C+polidipsia%2C+torceduras%2C+reajustes+vertebrales%2C+atm%2C+articulaci%C3%B3n+tempo+mandibular%2C+kinesiologos%2C+osteopatas%2C+quiropracticos%2C+reumatismo%2C+colico+menstrual%2C+eliminaci%C3%B3n+de+quistes+por+acupuntura%2C+osteopat%C3%ADa+suave+AORT%2C+bio-magnetismo%2C+par+biomagn%C3%A9tico%2C+goiz%2C+polaridad%2C+drenaje+linfatico+manual%2C+alphabiotista%2C+quiropractica+salud+quiropractico+medico+dolor+rehabilitaci%C3%B3n+terapia+fisica+tratamiento+ciatica+tratamiento+disco+herniado+AJUSTE+QUIROPRACTICO+COLUMNA+VERTEBRAL+DOLOR+CABEZA+DOLOR+LUMBAR+ESTRES+INSOMNIO+accidentes+ajuste+anti+estr%C3%A9s+dolor+de+espalda+latigazo+lumbago+masajes+profesional+Anatom%C3%ADa+de+la+ci%C3%A1tica+BIENESTAR+Ci%C3%A1tica%3A+s%C3%ADntomas+y+causas+posibles+Dolor+tras+un+accidente%3A+El+latigazo+cervical+El+tratamiento+quiropractico+ahorra+recursos++contra+el+dolor+FLEXIBILIDAD+Hernia+De+Disco++En+Quiropr%C3%A1ctica+La+Soluci%C3%B3n+No+Quir%C3%BArgica+La+utilizaci%C3%B3n+de+la+quiropr%C3%A1ctica+Masajes+Quiropr%C3%A1cticos+y+sus+beneficios+Prevenci%C3%B3n+Prevenir+el+dolor+al+practicar+deporte+Profesi%C3%B3n+de+quiropr%C3%A1ctico+Que+Es+La+Ciatica+O+Dolor+Ciatico%3F+SINTOMAS+SUBLUXACION+Seguridad+Del+Tratamiento+Tratamiento+Para+El+Disco+Herniado+Sin+Cirug%C3%ADa+Tratamiento+quiropr%C3%A1ctico+para+la+ci%C3%A1tica+Uso+de+medicamentos+contra+el+dolor+alternativo+certificaci%C3%B3n+ci%C3%A1tica+colegio+contracciones+musculares+cuello+doctorado+especialidad+especialista+facebook+low+back+pain+lumbalgia+manipulacion+migra%C3%B1a+natural+palmer+posturas+sistema+nervioso+t%C3%A9cnicas+tipos+universidad+%C2%BFC%C3%B3mo+aliviar+los+dolores+cr%C3%B3nico+y+agudo%3F%2C+tanatolog%C3%ADa%2C+elizabhet+kubler+ross%2C+perdidas%2C+duelo%2C+divorcio%2C+depresi%C3%B3n%2C+negaci%C3%B3n%2C+psico+corporal%2C+ira%2C+enojo%2C+aceptaci%C3%B3n%2C+depresi%C3%B3n%2C+acuerdos%2C+tratamiento%2C+tratamientos%2C+pactos%2C+pacto%2C+tristeza%2C+liberaci%C3%B3n%2C+%24300%2C+%24500%2C+terapia%2C+terapias%2C+geztal%2C+gestal%2C+psicologo%2C+doctor%2C+medico%2C+terapeuta%2C+conocimiento+de+la+enfermedad%2C+ego%2C+desapego%2C+piedras+calientes%2C+inciensos%2C+tazas%2C+simbolos+de+reiki%2C+aceites+vehiculares%2C+agujas+de+acupuntura%2C+martillo+neurologico%2C+atm%2Carticulaci%C3%B3n+tempo+mandibular%2C+eft%2C+emotional+freedom+tecnique%2C+tecnica+de+liberaci%C3%B3n+emocional';
var metaContents  = 'centro+dedicado+a+la+ense%C3%B1anza+de+medicina+integral+y+terapias+integrales';
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();
};

