/* [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','64601',jdecode('Inicio'),jdecode(''),'/64601.html','true',[],'',''],
	['PAGE','4552',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/4552/index.html','true',[ 
		['PAGE','20301',jdecode('La+asociaci%C3%B3n'),jdecode(''),'/4552/20301.html','true',[],'',''],
		['PAGE','20322',jdecode('Breve+historia'),jdecode(''),'/4552/20322.html','true',[],'',''],
		['PAGE','20343',jdecode('Sedes+auton%C3%B3micas'),jdecode(''),'/4552/20343.html','true',[],'',''],
		['PAGE','20679',jdecode('Entidades+colaboradoras'),jdecode(''),'/4552/20679.html','true',[],'',''],
		['PAGE','20364',jdecode('Estatutos'),jdecode(''),'/4552/20364.html','true',[],'','']
	],'',''],
	['PAGE','4573',jdecode('%C3%81rea+m%C3%A9dica'),jdecode(''),'/4573/index.html','true',[ 
		['PAGE','4594',jdecode('El+s%C3%ADndrome+de+Marfan'),jdecode(''),'/4573/4594.html','true',[],'',''],
		['PAGE','20385',jdecode('Cardiovasculares'),jdecode(''),'/4573/20385.html','true',[],'',''],
		['PAGE','20406',jdecode('oculares'),jdecode(''),'/4573/20406.html','true',[],'',''],
		['PAGE','4615',jdecode('Musculoesquel%C3%A9ticas'),jdecode(''),'/4573/4615.html','true',[],'',''],
		['PAGE','4636',jdecode('Pulmonares'),jdecode(''),'/4573/4636.html','true',[],'',''],
		['PAGE','4657',jdecode('Las+estrias'),jdecode(''),'/4573/4657.html','true',[],'',''],
		['PAGE','20427',jdecode('Ectasia+Dural'),jdecode(''),'/4573/20427.html','true',[],'',''],
		['PAGE','20511',jdecode('Investigaci%C3%B3n'),jdecode(''),'/4573/20511.html','true',[],'',''],
		['PAGE','20448',jdecode('Avances+en+gen%C3%A9tica'),jdecode(''),'/4573/20448.html','true',[],'',''],
		['PAGE','20469',jdecode('Diagn%C3%B3stico+y+tratamiento'),jdecode(''),'/4573/20469.html','true',[],'',''],
		['PAGE','4678',jdecode('Unidad+Marfan+Com.+Madrid'),jdecode(''),'/4573/4678.html','true',[],'',''],
		['PAGE','20532',jdecode('Unidad+Marfan+de+Catalunya'),jdecode(''),'/4573/20532.html','true',[],'',''],
		['PAGE','20553',jdecode('Anticoagulantes+orales'),jdecode(''),'/4573/20553.html','true',[],'',''],
		['PAGE','20574',jdecode('Documentos+de+inter%C3%A9s'),jdecode(''),'/4573/20574.html','true',[],'',''],
		['PAGE','97112',jdecode('Atenolol+vs+Losartan'),jdecode(''),'/4573/97112.html','true',[],'','']
	],'',''],
	['PAGE','45506',jdecode('Participa'),jdecode(''),'/45506/index.html','true',[ 
		['PAGE','45548',jdecode('Tu+testimonio'),jdecode(''),'/45506/45548.html','true',[],'','']
	],'',''],
	['PAGE','74501',jdecode('Actividades'),jdecode(''),'/74501/index.html','true',[ 
		['PAGE','20721',jdecode('Encuentros+anuales'),jdecode(''),'/74501/20721.html','true',[],'',''],
		['PAGE','94512',jdecode('inscripci%C3%B3n+Congreso'),jdecode(''),'/74501/94512.html','true',[],'','']
	],'',''],
	['PAGE','20616',jdecode('Colabora+con+SIMA'),jdecode(''),'/20616/index.html','true',[ 
		['PAGE','20868',jdecode('%C3%9Anete+a+SIMA'),jdecode(''),'/20616/20868.html','true',[],'',''],
		['PAGE','20700',jdecode('Registro+EE.RR.'),jdecode(''),'/20616/20700.html','true',[],'',''],
		['PAGE','26801',jdecode('%C3%9Anete+a+sima+%28follow+up+page%29'),jdecode(''),'/20616/26801.html','false',[],'',''],
		['PAGE','20889',jdecode('Compra+con+tarjeta+BCJ+ONG'),jdecode(''),'/20616/20889.html','true',[],'','']
	],'',''],
	['PAGE','20910',jdecode('Prensa+y+noticias'),jdecode(''),'/20910.html','true',[],'',''],
	['PAGE','73501',jdecode('Multimedia'),jdecode(''),'/73501.html','true',[],'',''],
	['PAGE','77812',jdecode('Publicaciones'),jdecode(''),'/77812/index.html','true',[ 
		['PAGE','77833',jdecode('Memorias'),jdecode(''),'/77812/77833.html','true',[],'',''],
		['PAGE','77854',jdecode('Boletines+anuales'),jdecode(''),'/77812/77854.html','true',[],'','']
	],'',''],
	['PAGE','20847',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/20847.html','true',[],'',''],
	['PAGE','4699',jdecode('Contacta'),jdecode(''),'/4699/index.html','true',[ 
		['PAGE','22901',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/4699/22901.html','true',[],'','']
	],'',''],
	['PAGE','45527',jdecode('Foro+Marfan'),jdecode(''),'/45527.html','true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Money';
theSitetree.paletteFamily='481818';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='148';
theSitetree.graphicsetId='165';
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: 			'Money',
				paletteFamily: 	'481818',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'148',
				graphicsetId: 	'165',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'481818',
				b_color: 		'170808',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20100226-145056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4552',
internalId:  '',
customField: '20091108-195845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4573',
internalId:  '',
customField: '20091106-194421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20091106-192102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4615',
internalId:  '',
customField: '20091106-200943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4636',
internalId:  '',
customField: '20091106-201338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4657',
internalId:  '',
customField: '20091107-135932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4678',
internalId:  '',
customField: '20091109-203551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4699',
internalId:  '',
customField: '20091108-191227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20091125-094552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20322',
internalId:  '',
customField: '20091108-183512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20343',
internalId:  '',
customField: '20091108-184235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20364',
internalId:  '',
customField: '20091108-203052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20385',
internalId:  '',
customField: '20091107-140601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20406',
internalId:  '',
customField: '20091106-200558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20427',
internalId:  '',
customField: '20091106-202407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20448',
internalId:  '',
customField: '20091105-205116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20469',
internalId:  '',
customField: '20091106-192359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20511',
internalId:  '',
customField: '20091106-195224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20532',
internalId:  '',
customField: '20091119-114643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20553',
internalId:  '',
customField: '20091105-205116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20574',
internalId:  '',
customField: '20091105-205116'
};
webappMappings['7008']=webappMappings['7008-6464']={
webappId:    '7008',
documentId:  '20868',
internalId:  '6464',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20616',
internalId:  '',
customField: '20091108-182912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77833',
internalId:  '',
customField: '20091215-125647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20679',
internalId:  '',
customField: '20091108-195116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20700',
internalId:  '',
customField: '20091105-223044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20721',
internalId:  '',
customField: '20100128-213345'
};
webappMappings['7008']=webappMappings['7008-6507']={
webappId:    '7008',
documentId:  '94512',
internalId:  '6507',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94512',
internalId:  '',
customField: '20100212-142239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77854',
internalId:  '',
customField: '20091215-125647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77812',
internalId:  '',
customField: '20091215-142006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20847',
internalId:  '',
customField: '20091109-075856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20868',
internalId:  '',
customField: '20091108-185643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20889',
internalId:  '',
customField: '20091108-190906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20910',
internalId:  '',
customField: '20091119-115300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74501',
internalId:  '',
customField: '20100128-215753'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '22901',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97112',
internalId:  '',
customField: '20100209-144154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20091107-113020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73501',
internalId:  '',
customField: '20100214-120830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20091106-212228'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '64601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']=webappMappings['1003-aars20inl1ei124c5f103b6']={
webappId:    '1003',
documentId:  '45506',
internalId:  'aars20inl1ei124c5f103b6',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45506',
internalId:  '',
customField: '20100202-121355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45527',
internalId:  '',
customField: '20091109-213731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45548',
internalId:  '',
customField: '20091121-145730'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INL1EI';
var companyName   = 'Asociaci%C3%B3n+S%C3%ADndrome+de+Marfan+-+SIMA';
var htmlTitle	  = '';
var metaKeywords  = 'v%C3%A1lvulas+cad%C3%ADacas+s%C3%ADndrome+enferermedades+raras%2C+estatura+alta%2C+estr%C3%ADas%2C+s%C3%ADndrome+de+marfan%2C+fibrilina+1%2C+marfan%2C+marfan%2C+marfan%2C+a%C3%B3rta+aorta+aorta+diseeci%C3%B3n+aorta%2C+Congreso+Internacional+Marfan%2C+Marfan+Espa%C3%B1a%2C+Congreso+Alicante%2C+S%C3%ADndrome+de+Marfan%2C+Sindrome+de+Marf%C3%A1n%2C+fibrilina%2C+sindrome+genetico%2C+cromosoma+15';
var metaContents  = 'marfan%2C+marfan%2C+marfan%2C+a%C3%B3rta+aorta+aorta+diseeci%C3%B3n+aorta%2C+Congreso+Internacional+Marfan%2C+Marfan+Espa%C3%B1a%2C+Congreso+Alicante%2C+S%C3%ADndrome+de+Marfan%2C+Sindrome+de+Marf%C3%A1n%2C+fibrilina%2C+sindrome+genetico';
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();
};
