/* [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','6501',jdecode('Inicio'),jdecode(''),'/6501/index.html','true',[ 
		['PAGE','6552',jdecode('%C2%BFQui%C3%A9nes+somos%3F'),jdecode(''),'/6501/6552.html','false',[],'',''],
		['PAGE','6573',jdecode('Mapa+Web'),jdecode(''),'/6501/6573.html','false',[],'','']
	],'',''],
	['PAGE','6594',jdecode('Ecoturismo'),jdecode(''),'/6594/index.html','true',[ 
		['PAGE','7101',jdecode('Rutas+4+x+4'),jdecode(''),'/6594/7101.html','true',[],'',''],
		['PAGE','7122',jdecode('Gu%C3%ADa+de+Monfrag%C3%BCe'),jdecode(''),'/6594/7122.html','true',[],'',''],
		['PAGE','7143',jdecode('Birding+Monfrag%C3%BCe'),jdecode(''),'/6594/7143.html','true',[],'',''],
		['PAGE','7164',jdecode('Cicloturismo+en+la+Reserva'),jdecode(''),'/6594/7164.html','true',[],'',''],
		['PAGE','7185',jdecode('Alquiler+de+Bicicletas'),jdecode(''),'/6594/7185.html','true',[],'',''],
		['PAGE','7206',jdecode('Navega+Estremadura'),jdecode(''),'/6594/7206.html','true',[],'',''],
		['PAGE','7227',jdecode('Condiciones+Generales'),jdecode(''),'/6594/7227.html','true',[],'','']
	],'',''],
	['PAGE','6615',jdecode('Centro+Turismo+Naturaleza'),jdecode(''),'/6615/index.html','true',[ 
		['PAGE','8401',jdecode('Museo+Vivo+de+la+Dehesa'),jdecode(''),'/6615/8401.html','true',[],'',''],
		['PAGE','8422',jdecode('Dehesa+Aventura'),jdecode(''),'/6615/8422.html','true',[],'',''],
		['PAGE','8443',jdecode('Gymkana+en+la+Dehesa'),jdecode(''),'/6615/8443.html','true',[],'',''],
		['PAGE','8464',jdecode('Rutas+en+BTT'),jdecode(''),'/6615/8464.html','true',[],'',''],
		['PAGE','8485',jdecode('Alquiler+de+bicicletas'),jdecode(''),'/6615/8485.html','true',[],'',''],
		['PAGE','8506',jdecode('Tiro+con+Arco'),jdecode(''),'/6615/8506.html','true',[],'',''],
		['PAGE','8527',jdecode('Paintball'),jdecode(''),'/6615/8527.html','true',[],'',''],
		['PAGE','8548',jdecode('Como+llegar'),jdecode(''),'/6615/8548.html','true',[],'',''],
		['PAGE','8569',jdecode('Condiciones+Generales'),jdecode(''),'/6615/8569.html','true',[],'','']
	],'',''],
	['PAGE','11901',jdecode('Educaci%C3%B3n+Ambiental'),jdecode(''),'/11901/index.html','true',[ 
		['PAGE','11922',jdecode('Actividades+en+Aula'),jdecode(''),'/11901/11922.html','true',[],'',''],
		['PAGE','11943',jdecode('Actividades+en+Campo'),jdecode(''),'/11901/11943.html','true',[],'',''],
		['PAGE','11964',jdecode('Viajes+Educaci%C3%B3n+Ambiental'),jdecode(''),'/11901/11964.html','true',[],'',''],
		['PAGE','12101',jdecode('Programas'),jdecode(''),'/11901/12101.html','true',[],'',''],
		['PAGE','12122',jdecode('Condiciones+Generales'),jdecode(''),'/11901/12122.html','true',[],'','']
	],'',''],
	['PAGE','6636',jdecode('Cortijo+El+Carrascal'),jdecode(''),'/6636/index.html','true',[ 
		['PAGE','9822',jdecode('Tarifa+Puentes'),jdecode(''),'/6636/9822.html','true',[],'',''],
		['PAGE','9864',jdecode('Oferta+2+noches'),jdecode(''),'/6636/9864.html','true',[],'',''],
		['PAGE','9885',jdecode('Oferta+1+noche'),jdecode(''),'/6636/9885.html','true',[],'',''],
		['PAGE','9906',jdecode('Actividades'),jdecode(''),'/6636/9906.html','true',[],'',''],
		['PAGE','9927',jdecode('Como+Llegar+'),jdecode(''),'/6636/9927.html','true',[],'',''],
		['PAGE','9948',jdecode('Condiciones+de+Contrataci%C3%B3n'),jdecode(''),'/6636/9948.html','true',[],'','']
	],'',''],
	['PAGE','6657',jdecode('Hotel+Puerta+de+Monfrag%C3%BCe'),jdecode(''),'/6657/index.html','true',[ 
		['PAGE','6678',jdecode('Hotel'),jdecode(''),'/6657/6678.html','true',[],'',''],
		['PAGE','6699',jdecode('Asador'),jdecode(''),'/6657/6699.html','true',[],'',''],
		['PAGE','6720',jdecode('Ofertas'),jdecode(''),'/6657/6720.html','true',[],'',''],
		['PAGE','6741',jdecode('Actividades'),jdecode(''),'/6657/6741.html','true',[],'',''],
		['PAGE','13901',jdecode('Birding+Monfrag%C3%BCe'),jdecode(''),'/6657/13901.html','false',[],'',''],
		['PAGE','13301',jdecode('C%C3%B3mo+llegar'),jdecode(''),'/6657/13301.html','true',[],'','']
	],'',''],
	['PAGE','15001',jdecode('Ofertas'),jdecode(''),'/15001.html','true',[],'',''],
	['PAGE','29001',jdecode('Contacto'),jdecode(''),'/29001.html','true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
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: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100224-233134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6573',
internalId:  '',
customField: '20100216-112854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6594',
internalId:  '',
customField: '20100310-025103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100310-025144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7122',
internalId:  '',
customField: '20100413-190248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7143',
internalId:  '',
customField: '20100310-025806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7164',
internalId:  '',
customField: '20100226-055655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7185',
internalId:  '',
customField: '20100226-060018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7206',
internalId:  '',
customField: '20100226-060307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7227',
internalId:  '',
customField: '20100226-060354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6615',
internalId:  '',
customField: '20100310-025843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20100226-060628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8422',
internalId:  '',
customField: '20100704-173331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8443',
internalId:  '',
customField: '20100704-173442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8464',
internalId:  '',
customField: '20100310-030149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8485',
internalId:  '',
customField: '20100226-061537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8506',
internalId:  '',
customField: '20100226-061701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8527',
internalId:  '',
customField: '20100226-061822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8548',
internalId:  '',
customField: '20100226-061904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8569',
internalId:  '',
customField: '20100226-062025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6636',
internalId:  '',
customField: '20100226-065801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20100226-075102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20100310-015739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9864',
internalId:  '',
customField: '20100225-013420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9885',
internalId:  '',
customField: '20100225-014023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9906',
internalId:  '',
customField: '20100225-014505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9927',
internalId:  '',
customField: '20100225-020611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9948',
internalId:  '',
customField: '20100226-065948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6657',
internalId:  '',
customField: '20100225-181626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6678',
internalId:  '',
customField: '20100310-030358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6552',
internalId:  '',
customField: '20100216-112854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6699',
internalId:  '',
customField: '20100225-192941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6720',
internalId:  '',
customField: '20100704-173703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6741',
internalId:  '',
customField: '20100226-073323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20100226-062240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11964',
internalId:  '',
customField: '20100226-065608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11922',
internalId:  '',
customField: '20100226-064909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11943',
internalId:  '',
customField: '20100226-065032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100224-201907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20100226-065716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20100217-090959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20100226-073924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100226-084415'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AAS340INLP7R';
var companyName   = 'Monfrag%C3%BCe+Vivo';
var htmlTitle	  = '';
var metaKeywords  = 'Turismo+de+Naturaleza%2C+Turismo+Activo%2C+Ecoturismo%2C+rutas+por+monfrague%2C+Museo+de+la+Dehesa%2C+Incentivos%2C+Educaci%C3%B3n+Ambiental%2C+ornitolog%C3%ADa%2C+';
var metaContents  = 'Monfrag%C3%BCe+Vivo';
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();
};
