/* [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','4555',jdecode('Portada'),jdecode(''),'/4555.html','true',[],'',''],
	['PAGE','4639',jdecode('Gilgam%C3%A9s'),jdecode(''),'/4639/index.html','true',[ 
		['PAGE','20058',jdecode('Tablilla+I'),jdecode(''),'/4639/20058.html','true',[],'',''],
		['PAGE','20085',jdecode('Tablilla+II'),jdecode(''),'/4639/20085.html','true',[],'',''],
		['PAGE','20112',jdecode('Tablilla+III'),jdecode(''),'/4639/20112.html','true',[],'',''],
		['PAGE','20139',jdecode('Tablilla+IV'),jdecode(''),'/4639/20139.html','true',[],'',''],
		['PAGE','20166',jdecode('Tablilla+V'),jdecode(''),'/4639/20166.html','true',[],'',''],
		['PAGE','20193',jdecode('Tablilla+VI'),jdecode(''),'/4639/20193.html','true',[],'',''],
		['PAGE','20220',jdecode('Tablilla+VII'),jdecode(''),'/4639/20220.html','true',[],'',''],
		['PAGE','20247',jdecode('Tablilla+VIII'),jdecode(''),'/4639/20247.html','true',[],'',''],
		['PAGE','20274',jdecode('Tablilla+IX'),jdecode(''),'/4639/20274.html','true',[],'',''],
		['PAGE','20301',jdecode('Tablilla+X'),jdecode(''),'/4639/20301.html','true',[],'',''],
		['PAGE','20328',jdecode('Tablilla+XI'),jdecode(''),'/4639/20328.html','true',[],'',''],
		['PAGE','20355',jdecode('Tablilla+XII'),jdecode(''),'/4639/20355.html','true',[],'',''],
		['PAGE','29327',jdecode('Notas+Finales'),jdecode(''),'/4639/29327.html','true',[],'','']
	],'',''],
	['PAGE','4666',jdecode('Revista+FURTIVO'),jdecode(''),'/4666/index.html','true',[ 
		['PAGE','85216',jdecode('Furtivo+N%C2%BA+0'),jdecode(''),'/4666/85216.html','true',[],'',''],
		['PAGE','10630',jdecode('Furtivo+N%C2%BA+I'),jdecode(''),'/4666/10630.html','true',[],'',''],
		['PAGE','25612',jdecode('Furtivo+N%C2%BA+II'),jdecode(''),'/4666/25612.html','true',[],'',''],
		['PAGE','10684',jdecode('Furtivo+N%C2%BA+III'),jdecode(''),'/4666/10684.html','true',[],'',''],
		['PAGE','10711',jdecode('Furtivo+N%C2%BA+IV'),jdecode(''),'/4666/10711.html','true',[],'',''],
		['PAGE','21949',jdecode('Furtivo+N%C2%BA+V'),jdecode(''),'/4666/21949.html','true',[],'',''],
		['PAGE','26506',jdecode('Furtivo+N%C2%BA+VI'),jdecode(''),'/4666/26506.html','true',[],'',''],
		['PAGE','10738',jdecode('Furtivo+N%C2%BA+VII+Extra'),jdecode(''),'/4666/10738.html','true',[],'',''],
		['PAGE','57216',jdecode('Furtivo+N%C2%BA+VIII'),jdecode(''),'/4666/57216.html','true',[],'',''],
		['PAGE','30917',jdecode('Pozoamargo+%28Art%C3%ADculos%29'),jdecode(''),'/4666/30917.html','true',[],'',''],
		['PAGE','17903',jdecode('Valdecabras+%28Art%C3%ADculos%29'),jdecode(''),'/4666/17903.html','true',[],'',''],
		['PAGE','95816',jdecode('Otra+Historia+I'),jdecode(''),'/4666/95816.html','true',[],'','']
	],'',''],
	['PAGE','98516',jdecode('Navaja-UR'),jdecode(''),'/98516/index.html','true',[ 
		['PAGE','101516',jdecode('Navaja-LUGAL'),jdecode(''),'/98516/101516.html','true',[],'','']
	],'',''],
	['PAGE','4693',jdecode('D%C3%ADas+de+Oto%C3%B1o+en+Valdecabras'),jdecode(''),'/4693.html','true',[],'',''],
	['PAGE','31276',jdecode('Fotos-Actualidad+gr%C3%A1fica'),jdecode(''),'/31276.html','true',[],'',''],
	['PAGE','119016',jdecode('Enlaces'),jdecode(''),'/119016.html','true',[],'',''],
	['PAGE','11803',jdecode('Fotos-D%C3%ADasdeoto%C3%B1oenValdecabras1'),jdecode(''),'/11803.html','true',[],'',''],
	['PAGE','8803',jdecode('Fotos-D%C3%ADasdeOto%C3%B1oenValdecabras2'),jdecode(''),'/8803.html','true',[],'',''],
	['PAGE','30085',jdecode('Fotos+de+Pozoamargo'),jdecode(''),'/30085.html','true',[],'',''],
	['PAGE','29817',jdecode('Fotos+de+Valdecabras'),jdecode(''),'/29817.html','true',[],'',''],
	['PAGE','28261',jdecode('Publicidad'),jdecode(''),'/28261.html','true',[],'',''],
	['PAGE','75216',jdecode('Poes%C3%ADa'),jdecode(''),'/75216.html','true',[],'',''],
	['PAGE','13385',jdecode('Pozoamargo'),jdecode(''),'/13385/index.html','true',[ 
		['PAGE','14192',jdecode('Historia'),jdecode(''),'/13385/14192.html','true',[],'',''],
		['PAGE','120216',jdecode('Prehistoria'),jdecode(''),'/13385/120216.html','true',[],'',''],
		['PAGE','124616',jdecode('Art%C3%ADculos%C3%8Dntegros'),jdecode(''),'/13385/124616.html','true',[],'',''],
		['PAGE','18607',jdecode('furtivo.eu'),jdecode(''),'/13385/18607.html','true',[],'','']
	],'',''],
	['PAGE','14165',jdecode('Valdecabras'),jdecode(''),'/14165/index.html','true',[ 
		['PAGE','60516',jdecode('Atentado+contra+vecinos'),jdecode(''),'/14165/60516.html','true',[],'',''],
		['PAGE','78116',jdecode('Los+Expedientes'),jdecode(''),'/14165/78116.html','true',[],'',''],
		['PAGE','76516',jdecode('El+Parque+Natural'),jdecode(''),'/14165/76516.html','true',[],'','']
	],'',''],
	['PAGE','91016',jdecode('Variopinta'),jdecode(''),'/91016/index.html','true',[ 
		['PAGE','81816',jdecode('Pensamientos+cortos'),jdecode(''),'/91016/81816.html','true',[],'',''],
		['PAGE','81116',jdecode('a+Obama'),jdecode(''),'/91016/81116.html','true',[],'',''],
		['PAGE','74216',jdecode('Cuenca+2016'),jdecode(''),'/91016/74216.html','true',[],'',''],
		['PAGE','63716',jdecode('Curiosidades'),jdecode(''),'/91016/63716.html','true',[],'',''],
		['PAGE','91316',jdecode('arreglos-e'),jdecode(''),'/91016/91316.html','false',[],'','']
	],'',''],
	['PAGE','71816',jdecode('Hongos+y+setas'),jdecode(''),'/71816.html','true',[],'',''],
	['PAGE','6034',jdecode('Opina'),jdecode(''),'/6034.html','true',[],'',''],
	['PAGE','6035',jdecode('Libro+de+Visitas'),jdecode(''),'/6035.html','false',[],'','']];
var siteelementCount=57;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='003333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='79';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='D0D5DB';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'003333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'79',
				contentColor: 	'000066',
				contentBGColor: 'D0D5DB',
				a_color: 		'003333',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-6034aas010inelik']={
webappId:    '1002',
documentId:  '6034',
internalId:  '6034aas010inelik',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-3450678']={
webappId:    '1501',
documentId:  '4555',
internalId:  '3450678',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-3a2ede90543a7f67b132b20bbcba5c30']={
webappId:    '7060',
documentId:  '8803',
internalId:  '3a2ede90543a7f67b132b20bbcba5c30',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-e9a4ac4d5af5951fc258c6974affc2b5']={
webappId:    '7060',
documentId:  '11803',
internalId:  'e9a4ac4d5af5951fc258c6974affc2b5',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-0973a27677b62db5b56ac711a792081b']={
webappId:    '7060',
documentId:  '29817',
internalId:  '0973a27677b62db5b56ac711a792081b',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-a789ce0c21fcae48fa87e93f8b4bd157']={
webappId:    '7060',
documentId:  '30085',
internalId:  'a789ce0c21fcae48fa87e93f8b4bd157',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-7dc1ecd62a60a62be543f1f689875726']={
webappId:    '7060',
documentId:  '31276',
internalId:  '7dc1ecd62a60a62be543f1f689875726',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20100723-133849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31276',
internalId:  '',
customField: '20100527-005312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4639',
internalId:  '',
customField: '20090530-005331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20058',
internalId:  '',
customField: '20080327-130148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20085',
internalId:  '',
customField: '20080327-131257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20112',
internalId:  '',
customField: '20080327-132008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20139',
internalId:  '',
customField: '20080519-135145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20166',
internalId:  '',
customField: '20080215-113350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20193',
internalId:  '',
customField: '20080327-133618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20220',
internalId:  '',
customField: '20080226-121547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20247',
internalId:  '',
customField: '20080519-134416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20274',
internalId:  '',
customField: '20070426-002904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080405-105346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20328',
internalId:  '',
customField: '20070513-010305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20355',
internalId:  '',
customField: '20080410-001232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29327',
internalId:  '',
customField: '20080519-134630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4666',
internalId:  '',
customField: '20100727-130249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98516',
internalId:  '',
customField: '20091014-110051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10630',
internalId:  '',
customField: '20090811-182929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25612',
internalId:  '',
customField: '20090818-155607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10684',
internalId:  '',
customField: '20070511-011802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10711',
internalId:  '',
customField: '20081024-173740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21949',
internalId:  '',
customField: '20081024-171850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26506',
internalId:  '',
customField: '20080918-121421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10738',
internalId:  '',
customField: '20070416-010650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30917',
internalId:  '',
customField: '20070518-012648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17903',
internalId:  '',
customField: '20070414-005441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60516',
internalId:  '',
customField: '20090521-140852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4693',
internalId:  '',
customField: '20080729-135146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8803',
internalId:  '',
customField: '20070309-215013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11803',
internalId:  '',
customField: '20090824-094547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30085',
internalId:  '',
customField: '20091010-224304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29817',
internalId:  '',
customField: '20070430-130412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13385',
internalId:  '',
customField: '20100723-135440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14192',
internalId:  '',
customField: '20100722-143709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18607',
internalId:  '',
customField: '20091010-231317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28261',
internalId:  '',
customField: '20091014-110233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14165',
internalId:  '',
customField: '20090525-123809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6034',
internalId:  '',
customField: '20070421-235929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71816',
internalId:  '',
customField: '20090925-111447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57216',
internalId:  '',
customField: '20100730-104816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63716',
internalId:  '',
customField: '20090505-133848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74216',
internalId:  '',
customField: '20090525-124837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75216',
internalId:  '',
customField: '20100605-005530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76516',
internalId:  '',
customField: '20090517-124526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78116',
internalId:  '',
customField: '20090526-233113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81816',
internalId:  '',
customField: '20090824-090913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81116',
internalId:  '',
customField: '20090604-023739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85216',
internalId:  '',
customField: '20090811-182537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91016',
internalId:  '',
customField: '20090824-092641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91316',
internalId:  '',
customField: '20100714-140737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95816',
internalId:  '',
customField: '20090722-165525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101516',
internalId:  '',
customField: '20100629-121310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6035',
internalId:  '',
customField: '20070224-152312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119016',
internalId:  '',
customField: '20100628-183322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120216',
internalId:  '',
customField: '20100702-124012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124616',
internalId:  '',
customField: '20100715-181653'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INELIK';
var companyName   = 'Si+crees+en+la+Justicia%2C+huye+de+ella';
var htmlTitle	  = 'Gilgamesh%2FGilgam%C3%A9s';
var metaKeywords  = 'Navajas%2C+Navajas+de+Cuenca.+Gilgam%C3%A9s.+Gilgamehs.+Navajas+de+calidad';
var metaContents  = 'Arte%2C+cultura+y+cr%C3%ADtica';
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();
};
