/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','2801',jdecode('La+Asociaci%C3%B3n'),jdecode(''),'/2801/index.html','true',[ 
		['PAGE','2822',jdecode('Quienes+somos'),jdecode(''),'/2801/2822.html','true',[],'',''],
		['PAGE','2843',jdecode('Historia'),jdecode(''),'/2801/2843.html','true',[],'',''],
		['PAGE','116901',jdecode('25+A%C3%B1os+%22Talia%22'),jdecode(''),'/2801/116901.html','true',[],'',''],
		['PAGE','155501',jdecode('Alb%C3%BAm+de+Fotos+-+Talia'),jdecode(''),'/2801/155501.html','true',[],'',''],
		['PAGE','2864',jdecode('Hazte+Socio+%2F+Contactar'),jdecode(''),'/2801/2864.html','true',[],'','']
	],'',''],
	['PAGE','17601',jdecode('Actividades+y+Actos'),jdecode(''),'/17601.html','true',[],'',''],
	['PAGE','116922',jdecode('Distinciones'),jdecode(''),'/116922/index.html','true',[ 
		['PAGE','41201',jdecode('Hazte+Socio+%2F+Contactar+%28follow+up+page%29'),jdecode(''),'/116922/41201.html','false',[],'','']
	],'',''],
	['PAGE','17622',jdecode('Noticias+de+Dal%C3%ADas'),jdecode(''),'/17622/index.html','true',[ 
		['PAGE','128001',jdecode('Blog+de+Noticias'),jdecode(''),'/17622/128001.html','true',[],'',''],
		['PAGE','17664',jdecode('Boletin+Informativo+%28BIT%29'),jdecode(''),'/17622/17664.html','true',[],'',''],
		['PAGE','17706',jdecode('Hemeroteca'),jdecode(''),'/17622/17706.html','true',[],'','']
	],'',''],
	['PAGE','132301',jdecode('Publicaciones'),jdecode(''),'/132301/index.html','true',[ 
		['PAGE','17643',jdecode('Biblioteca+%22Talia%22'),jdecode(''),'/132301/17643.html','true',[],'',''],
		['PAGE','115701',jdecode('Otras+Publicaciones'),jdecode(''),'/132301/115701.html','true',[],'','']
	],'',''],
	['PAGE','17727',jdecode('Fiestas+Sto.+Cristo+de+la+Luz'),jdecode(''),'/17727.html','true',[],'',''],
	['PAGE','17748',jdecode('Archivo+Hist%C3%B3rico+Daliense'),jdecode(''),'/17748/index.html','true',[ 
		['PAGE','156401',jdecode('Archivo+Hist%C3%B3rico+Daliense+%28follow+up+page%29'),jdecode(''),'/17748/156401.html','false',[],'',''],
		['PAGE','17790',jdecode('Museo+Virtual'),jdecode(''),'/17748/17790.html','true',[],'',''],
		['PAGE','46001',jdecode('Memoria+Fotogr%C3%A1fica+Album-1'),jdecode(''),'/17748/46001.html','true',[],'',''],
		['PAGE','151301',jdecode('Memoria+Fotografica+Album-2'),jdecode(''),'/17748/151301.html','true',[],'',''],
		['PAGE','155301',jdecode('Memoria+Fotografica+Album-3'),jdecode(''),'/17748/155301.html','true',[],'','']
	],'',''],
	['PAGE','17832',jdecode('Enlaces+%28links%29'),jdecode(''),'/17832/index.html','true',[ 
		['PAGE','17853',jdecode('Dal%C3%ADas+en+Red'),jdecode(''),'/17832/17853.html','true',[],'',''],
		['PAGE','17874',jdecode('Vinculos+de+Inter%C3%A9s'),jdecode(''),'/17832/17874.html','true',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Stinger';
theSitetree.paletteFamily='88B974';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10501';
theSitetree.graphicsetId='11125';
theSitetree.contentColor='003F00';
theSitetree.contentBGColor='88B974';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stinger',
				paletteFamily: 	'88B974',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10501',
				graphicsetId: 	'11125',
				contentColor: 	'003F00',
				contentBGColor: '88B974',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'494A49',
				e_color: 		'494A49',
				f_color: 		'494A49',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100525-232518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100109-195038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2822',
internalId:  '',
customField: '20100109-195049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2843',
internalId:  '',
customField: '20100109-195106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2864',
internalId:  '',
customField: '20100109-195213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100509-194652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17643',
internalId:  '',
customField: '20090507-222434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17748',
internalId:  '',
customField: '20090509-172743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17832',
internalId:  '',
customField: '20090501-230639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132301',
internalId:  '',
customField: '20090503-154403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17622',
internalId:  '',
customField: '20090515-001956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17664',
internalId:  '',
customField: '20090509-192716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17706',
internalId:  '',
customField: '20091213-135128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17727',
internalId:  '',
customField: '20100509-195423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116901',
internalId:  '',
customField: '20100109-195123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17790',
internalId:  '',
customField: '20090509-173757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116922',
internalId:  '',
customField: '20090420-230753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17853',
internalId:  '',
customField: '20100116-002333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17874',
internalId:  '',
customField: '20100116-002506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115701',
internalId:  '',
customField: '20090507-222848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128001',
internalId:  '',
customField: '20090502-003644'
};
webappMappings['7008']=webappMappings['7008-6826']={
webappId:    '7008',
documentId:  '17748',
internalId:  '6826',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20090316-010718'
};
webappMappings['7060']=webappMappings['7060-dffbed608eacf750d64c61af44b9a5ba']={
webappId:    '7060',
documentId:  '46001',
internalId:  'dffbed608eacf750d64c61af44b9a5ba',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20090509-173614'
};
webappMappings['1501']=webappMappings['1501-7862982']={
webappId:    '1501',
documentId:  '701',
internalId:  '7862982',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-95df6e6fbbb1fdf353600f816950059f']={
webappId:    '7060',
documentId:  '155301',
internalId:  '95df6e6fbbb1fdf353600f816950059f',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-12888e40f1f05df4b70b2bb929fde318']={
webappId:    '7060',
documentId:  '151301',
internalId:  '12888e40f1f05df4b70b2bb929fde318',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151301',
internalId:  '',
customField: '20090509-173714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155301',
internalId:  '',
customField: '20090509-173639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155501',
internalId:  '',
customField: '20100109-195157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156401',
internalId:  '',
customField: '20090509-170103'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-6825']={
webappId:    '7008',
documentId:  '2864',
internalId:  '6825',
customField: 'language:es;country:ES;'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INV35W';
var companyName   = 'ASOCIACI%C3%93N+CULTURAL+%22TALIA%22+Dal%C3%ADas-Almer%C3%ADa';
var htmlTitle	  = '';
var metaKeywords  = 'Dal%C3%ADas+Talia+Cristo+Luz+Patrimonio+Almer%C3%ADa+Cultura+Fotografia+Historia';
var metaContents  = 'Pagina+de+la+Asociaci%C3%B3n+Cultural+Talia+donde+puedes+conocer+nuestros+actos+y+actividades%2C+nuestros+proyectos+e+inquietudes%2C+y+las+noticias+mas+destacadas+del+municipio+de+Dal%C3%ADas+%28Almer%C3%ADa%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();
};
