/* [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','401',jdecode('Inicio'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','16001',jdecode('%C2%BFQu%C3%A9+es+GPS%3F'),jdecode(''),'/16001.html','true',[],'',''],
	['PAGE','473',jdecode('Un+gran+Equipo'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','6101',jdecode('Objetivos'),jdecode(''),'/6101.html','true',[],'',''],
	['PAGE','6122',jdecode('Metodolog%C3%ADa'),jdecode(''),'/6122.html','true',[],'',''],
	['PAGE','6143',jdecode('Gabinete'),jdecode(''),'/6143.html','true',[],'',''],
	['PAGE','494',jdecode('Formaci%C3%B3n'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','21101',jdecode('Psicomotricidad+en+Educaci%C3%B3n'),jdecode(''),'/494/21101.html','true',[],'',''],
		['PAGE','6227',jdecode('Psicomotricidad+en+Reeducaci%C3%B3n'),jdecode(''),'/494/6227.html','true',[],'',''],
		['PAGE','6269',jdecode('Trastornos+de+la+Conducta+Alimentaria'),jdecode(''),'/494/6269.html','true',[],'',''],
		['PAGE','6164',jdecode('Agresividad%2C+Violencia+y+Maltrato+Familiar'),jdecode(''),'/494/6164.html','true',[],'',''],
		['PAGE','6206',jdecode('La+pr%C3%A1ctica+psicomotriz+como+medio+de+intervencion+en+los+TDAH'),jdecode(''),'/494/6206.html','true',[],'',''],
		['PAGE','6185',jdecode('Introducci%C3%B3n+a+la+Psicomotricidad'),jdecode(''),'/494/6185.html','true',[],'',''],
		['PAGE','6290',jdecode('Creatividad+y+Educaci%C3%B3n'),jdecode(''),'/494/6290.html','true',[],'',''],
		['PAGE','6248',jdecode('Educar+desde+y+por+el+humor'),jdecode(''),'/494/6248.html','true',[],'',''],
		['PAGE','21401',jdecode('Alternativas+para+enfrentar+una+situaci%C3%B3n+dif%C3%ADcil+y+manejar+el+stress'),jdecode(''),'/494/21401.html','true',[],'',''],
		['PAGE','25101',jdecode('Introducci%C3%B3n+a+los+Trastornos+de+la+Conducta+Alimentaria'),jdecode(''),'/494/25101.html','true',[],'','']
	],'',''],
	['PAGE','19001',jdecode('Fotos+del+Centro'),jdecode(''),'/19001.html','true',[],'',''],
	['PAGE','662',jdecode('Cont%C3%A1ctenos+o+Vis%C3%ADtanos'),jdecode(''),'/662.html','true',[],'',''],
	['PAGE','5406',jdecode('Libro+de+visitas'),jdecode(''),'/5406/index.html','true',[ 
		['PAGE','5401',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/5406/5401.html','false',[],'','']
	],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000BB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10473';
theSitetree.graphicsetId='10949';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9FD796';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Meadow',
				paletteFamily: 	'0000BB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10473',
				graphicsetId: 	'10949',
				contentColor: 	'000000',
				contentBGColor: '9FD796',
				a_color: 		'6EC262',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-5406aars20in31bt']={
webappId:    '1002',
documentId:  '5406',
internalId:  '5406aars20in31bt',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080410-192937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20080112-184144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20070705-104458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20080112-174023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20070628-125846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6143',
internalId:  '',
customField: '20080109-192348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100908-191052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100908-190746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6227',
internalId:  '',
customField: '20100908-190845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6269',
internalId:  '',
customField: '20100908-185020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6164',
internalId:  '',
customField: '20100908-185125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6206',
internalId:  '',
customField: '20100908-185214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6185',
internalId:  '',
customField: '20100908-185336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6290',
internalId:  '',
customField: '20100908-185430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6248',
internalId:  '',
customField: '20100908-184826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100908-185515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20090720-173024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20080411-125702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20070705-093812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20070705-093754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20070625-110111'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20IN31BT';
var companyName   = 'GPS+';
var htmlTitle	  = '';
var metaKeywords  = 'Gabinete+de+psicologia%2C+pricomotricidad+logopedia+y+formaci%C3%B3n++Psic%C3%B3logos%2C+maestros%2C+logopedas%2C+formadores+en+bioenerg%C3%A9tica%2C+terapeutas+en+gestalt+y+psicomotricistas.++Dirigida+a%3A+Maestros%2C+Pedagogos%2C+D.U.E.S%2C+psic%C3%B3logos%2C+fisioterapeutas%2C+educadores+sociales+e+infantiles%E2%80%A6++++CURSOS++-+%E2%80%9CPSICOMOTRICIDAD+EN+EDUCACI%C3%93N%E2%80%9D++de+160+horas.+Comienza+octubre+2007%2C+finaliza+septiembre+2008++++-+%E2%80%9CPSICOMOTRICIDAD+EN+REEDUCACI%C3%93N%E2%80%9D*++De+160+horas.+Comienza+octubre+2007%2C+finaliza+septiembre+de+2008++*NOTA%3A+no+se+puede+acceder+a+reeducaci%C3%B3n+sin+haber+cursado+educaci%C3%B3n++++-+%E2%80%9CTRASTORNOS+DE+LA+CONDUCTA+ALIMENTARIA%E2%80%9D+De+50+horas.+Comienza+octubre+2007%2C+finaliza+diciembre+2007++++-+%E2%80%9CCURSO+DE+BIOENERG%C3%89TICA%E2%80%9D+++++++++TALLERES++-+%E2%80%9CIntroducci%C3%B3n+a+la++psicomotricidad%E2%80%9D+de+10+horas.+++28+y+29+de+Septiembre+del+2007++++-+%E2%80%9CIntroducci%C3%B3n+a+los+trastornos+de+la+conducta+alimentaria%E2%80%9D+de+12+horas.+26%2C+27+y+28+de+junio+del+2007++++-+%E2%80%9CCreatividad+y+educaci%C3%B3n%E2%80%9D+12+horas.+26+y+27+de+Octubre+2007++++-+%E2%80%9CEducar+desde+y+para+el+humor%E2%80%9D+12+horas.+5+y+6+de+Octubre+2007++++-+%E2%80%9CAlternativas+para+enfrentar+una+situaci%C3%B3n+dif%C3%ADcil+y+manejar+el+stress%E2%80%9D+10+horas.+14+de+septiembre+del+2007++++-+%E2%80%9CIntroducci%C3%B3n+a+la+Bioenerg%C3%A9tica%E2%80%9D+6+horas.+4%2C11%2C18+de+Julio++++Madrid';
var metaContents  = 'Gabinete+de+psicologia%2C+pricomotricidad+logopedia+y+formaci%C3%B3n++Psic%C3%B3logos%2C+maestros%2C+logopedas%2C+formadores+en+bioenerg%C3%A9tica%2C+terapeutas+en+gestalt+y+psicomotricistas.++Dirigida+a%3A+Maestros%2C+Pedagogos%2C+D.U.E.S%2C+psic%C3%B3logos%2C+fisioterapeutas%2C+educadores+sociales+e+infantiles%E2%80%A6++++CURSOS++-+%E2%80%9CPSICOMOTRICIDAD+EN+EDUCACI%C3%93N%E2%80%9D++de+160+horas.+Comienza+octubre+2007%2C+finaliza+septiembre+2008++++-+%E2%80%9CPSICOMOTRICIDAD+EN+REEDUCACI%C3%93N%E2%80%9D*++De+160+horas.+Comienza+octubre+2007%2C+finaliza+septiembre+de+2008++*NOTA%3A+no+se+puede+acceder+a+reeducaci%C3%B3n+sin+haber+cursado+educaci%C3%B3n++++-+%E2%80%9CTRASTORNOS+DE+LA+CONDUCTA+ALIMENTARIA%E2%80%9D+De+50+horas.+Comienza+octubre+2007%2C+finaliza+diciembre+2007++++-+%E2%80%9CCURSO+DE+BIOENERG%C3%89TICA%E2%80%9D+++++++++TALLERES++-+%E2%80%9CIntroducci%C3%B3n+a+la++psicomotricidad%E2%80%9D+de+10+horas.+++28+y+29+de+Septiembre+del+2007++++-+%E2%80%9CIntroducci%C3%B3n+a+los+trastornos+de+la+conducta+alimentaria%E2%80%9D+de+12+horas.+26%2C+27+y+28+de+junio+del+2007++++-+%E2%80%9CCreatividad+y+educaci%C3%B3n%E2%80%9D+12+horas.+26+y+27+de+Octubre+2007++++-+%E2%80%9CEducar+desde+y+para+el+humor%E2%80%9D+12+horas.+5+y+6+de+Octubre+2007++++-+%E2%80%9CAlternativas+para+enfrentar+una+situaci%C3%B3n+dif%C3%ADcil+y+manejar+el+stress%E2%80%9D+10+horas.+14+de+septiembre+del+2007++++-+%E2%80%9CIntroducci%C3%B3n+a+la+Bioenerg%C3%A9tica%E2%80%9D+6+horas.+4%2C11%2C18+de+Julio++++Madrid';
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();
};

