/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','5101',jdecode('Quem+somos'),jdecode(''),'/5101/index.html','true',[ 
		['PAGE','5122',jdecode('Nossa+equipe'),jdecode(''),'/5101/5122.html','true',[],'',''],
		['PAGE','5143',jdecode('Onde+estamos'),jdecode(''),'/5101/5143.html','true',[],'','']
	],'',''],
	['PAGE','5269',jdecode('Nossos+Servi%C3%A7os'),jdecode(''),'/5269.html','true',[],'',''],
	['PAGE','5164',jdecode('Cursos+e+Palestras'),jdecode(''),'/5164/index.html','true',[ 
		['PAGE','9601',jdecode('Forma%C3%A7%C3%A3o'),jdecode(''),'/5164/9601.html','true',[],'',''],
		['PAGE','9622',jdecode('Rela%C3%A7%C3%B5es+Grupais'),jdecode(''),'/5164/9622.html','true',[],'',''],
		['PAGE','9643',jdecode('Motiva%C3%A7%C3%A3o+Escolar'),jdecode(''),'/5164/9643.html','true',[],'',''],
		['PAGE','9706',jdecode('Educa%C3%A7%C3%A3o+Infantil'),jdecode(''),'/5164/9706.html','true',[],'',''],
		['PAGE','9664',jdecode('Educa%C3%A7%C3%A3o+Fundamental'),jdecode(''),'/5164/9664.html','true',[],'',''],
		['PAGE','9685',jdecode('Desenho+Infantil'),jdecode(''),'/5164/9685.html','true',[],'',''],
		['PAGE','12101',jdecode('Escola%2C+Valores+e+Limites'),jdecode(''),'/5164/12101.html','true',[],'',''],
		['PAGE','12122',jdecode('Fam%C3%ADlia+e+Escola'),jdecode(''),'/5164/12122.html','true',[],'',''],
		['PAGE','10101',jdecode('Cinema+e+Psic.+Escolar'),jdecode(''),'/5164/10101.html','true',[],'',''],
		['PAGE','10122',jdecode('Grupo+de+Estudos'),jdecode(''),'/5164/10122.html','true',[],'',''],
		['PAGE','23801',jdecode('Minha+vida+no+Ber%C3%A7%C3%A1rio'),jdecode(''),'/5164/23801.html','true',[],'',''],
		['PAGE','23822',jdecode('Avalia%C3%A7%C3%A3o+e+portf%C3%B3lio+'),jdecode(''),'/5164/23822.html','true',[],'',''],
		['PAGE','24201',jdecode('Atualiza%C3%A7%C3%A3o+'),jdecode(''),'/5164/24201.html','true',[],'','']
	],'',''],
	['PAGE','5185',jdecode('Agenda+dos+Cursos'),jdecode(''),'/5185.html','true',[],'',''],
	['PAGE','5206',jdecode('Leitura+Recomendada'),jdecode(''),'/5206.html','true',[],'',''],
	['PAGE','5227',jdecode('Filmes+Recomendados'),jdecode(''),'/5227.html','true',[],'',''],
	['PAGE','5248',jdecode('Nossas+Publica%C3%A7%C3%B5es'),jdecode(''),'/5248.html','true',[],'',''],
	['PAGE','5290',jdecode('Inscri%C3%A7%C3%B5es'),jdecode(''),'/5290.html','true',[],'',''],
	['PAGE','19201',jdecode('Cadastro'),jdecode(''),'/19201.html','true',[],'',''],
	['PAGE','10143',jdecode('Contato'),jdecode(''),'/10143.html','true',[],'',''],
	['PAGE','19222',jdecode('%C3%81lbum+de+Fotos'),jdecode(''),'/19222.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='1770';
theSitetree.keyvisualName='anwalt.jpg';
theSitetree.fontsetId='288';
theSitetree.graphicsetId='352';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='660000';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Art',
				paletteFamily: 	'660000',
				keyvisualId: 	'1770',
				keyvisualName: 	'anwalt.jpg',
				fontsetId: 		'288',
				graphicsetId: 	'352',
				contentColor: 	'DDDDDD',
				contentBGColor: '660000',
				a_color: 		'660000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090719-204835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20090511-083935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5122',
internalId:  '',
customField: '20090325-091153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5143',
internalId:  '',
customField: '20090325-093130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5269',
internalId:  '',
customField: '20081206-120622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5164',
internalId:  '',
customField: '20091210-153926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20081211-091940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9622',
internalId:  '',
customField: '20081215-091833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9643',
internalId:  '',
customField: '20081215-091812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9664',
internalId:  '',
customField: '20081211-093840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9706',
internalId:  '',
customField: '20081211-093226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9685',
internalId:  '',
customField: '20081215-100359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20081211-094747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20081212-175151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20081215-104604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10122',
internalId:  '',
customField: '20090601-123027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5185',
internalId:  '',
customField: '20091025-151454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5206',
internalId:  '',
customField: '20081206-113729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5227',
internalId:  '',
customField: '20081208-113931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5248',
internalId:  '',
customField: '20090406-163711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5290',
internalId:  '',
customField: '20090406-145440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10143',
internalId:  '',
customField: '20090427-130632'
};
webappMappings['7008']=webappMappings['7008-6178']={
webappId:    '7008',
documentId:  '19201',
internalId:  '6178',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-6179']={
webappId:    '7008',
documentId:  '10143',
internalId:  '6179',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-2d1ffa0e7b6086b062e5210d8e130cb8']={
webappId:    '7060',
documentId:  '19222',
internalId:  '2d1ffa0e7b6086b062e5210d8e130cb8',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20090406-152456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19222',
internalId:  '',
customField: '20090406-152240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20091025-151943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20091025-151942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20091210-153702'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INP6CO';
var companyName   = 'CAPE+-+Centro+de+Aperfei%C3%A7oamento+em+Psicologia+Escolar';
var htmlTitle	  = 'CAPE+-+Psicologia+Escolar';
var metaKeywords  = 'psicologia%3B+psicologia%2Bescolar%3B+CAPE%3B+centro%2Bde%2Baperfei%C3%A7oamento%2Bem%2Bpsicologia%2Bescolar%3B+educa%C3%A7%C3%A3o';
var metaContents  = '';
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();
};
