/* [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','312',jdecode('Inicio'),jdecode(''),'/312.html','true',[],'',''],
	['PAGE','463934',jdecode('Archivo+2010'),jdecode(''),'/463934/index.html','true',[ 
		['PAGE','463955',jdecode('Enero+'),jdecode(''),'/463934/463955.html','true',[],'',''],
		['PAGE','473534',jdecode('Febrero'),jdecode(''),'/463934/473534.html','true',[],'',''],
		['PAGE','481734',jdecode('Marzo'),jdecode(''),'/463934/481734.html','true',[],'',''],
		['PAGE','494134',jdecode('Abril'),jdecode(''),'/463934/494134.html','true',[],'',''],
		['PAGE','497934',jdecode('Mayo'),jdecode(''),'/463934/497934.html','true',[],'','']
	],'',''],
	['PAGE','297212',jdecode('Archivo+2009'),jdecode(''),'/297212/index.html','true',[ 
		['PAGE','444834',jdecode('Diciembre+09'),jdecode(''),'/297212/444834.html','true',[],'',''],
		['PAGE','426112',jdecode('Noviembre+09'),jdecode(''),'/297212/426112.html','true',[],'',''],
		['PAGE','395512',jdecode('Octubre+09'),jdecode(''),'/297212/395512.html','true',[],'',''],
		['PAGE','381412',jdecode('Septiembre+09'),jdecode(''),'/297212/381412.html','true',[],'',''],
		['PAGE','361312',jdecode('Julio+09'),jdecode(''),'/297212/361312.html','true',[],'',''],
		['PAGE','344312',jdecode('Junio+09'),jdecode(''),'/297212/344312.html','true',[],'',''],
		['PAGE','324912',jdecode('Mayo+09'),jdecode(''),'/297212/324912.html','true',[],'',''],
		['PAGE','297812',jdecode('Abril+09'),jdecode(''),'/297212/297812.html','true',[],'',''],
		['PAGE','264912',jdecode('Marzo+09'),jdecode(''),'/297212/264912.html','true',[],'','']
	],'',''],
	['PAGE','36201',jdecode('Deportes'),jdecode(''),'/36201/index.html','true',[ 
		['PAGE','390612',jdecode('Trofeo+cineteca+7+arte'),jdecode(''),'/36201/390612.html','true',[],'',''],
		['PAGE','93012',jdecode('Foro+deportivo'),jdecode(''),'/36201/93012.html','true',[],'','']
	],'',''],
	['PAGE','495155',jdecode('NOT+MAYO+2010'),jdecode(''),'/495155/index.html','false',[ 
		['PAGE','495134',jdecode('Desarticulada+red+droga'),jdecode(''),'/495155/495134.html','false',[],'',''],
		['PAGE','510134',jdecode('Pepe+Alonso+presi+federacion+carnaval'),jdecode(''),'/495155/510134.html','true',[],'',''],
		['PAGE','501534',jdecode('Festejos+verano+'),jdecode(''),'/495155/501534.html','true',[],'',''],
		['PAGE','506134',jdecode('Simulacro+policia'),jdecode(''),'/495155/506134.html','true',[],'',''],
		['PAGE','508234',jdecode('GAS+A+AGUILAS'),jdecode(''),'/495155/508234.html','true',[],'',''],
		['PAGE','509234',jdecode('Resultados+Triatlon'),jdecode(''),'/495155/509234.html','true',[],'',''],
		['PAGE','508255',jdecode('Triatlon+'),jdecode(''),'/495155/508255.html','true',[],'',''],
		['PAGE','506155',jdecode('Incendio+Todossol'),jdecode(''),'/495155/506155.html','true',[],'',''],
		['PAGE','504934',jdecode('AUDITORIO+AGUILAS+EN+EXPO+ATENAS'),jdecode(''),'/495155/504934.html','true',[],'',''],
		['PAGE','504434',jdecode('Convenio+Hosteaguilas'),jdecode(''),'/495155/504434.html','true',[],'',''],
		['PAGE','499334',jdecode('mocion+izquierda+unida'),jdecode(''),'/495155/499334.html','true',[],'',''],
		['PAGE','500534',jdecode('control+contra+el+botellon'),jdecode(''),'/495155/500534.html','true',[],'',''],
		['PAGE','499355',jdecode('detenidos+por+robar'),jdecode(''),'/495155/499355.html','true',[],'',''],
		['PAGE','498834',jdecode('Fallece+Alfonso+Esc%C3%A1mez'),jdecode(''),'/495155/498834.html','true',[],'',''],
		['PAGE','499376',jdecode('Reacciones+fallecimiento+Alfonso+Esc%C3%A1mez'),jdecode(''),'/495155/499376.html','true',[],'',''],
		['PAGE','497634',jdecode('Alumbrado+Rambla+charco'),jdecode(''),'/495155/497634.html','true',[],'',''],
		['PAGE','495176',jdecode('semana+cultural+amas+de+casa'),jdecode(''),'/495155/495176.html','false',[],'',''],
		['PAGE','495197',jdecode('estudio+Hospital+Aguilas'),jdecode(''),'/495155/495197.html','false',[],'',''],
		['PAGE','495218',jdecode('Nota+PP+%C3%81guilas'),jdecode(''),'/495155/495218.html','false',[],'',''],
		['PAGE','496434',jdecode('Presentaci%C3%B3n+Unimar'),jdecode(''),'/495155/496434.html','true',[],'','']
	],'',''],
	['PAGE','14501',jdecode('Meteo+%C3%81guilas'),jdecode(''),'/14501/index.html','true',[ 
		['PAGE','114312',jdecode('Gota+Fr%C3%ADa'),jdecode(''),'/14501/114312.html','true',[],'',''],
		['PAGE','240512',jdecode('Nieve+en+Alto+de+Purias'),jdecode(''),'/14501/240512.html','true',[],'','']
	],'',''],
	['PAGE','14543',jdecode('Farmacia+de+Guardia'),jdecode(''),'/14543.html','true',[],'',''],
	['PAGE','19901',jdecode('Tel%C3%A9fonos+de+Inter%C3%A9s'),jdecode(''),'/19901.html','true',[],'',''],
	['PAGE','22301',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/22301.html','true',[],'',''],
	['PAGE','38001',jdecode('Submarinismo+'),jdecode(''),'/38001/index.html','true',[ 
		['PAGE','175412',jdecode('Delf%C3%ADn'),jdecode(''),'/38001/175412.html','true',[],'','']
	],'',''],
	['PAGE','68012',jdecode('Al+pie+de+la+letra'),jdecode(''),'/68012.html','false',[],'',''],
	['PAGE','88612',jdecode('P%C3%81G.+INTERACTIVA'),jdecode(''),'/88612/index.html','false',[ 
		['PAGE','88633',jdecode('Votaci%C3%B3n+1'),jdecode(''),'/88612/88633.html','true',[],'',''],
		['PAGE','501134',jdecode('Votaci%C3%B3n+2'),jdecode(''),'/88612/501134.html','true',[],'',''],
		['PAGE','507234',jdecode('votaci%C3%B3n+3'),jdecode(''),'/88612/507234.html','true',[],'',''],
		['PAGE','507255',jdecode('Votaci%C3%B3n+4'),jdecode(''),'/88612/507255.html','true',[],'',''],
		['PAGE','510155',jdecode('Votacion+Pepe+Alonso'),jdecode(''),'/88612/510155.html','true',[],'','']
	],'',''],
	['PAGE','307912',jdecode('FOROS'),jdecode(''),'/307912/index.html','false',[ 
		['PAGE','307933',jdecode('El+debate'),jdecode(''),'/307912/307933.html','true',[],'',''],
		['PAGE','307954',jdecode('Foro+deportivo'),jdecode(''),'/307912/307954.html','true',[],'',''],
		['PAGE','307975',jdecode('Al+pie+de+la+letra'),jdecode(''),'/307912/307975.html','true',[],'','']
	],'',''],
	['PAGE','130712',jdecode('Aviso+legal'),jdecode(''),'/130712.html','true',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='Sub_Port';
theSitetree.paletteFamily='416FB6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10376';
theSitetree.graphicsetId='10540';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sub_Port',
				paletteFamily: 	'416FB6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10376',
				graphicsetId: 	'10540',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312',
internalId:  '',
customField: '20100906-101655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499334',
internalId:  '',
customField: '20100519-115944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14543',
internalId:  '',
customField: '20100906-102502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20090519-170510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499355',
internalId:  '',
customField: '20100519-113751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20081022-122737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494134',
internalId:  '',
customField: '20100407-125359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '463955',
internalId:  '',
customField: '20100122-181624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20100318-115314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499376',
internalId:  '',
customField: '20100519-114052'
};
webappMappings['1501']=webappMappings['1501-4627611']={
webappId:    '1501',
documentId:  '312',
internalId:  '4627611',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20100828-231300'
};
webappMappings['7060']=webappMappings['7060-b6028d181923887e25c6e13727b5119f']={
webappId:    '7060',
documentId:  '38001',
internalId:  'b6028d181923887e25c6e13727b5119f',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38001',
internalId:  '',
customField: '20081027-172017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88612',
internalId:  '',
customField: '20100318-114940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88633',
internalId:  '',
customField: '20100526-120242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68012',
internalId:  '',
customField: '20091229-122456'
};
webappMappings['7005']=webappMappings['7005-33']={
webappId:    '7005',
documentId:  '88633',
internalId:  '33',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '496434',
internalId:  '',
customField: '20100524-111626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344312',
internalId:  '',
customField: '20090701-112941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '463934',
internalId:  '',
customField: '20100521-114535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495134',
internalId:  '',
customField: '20100505-114933'
};
webappMappings['7005']=webappMappings['7005-64']={
webappId:    '7005',
documentId:  '88612',
internalId:  '64',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93012',
internalId:  '',
customField: '20081027-171348'
};
webappMappings['1003']=webappMappings['1003-aars20in3lyc11c7a02bf82']={
webappId:    '1003',
documentId:  '93012',
internalId:  'aars20in3lyc11c7a02bf82',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '324912',
internalId:  '',
customField: '20090529-171909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114312',
internalId:  '',
customField: '20081203-120241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '508255',
internalId:  '',
customField: '20100527-121033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '509234',
internalId:  '',
customField: '20100531-123138'
};
webappMappings['7005']=webappMappings['7005-118']={
webappId:    '7005',
documentId:  '510155',
internalId:  '118',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '510134',
internalId:  '',
customField: '20100611-121620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '510155',
internalId:  '',
customField: '20100611-121854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130712',
internalId:  '',
customField: '20081103-105200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175412',
internalId:  '',
customField: '20081124-115519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307933',
internalId:  '',
customField: '20090421-105334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307954',
internalId:  '',
customField: '20090421-105608'
};
webappMappings['1003']=webappMappings['1003-aars20in3lyc11c7a02bf82']={
webappId:    '1003',
documentId:  '307954',
internalId:  'aars20in3lyc11c7a02bf82',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307975',
internalId:  '',
customField: '20090421-114849'
};
webappMappings['1003']=webappMappings['1003-aars20in3lyc11cbcac2192']={
webappId:    '1003',
documentId:  '307975',
internalId:  'aars20in3lyc11cbcac2192',
customField: 'es:ES:'
};
webappMappings['1003']=webappMappings['1003-aars20in3lyc120c7de6a09']={
webappId:    '1003',
documentId:  '307933',
internalId:  'aars20in3lyc120c7de6a09',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '481734',
internalId:  '',
customField: '20100407-125102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '361312',
internalId:  '',
customField: '20090727-113313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '381412',
internalId:  '',
customField: '20091001-120947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '500534',
internalId:  '',
customField: '20100520-101511'
};
webappMappings['7005']=webappMappings['7005-105']={
webappId:    '7005',
documentId:  '501134',
internalId:  '105',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '426112',
internalId:  '',
customField: '20091201-102030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444834',
internalId:  '',
customField: '20091229-121527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '497634',
internalId:  '',
customField: '20100507-131351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '497934',
internalId:  '',
customField: '20100527-124701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '498834',
internalId:  '',
customField: '20100517-110226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240512',
internalId:  '',
customField: '20090113-111721'
};
webappMappings['7060']=webappMappings['7060-36c8205147ddef57e6c9a8a71dfcec52']={
webappId:    '7060',
documentId:  '240512',
internalId:  '36c8205147ddef57e6c9a8a71dfcec52',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473534',
internalId:  '',
customField: '20100226-115515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495155',
internalId:  '',
customField: '20100611-121339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495176',
internalId:  '',
customField: '20100505-115835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495197',
internalId:  '',
customField: '20100505-123102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495218',
internalId:  '',
customField: '20100505-122557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '390612',
internalId:  '',
customField: '20100112-120506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '395512',
internalId:  '',
customField: '20091102-160845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '508234',
internalId:  '',
customField: '20100527-120121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '507234',
internalId:  '',
customField: '20100526-120127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501134',
internalId:  '',
customField: '20100526-120053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '507255',
internalId:  '',
customField: '20100526-120158'
};
webappMappings['7005']=webappMappings['7005-107']={
webappId:    '7005',
documentId:  '501534',
internalId:  '107',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501534',
internalId:  '',
customField: '20100524-110652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '504434',
internalId:  '',
customField: '20100521-110544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '504934',
internalId:  '',
customField: '20100521-123504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '506155',
internalId:  '',
customField: '20100524-103213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '506134',
internalId:  '',
customField: '20100524-104051'
};
webappMappings['7005']=webappMappings['7005-113']={
webappId:    '7005',
documentId:  '507234',
internalId:  '113',
customField: 'language:es;country:ES;'
};
webappMappings['7005']=webappMappings['7005-114']={
webappId:    '7005',
documentId:  '507255',
internalId:  '114',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297212',
internalId:  '',
customField: '20091201-104514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297812',
internalId:  '',
customField: '20090507-094126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307912',
internalId:  '',
customField: '20090430-112825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264912',
internalId:  '',
customField: '20090401-110712'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20IN3LYC';
var companyName   = 'CANAL+%C3%81GUILAS';
var htmlTitle	  = '';
var metaKeywords  = 'AGUILAS+NOTICIAS+INFORMACION+MURCIA+CANALAGUILAS+FARMACIA+DE+GUARDIA+METEO+DEPORTES+CANAL+AGUILAS+%C3%81GUILAS';
var metaContents  = 'CANAL+AGUILAS%2C+toda+la+informaci%C3%B3n+y+noticias+del+Municipio+de+%C3%81guilas+%28Murcia%29.';
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();
};
