/* [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','4495',jdecode('Inicio'),jdecode(''),'/4495.html','true',[],'',''],
	['PAGE','118022',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/118022.html','true',[],'',''],
	['PAGE','4552',jdecode('El+lado+humano'),jdecode(''),'/4552/index.html','true',[ 
		['PAGE','6438',jdecode('Archivo'),jdecode(''),'/4552/6438.html','true',[],'',''],
		['PAGE','16801',jdecode('Intervenci%C3%B3n+Psicol%C3%B3gica'),jdecode(''),'/4552/16801/index.html','true',[ 
			['PAGE','16957',jdecode('Orientaci%C3%B3n+e+Intervenci%C3%B3n+%28follow+up+page%29'),jdecode(''),'/4552/16801/16957.html','false',[],'','']
		],'','']
	],'',''],
	['PAGE','4579',jdecode('Desde+la+Fe'),jdecode(''),'/4579/index.html','true',[ 
		['PAGE','9007',jdecode('Archivo'),jdecode(''),'/4579/9007.html','true',[],'','']
	],'',''],
	['PAGE','24516',jdecode('Desde+la+Raz%C3%B3n'),jdecode(''),'/24516/index.html','true',[ 
		['PAGE','24543',jdecode('Archivo'),jdecode(''),'/24516/24543.html','true',[],'','']
	],'',''],
	['PAGE','5632',jdecode('Mens+sana'),jdecode(''),'/5632/index.html','true',[ 
		['PAGE','17701',jdecode('Archivo'),jdecode(''),'/5632/17701.html','true',[],'','']
	],'',''],
	['PAGE','8206',jdecode('In+corpore+sano'),jdecode(''),'/8206/index.html','true',[ 
		['PAGE','17728',jdecode('Archivo'),jdecode(''),'/8206/17728.html','true',[],'',''],
		['PAGE','22748',jdecode('Salud'),jdecode(''),'/8206/22748.html','true',[],'',''],
		['PAGE','35324',jdecode('Archivo+%28Salud%29'),jdecode(''),'/8206/35324.html','true',[],'','']
	],'',''],
	['PAGE','34424',jdecode('Mentir+est%C3%A1+feo'),jdecode(''),'/34424/index.html','true',[ 
		['PAGE','34770',jdecode('Archivo'),jdecode(''),'/34424/34770.html','true',[],'','']
	],'',''],
	['PAGE','15511',jdecode('Arte'),jdecode(''),'/15511/index.html','true',[ 
		['PAGE','35776',jdecode('Archivo'),jdecode(''),'/15511/35776.html','true',[],'',''],
		['PAGE','15538',jdecode('Letras'),jdecode(''),'/15511/15538.html','true',[],'','']
	],'',''],
	['PAGE','9034',jdecode('Ante+quien+...'),jdecode(''),'/9034/index.html','true',[ 
		['PAGE','20416',jdecode('Archivo'),jdecode(''),'/9034/20416.html','true',[],'','']
	],'',''],
	['PAGE','4606',jdecode('Foro+y+...'),jdecode(''),'/4606.html','true',[],'',''],
	['PAGE','17401',jdecode('Encuestas'),jdecode(''),'/17401.html','true',[],'',''],
	['PAGE','32216',jdecode('Presentaciones'),jdecode(''),'/32216/index.html','true',[ 
		['PAGE','32447',jdecode('Naturaleza'),jdecode(''),'/32216/32447.html','true',[],'',''],
		['PAGE','32845',jdecode('Religi%C3%B3n'),jdecode(''),'/32216/32845.html','true',[],'',''],
		['PAGE','32474',jdecode('Amistad%2FAmor'),jdecode(''),'/32216/32474.html','true',[],'',''],
		['PAGE','32501',jdecode('Humor%2FIngenio'),jdecode(''),'/32216/32501.html','true',[],'',''],
		['PAGE','32528',jdecode('La+vida'),jdecode(''),'/32216/32528.html','true',[],'',''],
		['PAGE','32555',jdecode('Cultura%2FArte'),jdecode(''),'/32216/32555.html','true',[],'',''],
		['PAGE','32582',jdecode('Solidaridad'),jdecode(''),'/32216/32582.html','true',[],'','']
	],'',''],
	['PAGE','59622',jdecode('Calcuta+07'),jdecode(''),'/59622/index.html','true',[ 
		['PAGE','59643',jdecode('Mother+House'),jdecode(''),'/59622/59643.html','true',[],'',''],
		['PAGE','59664',jdecode('Seva+Kendra'),jdecode(''),'/59622/59664.html','true',[],'',''],
		['PAGE','59685',jdecode('Convento+de+Loreto'),jdecode(''),'/59622/59685.html','true',[],'',''],
		['PAGE','59706',jdecode('Kalighat'),jdecode(''),'/59622/59706.html','true',[],'',''],
		['PAGE','59727',jdecode('Prem+Dan'),jdecode(''),'/59622/59727.html','true',[],'',''],
		['PAGE','59748',jdecode('Shanti+Nagar'),jdecode(''),'/59622/59748.html','true',[],'',''],
		['PAGE','59769',jdecode('Shisu+Bavan'),jdecode(''),'/59622/59769.html','true',[],'',''],
		['PAGE','59790',jdecode('Shanti+Dan'),jdecode(''),'/59622/59790.html','true',[],'',''],
		['PAGE','59811',jdecode('Seminario+Calcuta'),jdecode(''),'/59622/59811.html','true',[],'','']
	],'',''],
	['PAGE','15727',jdecode('Libro+de+visitas'),jdecode(''),'/15727/index.html','true',[ 
		['PAGE','15728',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/15727/15728.html','false',[],'','']
	],'',''],
	['PAGE','122322',jdecode('Blog'),jdecode(''),'/122322.html','true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='C1BCB6';
theSitetree.keyvisualId='2558';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='10346';
theSitetree.graphicsetId='10456';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='c1bcb6';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Simple',
				paletteFamily: 	'C1BCB6',
				keyvisualId: 	'2558',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'10346',
				graphicsetId: 	'10456',
				contentColor: 	'000000',
				contentBGColor: 'c1bcb6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'FFFFFF',
				f_color: 		'817E7E',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4495',
internalId:  '',
customField: '20100806-165231'
};
webappMappings['7005']=webappMappings['7005-29']={
webappId:    '7005',
documentId:  '17401',
internalId:  '29',
customField: 'language:es;country:ES;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4495',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118022',
internalId:  '',
customField: '20100806-160539'
};
webappMappings['1002']=webappMappings['1002-15727aas010ine088']={
webappId:    '1002',
documentId:  '15727',
internalId:  '15727aas010ine088',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15728',
internalId:  '',
customField: '20051215-180319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8206',
internalId:  '',
customField: '20080425-001124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17728',
internalId:  '',
customField: '20080425-000031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4552',
internalId:  '',
customField: '20090823-163501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6438',
internalId:  '',
customField: '20090823-162008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20061113-110155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16957',
internalId:  '',
customField: '20051222-230741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20090903-194157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9007',
internalId:  '',
customField: '20090903-193506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24516',
internalId:  '',
customField: '20090830-004646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24543',
internalId:  '',
customField: '20090830-003620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5632',
internalId:  '',
customField: '20090904-153258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20090904-145126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22748',
internalId:  '',
customField: '20070329-235442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35324',
internalId:  '',
customField: '20070330-000126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34424',
internalId:  '',
customField: '20080328-082340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34770',
internalId:  '',
customField: '20080327-104603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15511',
internalId:  '',
customField: '20090325-224700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35776',
internalId:  '',
customField: '20090325-223056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15538',
internalId:  '',
customField: '20061116-224231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9034',
internalId:  '',
customField: '20090122-224355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20416',
internalId:  '',
customField: '20090122-224007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4606',
internalId:  '',
customField: '20090823-172529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20070629-004319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32216',
internalId:  '',
customField: '20061031-114454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32447',
internalId:  '',
customField: '20070314-120003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32845',
internalId:  '',
customField: '20070314-113235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32474',
internalId:  '',
customField: '20070314-121415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20070314-115821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32528',
internalId:  '',
customField: '20070314-120642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32555',
internalId:  '',
customField: '20070314-120223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32582',
internalId:  '',
customField: '20070330-003200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59622',
internalId:  '',
customField: '20080327-001031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59643',
internalId:  '',
customField: '20080411-011319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59664',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59685',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59706',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59727',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59748',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59769',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59790',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59811',
internalId:  '',
customField: '20070912-221633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15727',
internalId:  '',
customField: '20051215-180319'
};
webappMappings['7008']=webappMappings['7008-6521']={
webappId:    '7008',
documentId:  '16801',
internalId:  '6521',
customField: 'language:es;country:ES;'
};
webappMappings['1003']=webappMappings['1003-aas010ine08812347cf507a']={
webappId:    '1003',
documentId:  '4606',
internalId:  'aas010ine08812347cf507a',
customField: 'es:ES:'
};
webappMappings['7050']=webappMappings['7050-5740']={
webappId:    '7050',
documentId:  '122322',
internalId:  '5740',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122322',
internalId:  '',
customField: '20100129-102507'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INE088';
var companyName   = 'Buscad+la+Belleza';
var htmlTitle	  = 'Buscad+la+Belleza';
var metaKeywords  = 'psicolog%EF%BF%BDa+belleza+b%EF%BF%BDsqueda+fe+religi%EF%BF%BDn+deporte+cultura+mente+cuerpo+mens+sana+solidaridad+pobreza';
var metaContents  = 'psicolog%EF%BF%BDa+belleza+b%EF%BF%BDsqueda+fe+religi%EF%BF%BDn+deporte+cultura+mente+cuerpo+mens+sana+solidaridad+pobreza+humano';
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();
};
