/* [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','4596',jdecode('Inicio'),jdecode(''),'/4596.html','true',[],'',''],
	['PAGE','16831',jdecode('Alex+Galofr%C3%A9'),jdecode(''),'/16831.html','true',[],'',''],
	['PAGE','54153',jdecode('Filosof%C3%ADa'),jdecode(''),'/54153/index.html','true',[ 
		['PAGE','54207',jdecode('Visi%C3%B3n'),jdecode(''),'/54153/54207.html','true',[],'',''],
		['PAGE','54234',jdecode('Misi%C3%B3n'),jdecode(''),'/54153/54234.html','true',[],'',''],
		['PAGE','54261',jdecode('Valores'),jdecode(''),'/54153/54261.html','true',[],'','']
	],'',''],
	['PAGE','52538',jdecode('Servicios'),jdecode(''),'/52538/index.html','true',[ 
		['PAGE','52565',jdecode('Formaci%C3%B3n'),jdecode(''),'/52538/52565.html','true',[],'',''],
		['PAGE','52592',jdecode('Coaching'),jdecode(''),'/52538/52592.html','true',[],'','']
	],'',''],
	['PAGE','56093',jdecode('Contacto'),jdecode(''),'/56093/index.html','true',[ 
		['PAGE','56185',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/56093/56185.html','false',[],'','']
	],'',''],
	['PAGE','56120',jdecode('Enlaces'),jdecode(''),'/56120.html','true',[],'',''],
	['PAGE','85719',jdecode('Clientes'),jdecode(''),'/85719.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
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: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4596',
internalId:  '',
customField: '20090901-023805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52538',
internalId:  '',
customField: '20071231-032536'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4596',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52565',
internalId:  '',
customField: '20100103-103314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16831',
internalId:  '',
customField: '20100103-102636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54153',
internalId:  '',
customField: '20090110-042507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54207',
internalId:  '',
customField: '20081104-112525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54234',
internalId:  '',
customField: '20081104-112544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54261',
internalId:  '',
customField: '20081104-112641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52592',
internalId:  '',
customField: '20100103-103237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56120',
internalId:  '',
customField: '20071231-032529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56093',
internalId:  '',
customField: '20061013-013723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56185',
internalId:  '',
customField: '20060719-220246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85719',
internalId:  '',
customField: '20090110-045641'
};
webappMappings['7008']=webappMappings['7008-10088']={
webappId:    '7008',
documentId:  '56093',
internalId:  '10088',
customField: 'language:es;country:ES;'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEWJD';
var companyName   = 'ALEX+GALOFR%C3%89';
var htmlTitle	  = 'ALEX+GALOFR%C3%89+Consultor%C3%ADa+-+Formaci%C3%B3n+-++Coaching+-+PNL+-+Comunicaci%C3%B3n+-+Liderazgo';
var metaKeywords  = 'Formaci%EF%BF%BDn+-+Desarrollo+-+Recursos+Humanos+-+Relaciones+-+Capital+Humano+-+T%EF%BF%BDcnicas+de+venta+-+Liderazgo+-+Comunicaci%EF%BF%BDn+-+Trabajo+en+equipo+-+Estr%EF%BF%BDs+-+Motivaci%EF%BF%BDn+-+Comercial+-+Hablar+en+p%EF%BF%BDblico';
var metaContents  = 'Desarrollo+y+relaciones+del+Capital+Humano+-+Formaci%EF%BF%BDn+empresarial+-+Recursos+Humanos+-+Coaching+-+PNL';
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();
};
