/* [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','4395',jdecode('PRESENTACI%C3%93N'),jdecode(''),'/4395/index.html','true',[ 
		['PAGE','10182',jdecode('directiva'),jdecode(''),'/4395/10182.html','true',[],'',''],
		['PAGE','10209',jdecode('hazte+socio'),jdecode(''),'/4395/10209.html','true',[],'','']
	],'',''],
	['PAGE','4452',jdecode('JAM+SESSION'),jdecode(''),'/4452.html','true',[],'',''],
	['PAGE','18929',jdecode('la+muralla'),jdecode(''),'/18929/index.html','true',[ 
		['PAGE','23629',jdecode('jazzazza'),jdecode(''),'/18929/23629.html','true',[],'',''],
		['PAGE','10236',jdecode('temas'),jdecode(''),'/18929/10236.html','true',[],'','']
	],'',''],
	['PAGE','4479',jdecode('JAZZ+EN+MURCIA'),jdecode(''),'/4479/index.html','true',[ 
		['PAGE','17703',jdecode('calendario'),jdecode(''),'/4479/17703.html','true',[],'',''],
		['PAGE','10290',jdecode('locales'),jdecode(''),'/4479/10290.html','true',[],'',''],
		['PAGE','10317',jdecode('escuelas'),jdecode(''),'/4479/10317.html','true',[],'','']
	],'',''],
	['PAGE','20229',jdecode('++jazz+y+cine'),jdecode(''),'/20229.html','true',[],'',''],
	['PAGE','19629',jdecode('++festival+de+jazz'),jdecode(''),'/19629.html','true',[],'',''],
	['PAGE','11370',jdecode('ENCUESTA'),jdecode(''),'/11370.html','true',[],'',''],
	['PAGE','75493',jdecode('BLOG+ZARANGOJAZZ'),jdecode(''),'/75493.html','true',[],'',''],
	['PAGE','13803',jdecode('FOTOS'),jdecode(''),'/13803.html','true',[],'',''],
	['PAGE','57593',jdecode('VIDEOS'),jdecode(''),'/57593.html','true',[],'',''],
	['PAGE','17003',jdecode('PRENSA'),jdecode(''),'/17003.html','true',[],'',''],
	['PAGE','17030',jdecode('el+kraken-gaceta+cultural'),jdecode(''),'/17030.html','true',[],'',''],
	['PAGE','11124',jdecode('FORO'),jdecode(''),'/11124.html','true',[],'',''],
	['PAGE','10661',jdecode('RECOMENDACIONES'),jdecode(''),'/10661.html','true',[],'',''],
	['PAGE','12643',jdecode('ENLACES'),jdecode(''),'/12643.html','true',[],'',''],
	['PAGE','41793',jdecode('MERCHANDISING'),jdecode(''),'/41793.html','true',[],'',''],
	['PAGE','9703',jdecode('CONTACTO'),jdecode(''),'/9703.html','true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Mondrian';
theSitetree.paletteFamily='419328';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10711';
theSitetree.graphicsetId='10888';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='9C9C9D';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mondrian',
				paletteFamily: 	'419328',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10711',
				graphicsetId: 	'10888',
				contentColor: 	'FFFFFF',
				contentBGColor: '9C9C9D',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D3D3D3',
				e_color: 		'D3D3D3',
				f_color: 		'D3D3D3',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4395',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-67880']={
webappId:    '1501',
documentId:  '4395',
internalId:  '67880',
customField: '1501'
};
webappMappings['1003']=webappMappings['1003-aas010inxezm1160034b92d']={
webappId:    '1003',
documentId:  '11124',
internalId:  'aas010inxezm1160034b92d',
customField: 'es:ES:'
};
webappMappings['7050']=webappMappings['7050-5846']={
webappId:    '7050',
documentId:  '75493',
internalId:  '5846',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4395',
internalId:  '',
customField: '20080305-030314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10182',
internalId:  '',
customField: '20080305-201440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10209',
internalId:  '',
customField: '20080305-131625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4452',
internalId:  '',
customField: '20070608-222637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18929',
internalId:  '',
customField: '20080305-201824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23629',
internalId:  '',
customField: '20080305-202842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10236',
internalId:  '',
customField: '20070608-205207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4479',
internalId:  '',
customField: '20090519-113958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17703',
internalId:  '',
customField: '20070210-003738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10290',
internalId:  '',
customField: '20070522-004229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10317',
internalId:  '',
customField: '20061207-225759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20229',
internalId:  '',
customField: '20080410-132703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19629',
internalId:  '',
customField: '20090422-232443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17003',
internalId:  '',
customField: '20080502-150517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17030',
internalId:  '',
customField: '20080305-131926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13803',
internalId:  '',
customField: '20080527-010640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10661',
internalId:  '',
customField: '20080502-151115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11370',
internalId:  '',
customField: '20080307-001420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11124',
internalId:  '',
customField: '20080305-133120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12643',
internalId:  '',
customField: '20080513-134344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41793',
internalId:  '',
customField: '20080502-151756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9703',
internalId:  '',
customField: '20080304-014844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57593',
internalId:  '',
customField: '20080526-210009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75493',
internalId:  '',
customField: '20100205-045931'
};
var canonHostname = 'llwd718.servidoresdns.net';
var accountId     = 'Aas010INXEZM';
var companyName   = '++++++++Zarangojazz%3A+Asociaci%C3%B3n+de+Jazz+de+la+Regi%C3%B3n+de+Murcia';
var htmlTitle	  = 'zarangojazz';
var metaKeywords  = 'musica+jazz+espa%C3%B1a+asociacion+improvisada+improvisacion';
var metaContents  = 'musica+jazz+espa%C3%B1a+asociacion+improvisada+improvisacion';
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();
};
