/* [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','54901',jdecode('INICIO'),jdecode(''),'/54901.html','true',[],'',''],
	['PAGE','536',jdecode('PSICOTERAPIA'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','452',jdecode('PNL'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','190448',jdecode('Mujeres'),jdecode(''),'/190448.html','true',[],'',''],
	['PAGE','189148',jdecode('Terapia+SCIO'),jdecode(''),'/189148.html','true',[],'',''],
	['PAGE','190469',jdecode('Eneagrama'),jdecode(''),'/190469.html','true',[],'',''],
	['PAGE','190490',jdecode('El+Drag%C3%B3n+Milenario'),jdecode(''),'/190490.html','true',[],'',''],
	['PAGE','54952',jdecode('Flores+de+Bach'),jdecode(''),'/54952.html','true',[],'',''],
	['PAGE','190511',jdecode('Talleres+Evoca'),jdecode(''),'/190511.html','true',[],'',''],
	['PAGE','78801',jdecode('Constelaciones'),jdecode(''),'/78801/index.html','true',[ 
		['PAGE','78822',jdecode('taller+de+constelaciones'),jdecode(''),'/78801/78822.html','true',[],'',''],
		['PAGE','78843',jdecode('Revison+de+ejercicio+de+vida'),jdecode(''),'/78801/78843.html','true',[],'',''],
		['PAGE','78864',jdecode('el+mundo+en+tu+interior'),jdecode(''),'/78801/78864.html','true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Otros+Talleres'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','401',jdecode('+Autl%C3%A1n'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','156101',jdecode('Eventos'),jdecode(''),'/156101.html','true',[],'',''],
	['PAGE','557',jdecode('Qui%C3%A9nes+SomoS%2F'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','620',jdecode('Inscripciones%2FContacto'),jdecode(''),'/620.html','true',[],'',''],
	['PAGE','43706',jdecode('Libro+de+visitas'),jdecode(''),'/43706.html','true',[],'',''],
	['PAGE','578',jdecode('Afiliados'),jdecode(''),'/578.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Valiant';
theSitetree.paletteFamily='D43F3F';
theSitetree.keyvisualId='9839';
theSitetree.keyvisualName='kv_9839.jpg';
theSitetree.fontsetId='17626';
theSitetree.graphicsetId='13031';
theSitetree.contentColor='646464';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Valiant',
				paletteFamily: 	'D43F3F',
				keyvisualId: 	'9839',
				keyvisualName: 	'kv_9839.jpg',
				fontsetId: 		'17626',
				graphicsetId: 	'13031',
				contentColor: 	'646464',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54952',
internalId:  '',
customField: '20100526-182439'
};
webappMappings['7008']=webappMappings['7008-2942']={
webappId:    '7008',
documentId:  '620',
internalId:  '2942',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-7542115']={
webappId:    '1501',
documentId:  '54901',
internalId:  '7542115',
customField: '1501'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '54901',
internalId:  '1501',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-43706avec10in334o']={
webappId:    '1002',
documentId:  '43706',
internalId:  '43706avec10in334o',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20100902-005325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190448',
internalId:  '',
customField: '20100610-213539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090616-092030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190469',
internalId:  '',
customField: '20100526-190025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100711-102041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100526-190358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189148',
internalId:  '',
customField: '20100513-134633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78801',
internalId:  '',
customField: '20100526-190420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78822',
internalId:  '',
customField: '20090220-110105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78843',
internalId:  '',
customField: '20090220-110354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78864',
internalId:  '',
customField: '20090220-110606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090616-093603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090616-092950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100523-215635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090311-213910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43706',
internalId:  '',
customField: '20071123-141913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156101',
internalId:  '',
customField: '20100902-010132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190490',
internalId:  '',
customField: '20100526-190243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190511',
internalId:  '',
customField: '20100711-102125'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN334O';
var companyName   = 'CENTRO+DE+DESARROLLO+HUMANO';
var htmlTitle	  = 'EVOCA+PNL+evoluci%C3%B3n-conocimiento-acci%C3%B3n';
var metaKeywords  = 'PNL%2C+Programaci%C3%B3n+Neuroling%C3%BCistica%2C+Cursos%2C+Talleres%2C+Desarrollo+Humano%2C+Capacitaci%C3%B3n%2C+adolescentes%2C+Evoca%2C+desarrollo+de+conciencia%2C+maduraci%C3%B3n+del+individuo%2C+angeles%2C+meditaci%C3%B3n%2C+prosperidad+y+abundancia%2C+Diplomado%2C+mujeres%2C+integro%2C+creser%2C+psicoterapia%2C+constelaciones+familiares%2C+mujeres%2C+eneagrama%2C+flores+de+bach';
var metaContents  = 'Diplomado+en+programaci%C3%B3n+Neuroling%C3%BCistica+%28PNL%29%2C+Cursos+y+talleres+enfocados+al+desarrollo+humano+y+crecimiento+personal.+Cursos+de+capacitaci%C3%B3n+para+empresas+en+diversas+%C3%A1reas+como+comunicaci%C3%B3n%2C+PNL%2C+Trabajo+en+equipo+entre+otros.+';
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();
};
