/* [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','11701',jdecode('EL+CLUB++-Noticias%2FActualidad-'),jdecode(''),'/11701/index.html','true',[ 
		['PAGE','11752',jdecode('Historia'),jdecode(''),'/11701/11752.html','true',[],'',''],
		['PAGE','11794',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/11701/11794.html','true',[],'',''],
		['PAGE','11815',jdecode('Nuestro+equipo'),jdecode(''),'/11701/11815.html','true',[],'','']
	],'',''],
	['PAGE','116723',jdecode('XIII+MEDIA+JADRAQUE'),jdecode(''),'/116723.html','true',[],'',''],
	['PAGE','114823',jdecode('III+MIRIA+DE+TORIJA+2009'),jdecode(''),'/114823.html','true',[],'',''],
	['PAGE','108823',jdecode('FOTO+DEL+A%C3%91O'),jdecode(''),'/108823.html','true',[],'',''],
	['PAGE','107423',jdecode('GIMNASIA+Y+ENTRENOS'),jdecode(''),'/107423.html','true',[],'',''],
	['PAGE','91412',jdecode('JUNTA+GENERAL+10ENERO09'),jdecode(''),'/91412.html','true',[],'',''],
	['PAGE','64712',jdecode('EQUIPACIONES+CLUB'),jdecode(''),'/64712.html','true',[],'',''],
	['PAGE','58012',jdecode('CARRERAS+DE+MONTA%C3%91A'),jdecode(''),'/58012.html','true',[],'',''],
	['PAGE','11920',jdecode('CR%C3%93NICAS'),jdecode(''),'/11920.html','true',[],'',''],
	['PAGE','12004',jdecode('FORO'),jdecode(''),'/12004.html','true',[],'',''],
	['PAGE','34601',jdecode('MARATON'),jdecode(''),'/34601/index.html','true',[ 
		['PAGE','11857',jdecode('Mapoma'),jdecode(''),'/34601/11857.html','true',[],'','']
	],'',''],
	['PAGE','111423',jdecode('CARRERAS+PASADAS'),jdecode(''),'/111423/index.html','true',[ 
		['PAGE','108023',jdecode('Cross+AJALVIR+09'),jdecode(''),'/111423/108023.html','true',[],'',''],
		['PAGE','106423',jdecode('Media+Fuencarral09+clas'),jdecode(''),'/111423/106423.html','true',[],'',''],
		['PAGE','105323',jdecode('Media+Getafe09+clasif.'),jdecode(''),'/111423/105323.html','true',[],'',''],
		['PAGE','101412',jdecode('Carrera+Alovera09++clasif.'),jdecode(''),'/111423/101412.html','true',[],'',''],
		['PAGE','93312',jdecode('Carrera+III+Centenario08+-+Brihuega'),jdecode(''),'/111423/93312.html','true',[],'',''],
		['PAGE','89412',jdecode('Media+Maraton+Guadalajara08'),jdecode(''),'/111423/89412.html','true',[],'',''],
		['PAGE','95412',jdecode('Media+Maraton+Sig%C3%BCenza+08'),jdecode(''),'/111423/95412.html','true',[],'',''],
		['PAGE','452',jdecode('Media+Maraton+Jadraque08'),jdecode(''),'/111423/452.html','true',[],'',''],
		['PAGE','473',jdecode('Inscripciones'),jdecode(''),'/111423/473.html','true',[],'',''],
		['PAGE','494',jdecode('Recorrido'),jdecode(''),'/111423/494.html','true',[],'',''],
		['PAGE','37912',jdecode('Reglamento'),jdecode(''),'/111423/37912.html','true',[],'',''],
		['PAGE','515',jdecode('Clasificaciones'),jdecode(''),'/111423/515.html','true',[],'',''],
		['PAGE','18101',jdecode('Miria+Villa+de+Torija+08'),jdecode(''),'/111423/18101.html','true',[],'',''],
		['PAGE','18122',jdecode('Inscripciones'),jdecode(''),'/111423/18122.html','true',[],'',''],
		['PAGE','18143',jdecode('Recorrido'),jdecode(''),'/111423/18143.html','true',[],'',''],
		['PAGE','19101',jdecode('Reglamento'),jdecode(''),'/111423/19101.html','true',[],'',''],
		['PAGE','18164',jdecode('Clasificaciones'),jdecode(''),'/111423/18164.html','true',[],'',''],
		['PAGE','61912',jdecode('Carrera+de+Cendejas08'),jdecode(''),'/111423/61912.html','true',[],'',''],
		['PAGE','43612',jdecode('Media+de+Marchamalo+08'),jdecode(''),'/111423/43612.html','true',[],'',''],
		['PAGE','11878',jdecode('Otras+Carreras+08'),jdecode(''),'/111423/11878.html','true',[],'','']
	],'',''],
	['PAGE','11899',jdecode('LIGA+DEL+CLUB'),jdecode(''),'/11899.html','true',[],'',''],
	['PAGE','78812',jdecode('GUADA-BURKINA+FASO'),jdecode(''),'/78812.html','true',[],'',''],
	['PAGE','11983',jdecode('MEDICINA+DEPORTIVA'),jdecode(''),'/11983.html','true',[],'',''],
	['PAGE','12046',jdecode('Fotos'),jdecode(''),'/12046.html','true',[],'',''],
	['PAGE','32411',jdecode('HACERSE+MIEMBRO'),jdecode(''),'/32411.html','true',[],'',''],
	['PAGE','16706',jdecode('LIBRO+DE+VISITAS'),jdecode(''),'/16706/index.html','true',[ 
		['PAGE','16701',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/16706/16701.html','false',[],'','']
	],'',''],
	['PAGE','104312',jdecode('fotos+club'),jdecode(''),'/104312.html','true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
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: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20100524-120330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080519-005154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080408-185225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080331-020436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080519-005135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64712',
internalId:  '',
customField: '20081012-214702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11752',
internalId:  '',
customField: '20090108-020737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11983',
internalId:  '',
customField: '20081211-111219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11794',
internalId:  '',
customField: '20080524-221434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11815',
internalId:  '',
customField: '20080717-114751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12046',
internalId:  '',
customField: '20081027-185110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116723',
internalId:  '',
customField: '20090506-193310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12004',
internalId:  '',
customField: '20080323-202251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11920',
internalId:  '',
customField: '20090211-171333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114823',
internalId:  '',
customField: '20090428-184723'
};
webappMappings['1003']=webappMappings['1003-aars20in3bkn118bd5b0c90']={
webappId:    '1003',
documentId:  '12004',
internalId:  'aars20in3bkn118bd5b0c90',
customField: 'es:ES:'
};
webappMappings['1002']=webappMappings['1002-16706aars20in3bkn']={
webappId:    '1002',
documentId:  '16706',
internalId:  '16706aars20in3bkn',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20081012-215154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11878',
internalId:  '',
customField: '20080412-184411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11857',
internalId:  '',
customField: '20080717-025553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11899',
internalId:  '',
customField: '20081204-204812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16706',
internalId:  '',
customField: '20080519-172353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20080421-225548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18122',
internalId:  '',
customField: '20080401-203255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18143',
internalId:  '',
customField: '20080401-203350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18164',
internalId:  '',
customField: '20080420-205936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20080401-194317'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89412',
internalId:  '',
customField: '20081216-125957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91412',
internalId:  '',
customField: '20090220-125145'
};
webappMappings['1501']=webappMappings['1501-3514831']={
webappId:    '1501',
documentId:  '11701',
internalId:  '3514831',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43612',
internalId:  '',
customField: '20080408-183602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58012',
internalId:  '',
customField: '20080922-192107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61912',
internalId:  '',
customField: '20080704-113257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32411',
internalId:  '',
customField: '20080401-200408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78812',
internalId:  '',
customField: '20090124-220150'
};
webappMappings['7060']=webappMappings['7060-18529cd4c2252a1fa41ceea10b11c1ba']={
webappId:    '7060',
documentId:  '104312',
internalId:  '18529cd4c2252a1fa41ceea10b11c1ba',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20081211-101607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37912',
internalId:  '',
customField: '20080408-185139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93312',
internalId:  '',
customField: '20090108-134958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95412',
internalId:  '',
customField: '20090108-140006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101412',
internalId:  '',
customField: '20090124-205840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104312',
internalId:  '',
customField: '20090124-212320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105323',
internalId:  '',
customField: '20090127-235523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106423',
internalId:  '',
customField: '20090216-171224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107423',
internalId:  '',
customField: '20090207-002714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108023',
internalId:  '',
customField: '20090207-003943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108823',
internalId:  '',
customField: '20090207-015153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111423',
internalId:  '',
customField: '20090211-172113'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20IN3BKN';
var companyName   = 'Correr+en+Guadalajara';
var htmlTitle	  = '%3A%3A+C+L+U+B++++M+A+R+A+T+%C3%93+N++++G+U+A+D+A+L+A+J+A+R+A++%3A%3A';
var metaKeywords  = 'Club+Marat%C3%B3n+Guadalajara%2C+foro+marat%C3%B3n%2C+media+marat%C3%B3n+Jadraque%2C+informaci%C3%B3n+carrera+Torija%2C+planes+de+entrenamiento%2C+medicina+deportiva%2C+rutas+Guadalajara+correr%2C+running+Guadalajara%2C+fotos+carreras+Guadalajara%2C+resultados+media+marat%C3%B3n';
var metaContents  = 'Club+Marat%C3%B3n+Guadalajara%2C+web+de+corredores+populares+y+maratonianos+de+Guadalajara%2C+informaci%C3%B3n+de+la+media+marat%C3%B3n+Jadraque+e+informaci%C3%B3n+de+la+carrera+de+Torija%2C+fotos%2C+planes+de+entrenamiento%2C+medicina+deportiva+y+foros+de+atletismo+y+marat%C3%B3n.';
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();
};
