/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],'',''],
	['PAGE','95445',jdecode('English+Version'),jdecode(''),'/95445/index.html','true',[ 
		['PAGE','95857',jdecode('The+Region'),jdecode(''),'/95445/95857.html','true',[],'',''],
		['PAGE','230167',jdecode('Birds'),jdecode(''),'/95445/230167.html','true',[],'',''],
		['PAGE','95884',jdecode('Location'),jdecode(''),'/95445/95884.html','true',[],'',''],
		['PAGE','95911',jdecode('That+to+visit'),jdecode(''),'/95445/95911.html','true',[],'',''],
		['PAGE','231467',jdecode('Dolmens'),jdecode(''),'/95445/231467.html','true',[],'',''],
		['PAGE','95938',jdecode('Prices+and+offers'),jdecode(''),'/95445/95938/index.html','true',[ 
			['PAGE','96507',jdecode('Prices+%28follow+up+page%29'),jdecode(''),'/95445/95938/96507.html','false',[],'','']
		],'','']
	],'',''],
	['PAGE','28852',jdecode('La+Casa'),jdecode(''),'/28852.html','true',[],'',''],
	['PAGE','5126',jdecode('La+Comarca'),jdecode(''),'/5126/index.html','true',[ 
		['PAGE','150061',jdecode('Botanica'),jdecode(''),'/5126/150061.html','true',[],'',''],
		['PAGE','150088',jdecode('Fauna'),jdecode(''),'/5126/150088.html','true',[],'',''],
		['PAGE','150115',jdecode('Geolog%C3%ADa'),jdecode(''),'/5126/150115.html','true',[],'','']
	],'',''],
	['PAGE','28933',jdecode('Localizaci%C3%B3n'),jdecode(''),'/28933.html','true',[],'',''],
	['PAGE','29176',jdecode('Que+visitar'),jdecode(''),'/29176/index.html','true',[ 
		['PAGE','29203',jdecode('D%C3%B3lmenes'),jdecode(''),'/29176/29203.html','true',[],'',''],
		['PAGE','29230',jdecode('P.+Natural'),jdecode(''),'/29176/29230.html','true',[],'',''],
		['PAGE','29257',jdecode('Portugal'),jdecode(''),'/29176/29257.html','true',[],'',''],
		['PAGE','29284',jdecode('Alc%C3%A1ntara'),jdecode(''),'/29176/29284.html','true',[],'','']
	],'',''],
	['PAGE','251278',jdecode('Donde+Comer'),jdecode(''),'/251278.html','true',[],'',''],
	['PAGE','24731',jdecode('Tarifas+y+Reservas'),jdecode(''),'/24731/index.html','true',[ 
		['PAGE','26420',jdecode('Precios+y+servicios+%28follow+up+page%29'),jdecode(''),'/24731/26420.html','false',[],'','']
	],'',''],
	['PAGE','155661',jdecode('Libro+de+visitas'),jdecode(''),'/155661/index.html','true',[ 
		['PAGE','155656',jdecode('Leer+Opiniones'),jdecode(''),'/155661/155656.html','false',[],'','']
	],'',''],
	['PAGE','178956',jdecode('Album+Fotografico'),jdecode(''),'/178956.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Time';
theSitetree.paletteFamily='401A1A';
theSitetree.keyvisualId='2302';
theSitetree.keyvisualName='korrespondenz.jpg';
theSitetree.fontsetId='271';
theSitetree.graphicsetId='338';
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: 			'Time',
				paletteFamily: 	'401A1A',
				keyvisualId: 	'2302',
				keyvisualName: 	'korrespondenz.jpg',
				fontsetId: 		'271',
				graphicsetId: 	'338',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'4D1A1A',
				b_color: 		'C55050',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-3509265']={
webappId:    '1501',
documentId:  '4595',
internalId:  '3509265',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-6903']={
webappId:    '7008',
documentId:  '95938',
internalId:  '6903',
customField: 'language:es;country:ES;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4595',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251278',
internalId:  '',
customField: '20100315-142728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155656',
internalId:  '',
customField: '20070904-170837'
};
webappMappings['1002']=webappMappings['1002-155661aas010inezt4']={
webappId:    '1002',
documentId:  '155661',
internalId:  '155661aas010inezt4',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-6902']={
webappId:    '7008',
documentId:  '24731',
internalId:  '6902',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4595',
internalId:  '',
customField: '20091112-222711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24731',
internalId:  '',
customField: '20100530-005854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95445',
internalId:  '',
customField: '20090515-122543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95857',
internalId:  '',
customField: '20090609-115157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95884',
internalId:  '',
customField: '20090515-200511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95911',
internalId:  '',
customField: '20090609-123100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95938',
internalId:  '',
customField: '20100314-193544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96507',
internalId:  '',
customField: '20070329-222504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28852',
internalId:  '',
customField: '20090513-230219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5126',
internalId:  '',
customField: '20090514-152735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150061',
internalId:  '',
customField: '20090514-154311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150088',
internalId:  '',
customField: '20090514-160414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150115',
internalId:  '',
customField: '20090514-162140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28933',
internalId:  '',
customField: '20080319-183607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29176',
internalId:  '',
customField: '20090515-003435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29203',
internalId:  '',
customField: '20090514-233234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29230',
internalId:  '',
customField: '20090515-005017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29257',
internalId:  '',
customField: '20090515-005917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29284',
internalId:  '',
customField: '20090515-010620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26420',
internalId:  '',
customField: '20070316-004736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155661',
internalId:  '',
customField: '20070904-170837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231467',
internalId:  '',
customField: '20090609-125016'
};
webappMappings['7060']=webappMappings['7060-67fc81b00e6bc6c79d94a8714d00c9b1']={
webappId:    '7060',
documentId:  '178956',
internalId:  '67fc81b00e6bc6c79d94a8714d00c9b1',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178956',
internalId:  '',
customField: '20080317-090354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230167',
internalId:  '',
customField: '20090609-121538'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEZT4';
var companyName   = 'CASA+RURAL+MONTENUEVO';
var htmlTitle	  = '';
var metaKeywords  = 'casa+rural%3B+turismo+extremadura%3B+casa+rural+caceres%3B+valencia+de+alcantara%3B+ace%C3%B1a+de+la+borrega%3B+birding%3B+ornitolog%C3%ADa%3B+senderismo%3B+d%C3%B3lmenes%3B+Tajo+Internacional%3B+Parque+Natural%3B+niscalo%3B+boletus%3B+piscinas+naturales%3B+Caza%3B+senderismo%3B+Puente+Romano+Alcantara%3B+Montenuevo%3B+Sierra+de+San+Pedro%3B+ZEPA%3B';
var metaContents  = 'En+pleno+Parque+Natural+Tajo+Internacional%3B+Junto+a+la+Sierra+de+San+Pedro%3B+habitaciones+con+ba%C3%B1o+completo+y+television%3B+toda+la+casa+se+encuentra+libre+de+barreras+arquitectonicas%3B+Zona+de+Especial+Proteccion+de+Aves+%28ZEPA%29%3B+Elanio+Azul%3B+Buitre+negro%3B+Cig%C3%BCe%C3%B1a+negra%3B+Aguila+Imperial+Iberica%3B+micologia%3B+Puente+Romano+de+Alcantara%3B+Castillo+de+Alburquerque%3B+Recintos+Medievales+%28Marvao%29%3B+gran+conjunto+megal%C3%ADtico+compuesto+por+unos+45+d%C3%B3lmenes%3B+Piscinas+Naturales+ideales+para+los+meses+de+verano%3B+Fundaci%C3%B3n+San+Benito+de+Alc%C3%A1ntara%3B+Zona+del+Tajo+Internacional%2FCedillo%2FHerrera+de+Alc%C3%A1ntara%2FSantiago+de+Alc%C3%A1ntara%3B+Bien+de+Inter%C3%A9s+Cultural+por+la+UNESCO+con+categor%C3%ADa+de+Recinto+Megal%C3%ADtico%3B+The+house+has+3+comfortable+double+rooms+and+1+twin+room%3B+Tagus+International+Nature+Reserve%3B+Monfrague+National+Park%3B+rutas+senderistas+se%C3%B1alizadas%3B++++++++';
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();
};
