/* [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','4593',jdecode('P%C3%A1gina+Inicial'),jdecode(''),'/4593.html','true',[],'',''],
	['PAGE','5028',jdecode('Hist%C3%B2ria+'),jdecode(''),'/5028/index.html','true',[ 
		['PAGE','5109',jdecode('Cronologia+del+Jiujitsu'),jdecode(''),'/5028/5109.html','true',[],'',''],
		['PAGE','5082',jdecode('L%C2%B4etiqueta+del+Jiujitsu'),jdecode(''),'/5028/5082.html','true',[],'',''],
		['PAGE','5055',jdecode('Jiujitsu+%2F+Judo'),jdecode(''),'/5028/5055.html','true',[],'','']
	],'',''],
	['PAGE','4650',jdecode('Dedicat%C3%B2ria'),jdecode(''),'/4650.html','true',[],'',''],
	['PAGE','36651',jdecode('Associaci%C3%B3+Esportiva'),jdecode(''),'/36651/index.html','true',[ 
		['PAGE','64749',jdecode('President'),jdecode(''),'/36651/64749.html','true',[],'',''],
		['PAGE','64770',jdecode('Codi+Intern'),jdecode(''),'/36651/64770.html','true',[],'','']
	],'',''],
	['PAGE','91649',jdecode('Entitats+colaboradores'),jdecode(''),'/91649.html','true',[],'',''],
	['PAGE','4677',jdecode('Organitzaci%C3%B3'),jdecode(''),'/4677/index.html','true',[ 
		['PAGE','36051',jdecode('p%C3%A1gina+personal+%28Ferran%29'),jdecode(''),'/4677/36051.html','true',[],'',''],
		['PAGE','5001',jdecode('instructor+de+jiu-jitsu'),jdecode(''),'/4677/5001.html','true',[],'','']
	],'',''],
	['PAGE','85749',jdecode('GOKIO'),jdecode(''),'/85749/index.html','true',[ 
		['PAGE','93849',jdecode('Programa+T%C3%A8cnic+Oficial'),jdecode(''),'/85749/93849.html','true',[],'','']
	],'',''],
	['PAGE','38851',jdecode('Educaci%C3%B3++F%C3%ADsica'),jdecode(''),'/38851/index.html','true',[ 
		['PAGE','45349',jdecode('Ki+%28Energ%C3%ADa+interna%29'),jdecode(''),'/38851/45349.html','true',[],'',''],
		['PAGE','63149',jdecode('Atemi-waza'),jdecode(''),'/38851/63149.html','true',[],'',''],
		['PAGE','103749',jdecode('kyusho-Jitsu+%28Punts+Vitals%29'),jdecode(''),'/38851/103749.html','true',[],'',''],
		['PAGE','63170',jdecode('Anatomia'),jdecode(''),'/38851/63170.html','true',[],'','']
	],'',''],
	['PAGE','31151',jdecode('Quadre+de+cinturons+'),jdecode(''),'/31151/index.html','true',[ 
		['PAGE','32763',jdecode('Cinturons+negres+'),jdecode(''),'/31151/32763.html','true',[],'','']
	],'',''],
	['PAGE','5299',jdecode('Galeria+d%C2%B4imatges'),jdecode(''),'/5299.html','true',[],'',''],
	['PAGE','7215',jdecode('Mestres+del+Budo+'),jdecode(''),'/7215.html','true',[],'',''],
	['PAGE','45370',jdecode('Glossari+Japon%C3%A8s'),jdecode(''),'/45370.html','true',[],'',''],
	['PAGE','58449',jdecode('Filosof%C3%ADa++Oriental'),jdecode(''),'/58449/index.html','true',[ 
		['PAGE','38878',jdecode('Geografia+'),jdecode(''),'/58449/38878.html','true',[],'',''],
		['PAGE','38905',jdecode('Pensament+i+religi%C3%B3+'),jdecode(''),'/58449/38905.html','true',[],'','']
	],'',''],
	['PAGE','59749',jdecode('Calendari+de+Tecnificaci%C3%B3'),jdecode(''),'/59749.html','true',[],'',''],
	['PAGE','71549',jdecode('not%C3%ADcies'),jdecode(''),'/71549/index.html','true',[ 
		['PAGE','71570',jdecode('retalls+de+prensa'),jdecode(''),'/71549/71570.html','true',[],'','']
	],'',''],
	['PAGE','5136',jdecode('Contactar+'),jdecode(''),'/5136/index.html','true',[ 
		['PAGE','5163',jdecode('Links+d%C2%B4inter%C3%A9s'),jdecode(''),'/5136/5163.html','true',[],'',''],
		['PAGE','5190',jdecode('+On+ens+pots+trobar%3F'),jdecode(''),'/5136/5190.html','true',[],'',''],
		['PAGE','63191',jdecode('Afiliaci%C3%B3+a+la+associaci%C3%B3'),jdecode(''),'/5136/63191/index.html','true',[ 
			['PAGE','65549',jdecode('Afiliaci%C3%B3+a+la+associaci%C3%B3+%28follow+up+page%29'),jdecode(''),'/5136/63191/65549.html','false',[],'','']
		],'','']
	],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				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-3459083']={
webappId:    '1501',
documentId:  '4593',
internalId:  '3459083',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4593',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-83dff376b849e172c43549cc8ca7aa11']={
webappId:    '7060',
documentId:  '5299',
internalId:  '83dff376b849e172c43549cc8ca7aa11',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-f55fe5169695b8944688f3d6997dbd68']={
webappId:    '7060',
documentId:  '7215',
internalId:  'f55fe5169695b8944688f3d6997dbd68',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-12d96a3dd60403901e0bc1d18f833150']={
webappId:    '7060',
documentId:  '32763',
internalId:  '12d96a3dd60403901e0bc1d18f833150',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4593',
internalId:  '',
customField: '20100620-124244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36651',
internalId:  '',
customField: '20100221-225239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64770',
internalId:  '',
customField: '20100417-230159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64749',
internalId:  '',
customField: '20100218-222542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5299',
internalId:  '',
customField: '20070831-183424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5028',
internalId:  '',
customField: '20100516-204610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5055',
internalId:  '',
customField: '20100218-225207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5082',
internalId:  '',
customField: '20100218-225050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5109',
internalId:  '',
customField: '20100218-224947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4650',
internalId:  '',
customField: '20100417-230035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4677',
internalId:  '',
customField: '20100802-195626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091001-193908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36051',
internalId:  '',
customField: '20100218-205701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7215',
internalId:  '',
customField: '20080210-202142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31151',
internalId:  '',
customField: '20090214-154519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32763',
internalId:  '',
customField: '20070429-114725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38851',
internalId:  '',
customField: '20080413-185929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45349',
internalId:  '',
customField: '20100417-230310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63149',
internalId:  '',
customField: '20071125-101750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63170',
internalId:  '',
customField: '20080321-143437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58449',
internalId:  '',
customField: '20080127-185136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38878',
internalId:  '',
customField: '20070831-183852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38905',
internalId:  '',
customField: '20070828-231349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45370',
internalId:  '',
customField: '20100218-223859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59749',
internalId:  '',
customField: '20090829-211521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20080228-220257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5163',
internalId:  '',
customField: '20080301-233004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5190',
internalId:  '',
customField: '20080127-190134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63191',
internalId:  '',
customField: '20071101-235204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65549',
internalId:  '',
customField: '20071101-234803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71549',
internalId:  '',
customField: '20071206-205913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71570',
internalId:  '',
customField: '20100807-113501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85749',
internalId:  '',
customField: '20100218-203918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91649',
internalId:  '',
customField: '20100417-234326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93849',
internalId:  '',
customField: '20100218-204014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103749',
internalId:  '',
customField: '20080413-130023'
};
webappMappings['7008']=webappMappings['7008-6653']={
webappId:    '7008',
documentId:  '63191',
internalId:  '6653',
customField: 'language:es;country:ES;'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEZOT';
var companyName   = '';
var htmlTitle	  = 'JIUJITSU.CAT';
var metaKeywords  = 'qwertyui';
var metaContents  = 'Informaci%EF%BF%BDn+i+divulgaci%EF%BF%BDn+del+arte+marcial+del+jiujitsu';
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();
};
