/* [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','4528',jdecode('Inicio'),jdecode(''),'/4528.html','true',[],'',''],
	['PAGE','90992',jdecode('Informaci%C3%B3n+General'),jdecode(''),'/90992/index.html','true',[ 
		['PAGE','43501',jdecode('Junta+Directiva'),jdecode(''),'/90992/43501.html','true',[],'',''],
		['PAGE','89513',jdecode('Elecciones+2006'),jdecode(''),'/90992/89513.html','true',[],'',''],
		['PAGE','82383',jdecode('Rfejyda'),jdecode(''),'/90992/82383.html','true',[],'',''],
		['PAGE','54614',jdecode('Enlaces+de+interes'),jdecode(''),'/90992/54614.html','true',[],'','']
	],'',''],
	['PAGE','70396',jdecode('Deportista'),jdecode(''),'/70396.html','true',[],'',''],
	['PAGE','88532',jdecode('INFOESPORT'),jdecode(''),'/88532.html','true',[],'',''],
	['PAGE','42362',jdecode('Escuela+Federativa'),jdecode(''),'/42362.html','true',[],'',''],
	['PAGE','158134',jdecode('Arbitraje'),jdecode(''),'/158134.html','true',[],'',''],
	['PAGE','42389',jdecode('Club+y+Cuotas+Fed.'),jdecode(''),'/42389/index.html','true',[ 
		['PAGE','57971',jdecode('Alicante'),jdecode(''),'/42389/57971.html','true',[],'',''],
		['PAGE','57998',jdecode('Castell%C3%B3n'),jdecode(''),'/42389/57998.html','true',[],'',''],
		['PAGE','58025',jdecode('Valencia'),jdecode(''),'/42389/58025.html','true',[],'','']
	],'',''],
	['PAGE','198534',jdecode('Circulares+2010'),jdecode(''),'/198534.html','true',[],'',''],
	['PAGE','41909',jdecode('JUDO'),jdecode(''),'/41909/index.html','true',[ 
		['PAGE','43840',jdecode('Tecnificaci%C3%B3n'),jdecode(''),'/41909/43840.html','true',[],'',''],
		['PAGE','135134',jdecode('Resultados+2008'),jdecode(''),'/41909/135134.html','true',[],'',''],
		['PAGE','167234',jdecode('Resultados+2009'),jdecode(''),'/41909/167234.html','true',[],'',''],
		['PAGE','200934',jdecode('Resultados+2010'),jdecode(''),'/41909/200934.html','true',[],'',''],
		['PAGE','196034',jdecode('Sorteos'),jdecode(''),'/41909/196034.html','true',[],'','']
	],'',''],
	['PAGE','41936',jdecode('JIU-JITSU'),jdecode(''),'/41936.html','true',[],'',''],
	['PAGE','42017',jdecode('KENDO'),jdecode(''),'/42017.html','true',[],'',''],
	['PAGE','41963',jdecode('WU-SHU'),jdecode(''),'/41963.html','true',[],'',''],
	['PAGE','41990',jdecode('AIKIDO'),jdecode(''),'/41990.html','true',[],'',''],
	['PAGE','42044',jdecode('DEF.+PERSONAL'),jdecode(''),'/42044.html','true',[],'',''],
	['PAGE','59865',jdecode('Juegos+Escolares'),jdecode(''),'/59865.html','true',[],'',''],
	['PAGE','58465',jdecode('Fotos'),jdecode(''),'/58465/index.html','true',[ 
		['PAGE','103228',jdecode('Judo'),jdecode(''),'/58465/103228.html','true',[],'',''],
		['PAGE','103542',jdecode('Wu-Shu'),jdecode(''),'/58465/103542.html','true',[],'',''],
		['PAGE','103835',jdecode('Jiu-Jitsu'),jdecode(''),'/58465/103835.html','true',[],'','']
	],'',''],
	['PAGE','54733',jdecode('Mapa+de+acceso'),jdecode(''),'/54733.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10432';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10432',
				graphicsetId: 	'10771',
				contentColor: 	'0000A0',
				contentBGColor: 'F0F2F4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '54733',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4528',
internalId:  '1501',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-4be34fc4977baa9073c65d121019e57b']={
webappId:    '7060',
documentId:  '103228',
internalId:  '4be34fc4977baa9073c65d121019e57b',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-b91541a5335ac3ab2fea983ce92deecd']={
webappId:    '7060',
documentId:  '103542',
internalId:  'b91541a5335ac3ab2fea983ce92deecd',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-602a361e123ea591995cc596d6fd4a7a']={
webappId:    '7060',
documentId:  '103835',
internalId:  '602a361e123ea591995cc596d6fd4a7a',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4528',
internalId:  '',
customField: '20100722-132511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88532',
internalId:  '',
customField: '20090924-075953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42362',
internalId:  '',
customField: '20100519-222914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158134',
internalId:  '',
customField: '20100714-102022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59865',
internalId:  '',
customField: '20100607-225744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90992',
internalId:  '',
customField: '20070911-134706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20090223-103624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89513',
internalId:  '',
customField: '20061229-084754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82383',
internalId:  '',
customField: '20070516-105756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54614',
internalId:  '',
customField: '20060716-154824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70396',
internalId:  '',
customField: '20100720-134500'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4528',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42389',
internalId:  '',
customField: '20100525-220610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57971',
internalId:  '',
customField: '20100408-115407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57998',
internalId:  '',
customField: '20100408-115327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58025',
internalId:  '',
customField: '20100408-115516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41909',
internalId:  '',
customField: '20100714-101817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43840',
internalId:  '',
customField: '20100720-134107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167234',
internalId:  '',
customField: '20091221-163833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41936',
internalId:  '',
customField: '20100616-171457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42017',
internalId:  '',
customField: '20100518-213542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41963',
internalId:  '',
customField: '20100616-171245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41990',
internalId:  '',
customField: '20100215-175850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42044',
internalId:  '',
customField: '20080930-114720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135134',
internalId:  '',
customField: '20081223-160911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200934',
internalId:  '',
customField: '20100720-134426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196034',
internalId:  '',
customField: '20100208-222835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198534',
internalId:  '',
customField: '20100720-134615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58465',
internalId:  '',
customField: '20070518-140858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103228',
internalId:  '',
customField: '20070515-160653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103542',
internalId:  '',
customField: '20070515-160638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103835',
internalId:  '',
customField: '20070516-105832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54733',
internalId:  '',
customField: '20050905-220607'
};
webappMappings['1501']=webappMappings['1501-1471277']={
webappId:    '1501',
documentId:  '4528',
internalId:  '1471277',
customField: '1501'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010IN2LY1';
var companyName   = 'FEDERACION+DE+JUDO+Y+DISCIPLINAS+ASOCIADAS+C.V.';
var htmlTitle	  = 'Federacion+Valenciana+de+Judo';
var metaKeywords  = 'artes+marciales';
var metaContents  = 'judo%2C+aikido%2C+jiu+jitsu%2C+karate%2C+wu+shu%2C+kendo%2C+defensa+personal';
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();
};
