/* [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','1801',jdecode('INICIO'),jdecode(''),'/1801.html','true',[],'',''],
	['PAGE','5701',jdecode('Cat%C3%A1logo'),jdecode(''),'/5701/index.html','true',[ 
		['PAGE','11111',jdecode('Grandes+Maestros+Andaluces'),jdecode(''),'/5701/11111.html','true',[],'',''],
		['PAGE','7401',jdecode('Conocer+Andaluc%C3%ADa+GEA+XXI'),jdecode(''),'/5701/7401.html','true',[],'',''],
		['PAGE','10901',jdecode('Historia+del+Flamenco'),jdecode(''),'/5701/10901.html','true',[],'',''],
		['PAGE','10943',jdecode('Artesan%C3%ADa+Andaluza'),jdecode(''),'/5701/10943.html','true',[],'',''],
		['PAGE','11027',jdecode('La+Luz+de+la+Semana+Santa+de+Sevilla'),jdecode(''),'/5701/11027.html','true',[],'',''],
		['PAGE','11006',jdecode('Palios+de+Sevilla'),jdecode(''),'/5701/11006.html','true',[],'',''],
		['PAGE','10985',jdecode('De+Jerusal%C3%A9n+a+Sevilla'),jdecode(''),'/5701/10985.html','true',[],'',''],
		['PAGE','12201',jdecode('Trilog%C3%ADa+Semana+Santa+de+Sevilla'),jdecode(''),'/5701/12201.html','true',[],'',''],
		['PAGE','12222',jdecode('Semana+Santa+de+M%C3%A1laga'),jdecode(''),'/5701/12222.html','true',[],'',''],
		['PAGE','17601',jdecode('Roc%C3%ADo%3A+Camino+de+Luz'),jdecode(''),'/5701/17601.html','true',[],'',''],
		['PAGE','11090',jdecode('Iglesias+y+Conventos+de+Sevilla'),jdecode(''),'/5701/11090.html','true',[],'',''],
		['PAGE','35306',jdecode('Huelva%3A+Serran%C3%ADa+de+Luz'),jdecode(''),'/5701/35306.html','true',[],'',''],
		['PAGE','41320',jdecode('La+Semana+Santa+de+Sevilla'),jdecode(''),'/5701/41320.html','true',[],'',''],
		['PAGE','44434',jdecode('Feria+de+Abril'),jdecode(''),'/5701/44434.html','true',[],'',''],
		['PAGE','50534',jdecode('Triana+con+su+Esperanza'),jdecode(''),'/5701/50534.html','true',[],'','']
	],'',''],
	['PAGE','24301',jdecode('Noticias'),jdecode(''),'/24301.html','true',[],'',''],
	['PAGE','5743',jdecode('Fondo+Hist%C3%B3rico'),jdecode(''),'/5743.html','true',[],'',''],
	['PAGE','5764',jdecode('Ofertas'),jdecode(''),'/5764.html','true',[],'',''],
	['PAGE','24501',jdecode('Contacto'),jdecode(''),'/24501.html','true',[],'',''],
	['PAGE','23701',jdecode('Aviso+legal'),jdecode(''),'/23701.html','true',[],'',''],
	['PAGE','5827',jdecode('TIENDA+ONLINE'),jdecode(''),'/5827.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Unity';
theSitetree.paletteFamily='922C36';
theSitetree.keyvisualId='11826';
theSitetree.keyvisualName='kv_11826.jpg';
theSitetree.fontsetId='33135';
theSitetree.graphicsetId='14075';
theSitetree.contentColor='922C36';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Unity',
				paletteFamily: 	'922C36',
				keyvisualId: 	'11826',
				keyvisualName: 	'kv_11826.jpg',
				fontsetId: 		'33135',
				graphicsetId: 	'14075',
				contentColor: 	'922C36',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-653']={
webappId:    '7008',
documentId:  '24501',
internalId:  '653',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20110601-170509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20110418-105013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20111027-113120'
};
webappMappings['4001']=webappMappings['4001-759076']={
webappId:    '4001',
documentId:  '5827',
internalId:  '759076',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5764',
internalId:  '',
customField: '20111122-144005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20111103-131453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20090626-100212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5827',
internalId:  '',
customField: '20110328-131722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20090626-121905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10985',
internalId:  '',
customField: '20110418-105411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20090629-105554'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10943',
internalId:  '',
customField: '20090629-110542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20090610-191613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11006',
internalId:  '',
customField: '20090626-122432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11027',
internalId:  '',
customField: '20090705-130953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20110418-105459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12222',
internalId:  '',
customField: '20090626-122902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11090',
internalId:  '',
customField: '20090629-123951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11111',
internalId:  '',
customField: '20111103-131146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20090626-101629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35306',
internalId:  '',
customField: '20091228-192423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41320',
internalId:  '',
customField: '20100322-184418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44434',
internalId:  '',
customField: '20100414-171636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50534',
internalId:  '',
customField: '20101207-114109'
};
var canonHostname = 'eul0300556.eu.verio.net';
var accountId     = 'ANTT10INX2CR';
var companyName   = 'EDICIONES+TARTESSOS';
var htmlTitle	  = 'Ediciones+Tartessos';
var metaKeywords  = 'EDICIONES+TARTESSOS%2C+ediciones+tartessos%2C+editorial+tartessos%2C+tartessos%2C+tartesos%2C+Sevilla%2C+Andaluc%C3%ADa%2C+Flamenco%2C+La+Semana+Santa+de+Sevilla%2C+Semana+Santa+de+M%C3%A1laga%2C+Semana+Santa%2C+Crucificados+de+Sevilla%2C+Nazarenos+de+Sevilla%2C+Misterios+de+Sevilla%2C+Palios+de+Sevilla%2C+Roc%C3%ADo%2C+Feria+de+Sevilla%2C+Cofrade%2C+Virgen%2C+Artesan%C3%ADa%2C+Iglesias+y+Conventos+de+Sevilla%2C+Artes+y+Artesan%C3%ADas+de+la+Semana+Santa+andaluza%2C+Juan+Mart%C3%ADnez+Monta%C3%B1%C3%A9s%2C+Pedro+Rold%C3%A1n%2C+Juan+de+Mesa%2C+Escultura%2C+Arte%2C+Imaginero%2C+Escultor%2C+Pasi%C3%B3n%2C+Antropolog%C3%ADa%2C+Costaleros%2C+Paso%2C+Trono%2C+Bordados%2C+Orfebrer%C3%ADa%2C+Talla%2C+Cortejo%2C+Procesi%C3%B3n%2C+Hermandad%2C+Hermano+Mayor%2C+Cofrad%C3%ADa%2C+Jesucristo%2C+Dios%2C+De+Jerusal%C3%A9n+a+Sevilla%2C+Jerusal%C3%A9n%2C+Macarena%2C+Esperanza+de+Triana%2C+Gran+Poder%2C+Cachorro%2C+Historia%2C+Retablo%2C+Antonio+Castillo+Lastrucci%2C+Triana%2C+Enciclopedia+de+Andaluc%C3%ADa%2C+Castillo+Lastrucci%2C+Lastrucci%2C+Huelva%2C+Serran%C3%ADa+de+Luz%2C+Sierra+de+Huelva%2C+Semana+Santa+de+Andaluc%C3%ADa%2C+religiosidad+popular%2C+editoriales%2C+libros+de+arte%2C+feria%2C+Feria+de+Abril%2C+Feria+de+Sevilla%2C+La+Feria+de+Abril+de+Sevilla%2C+Ruiz+Gij%C3%B3n%2C+Ortega+Bru%2C+Luis+Ortega+Bru';
var metaContents  = 'EDICIONES+TARTESSOS+es+una+empresa+andaluza+que+publica+libros+de+gran+formato+y+calidad+dedicados+al+Arte+y+la+Cultura+en+general.+Semana+Santa%2C+Flamenco%2C+Historia+de+Andaluc%C3%ADa%2C+Artesan%C3%ADa+y+Antropolog%C3%ADa%2C+abarcan+los+contenidos+principales+de+unas+publicaciones+de+gran+rigor+cient%C3%ADfico+y+muy+sugerentes+en+su+apartado+fotogr%C3%A1fico.';
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();
};

