/* [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','14601',jdecode('Prop%C3%B3sito'),jdecode(''), jdecode('%2F14601%2Findex.html'), 'true',[ 
		['PAGE','15101',jdecode('COORDENA%C3%87%C3%83O'),jdecode(''), jdecode('%2F14601%2F15101.html'), 'true',[],'',''],
		['PAGE','16001',jdecode('EMPRESAS+ATENDIDAS'),jdecode(''), jdecode('%2F14601%2F16001.html'), 'true',[],'',''],
		['PAGE','123355',jdecode('ARTIGOS+E+ENTREVISTAS'),jdecode(''), jdecode('%2F14601%2F123355.html'), 'true',[],'',''],
		['PAGE','82733',jdecode('INFO+E+DICAS+SUSTENT%C3%81VEIS'),jdecode(''), jdecode('%2F14601%2F82733.html'), 'true',[],'','']
	],'',''],
	['PAGE','15501',jdecode('Consultoria+e+Educa%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F15501%2Findex.html'), 'true',[ 
		['PAGE','15601',jdecode('PLANEJAMENTO'),jdecode(''), jdecode('%2F15501%2F15601.html'), 'true',[],'',''],
		['PAGE','16022',jdecode('SUSTENTABILIDADE'),jdecode(''), jdecode('%2F15501%2F16022.html'), 'true',[],'',''],
		['PAGE','15701',jdecode('RECURSOS+HUMANOS'),jdecode(''), jdecode('%2F15501%2F15701.html'), 'true',[],'',''],
		['PAGE','29322',jdecode('CURSOS+PROGRAMADOS'),jdecode(''), jdecode('%2F15501%2F29322.html'), 'true',[],'','']
	],'',''],
	['PAGE','14901',jdecode('Casa+Sustent%C3%A1vel'),jdecode(''), jdecode('%2F14901%2Findex.html'), 'true',[ 
		['PAGE','14922',jdecode('EDUCA%C3%87%C3%83O'),jdecode(''), jdecode('%2F14901%2F14922.html'), 'true',[],'',''],
		['PAGE','14943',jdecode('MOBILIZA%C3%87%C3%83O'),jdecode(''), jdecode('%2F14901%2F14943.html'), 'true',[],'',''],
		['PAGE','14964',jdecode('VIV%C3%8ANCIA'),jdecode(''), jdecode('%2F14901%2F14964.html'), 'true',[],'',''],
		['PAGE','29301',jdecode('LOCALIZA%C3%87%C3%83O'),jdecode(''), jdecode('%2F14901%2F29301.html'), 'true',[],'','']
	],'',''],
	['PAGE','15864',jdecode('Contato'),jdecode(''), jdecode('%2F15864.html'), 'true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Evolution';
theSitetree.paletteFamily='639087';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10819';
theSitetree.graphicsetId='11268';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Evolution',
				paletteFamily: 	'639087',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10819',
				graphicsetId: 	'11268',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20120109-081010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20111105-141759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20111206-081526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123355',
internalId:  '',
customField: '20111206-072730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20111206-081240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20111223-221445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14922',
internalId:  '',
customField: '20111206-145237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14943',
internalId:  '',
customField: '20111206-145600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14964',
internalId:  '',
customField: '20111206-150643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29322',
internalId:  '',
customField: '20111224-085456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20111206-150036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20111122-163207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16022',
internalId:  '',
customField: '20111122-163644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20111122-172902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15864',
internalId:  '',
customField: '20111206-144716'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-15132215']={
webappId:    '1501',
documentId:  '14601',
internalId:  '15132215',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-15068']={
webappId:    '7008',
documentId:  '15864',
internalId:  '15068',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82733',
internalId:  '',
customField: '20111223-223532'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHOXC';
var companyName   = 'PRINC%C3%8DPIO+SUSTENT%C3%81VEL';
var htmlTitle	  = 'Princ%C3%ADpio+Sustent%C3%A1vel';
var metaKeywords  = 'Sustentabilidade%3B%0D%0A%0D%0A%0D%0A%0D%0ADesenvolvimento+Sustent%C3%A1vel%3B%0D%0A%0D%0A%0D%0A%0D%0AEduca%C3%A7%C3%A3o%3B%0D%0A%0D%0A%0D%0A%0D%0AConsultoria%3B%0D%0A%0D%0A%0D%0A%0D%0APlanejamento+Estrat%C3%A9gico%3B%0D%0A%0D%0A%0D%0A%0D%0APlanejamento+Estrat%C3%A9gico+para+a+Sustentabilidade%3B%0D%0A%0D%0A%0D%0A%0D%0AConsultoria+ambiental%3B%0D%0A%0D%0A%0D%0A%0D%0AGest%C3%A3o+sustent%C3%A1vel+em+Sa%C3%BAde%3B%0D%0A%0D%0A%0D%0A%0D%0AEduca%C3%A7%C3%A3o+Ambiental%3B%0D%0A%0D%0A%0D%0APlano+Diretor.%0D%0A%0D%0A%0D%0A';
var metaContents  = 'Princ%C3%ADpio+Sustent%C3%A1vel%2C+uma+empresa+de+consultoria+e+educa%C3%A7%C3%A3o+em+prol+da+transi%C3%A7%C3%A3o+para+a+Sustentabilidade+e+da+gest%C3%A3o+humanizada.+Est%C3%A1+instalada+em+uma+%C3%81rea+de+Prote%C3%A7%C3%A3o+Ambiental+%28APA%29+com+o+prop%C3%B3sito+de+cultivar+o+pensamento+sustent%C3%A1vel%2C+por+meio+de%3A%0D%0A%0D%0A%0D%0A%0D%0AConsultoria+%0D%0A%0D%0A%0D%0A%0D%0AConsultoria+Ambiental%0D%0A%0D%0A%0D%0A%0D%0AConsultoria+Socioambiental%0D%0A%0D%0A%0D%0A%0D%0AEduca%C3%A7%C3%A3o+ambiental+%28para+comunidades+e+organiza%C3%A7%C3%B5es%29%0D%0A%0D%0A%0D%0A%0D%0AElabora%C3%A7%C3%A3o+participativa+de+projetos+s%C3%B3cio-ambientais++%0D%0A%0D%0A%0D%0A%0D%0ADissemina%C3%A7%C3%A3o+de+pr%C3%A1ticas+sustent%C3%A1veis%0D%0A%0D%0A%0D%0A%0D%0APlanejamento+Estrat%C3%A9gico+participativo%0D%0A%0D%0A%0D%0A%0D%0APlanejamento+Estrat%C3%A9gico+para+a+Sustentabilidade+utilizando+uma+metodologia+sist%C3%AAmica.%0D%0A%0D%0A%0D%0A%0D%0APresta+consultoria+a+empresas+de+diferentes+setores%2C+em+todo+o+territ%C3%B3rio+nacional%2C+com+programas+e+sistemas+de+gest%C3%A3o+humanizada+que+contribuem+para+%281%29+reduzir+o+desperd%C3%ADcio+dos+investimentos+em+Educa%C3%A7%C3%A3o+%28Plano+Diretor+de+Educa%C3%A7%C3%A3o+-+PDE%29%2C++%282%29+ampliar+a+participa%C3%A7%C3%A3o+consequente+das+pessoas+no+rumo+estrat%C3%A9gico+empresarial+%28Gerenciamento+Estrat%C3%A9gico+do+Desempenho+-+GED%29+e+%283%29+identificar+e+propor+corre%C3%A7%C3%A3o+de+pontos+cr%C3%ADticos+relacionados+%C3%A0+cultura+e+ao+clima+organizacional+%28Pesquisa+de+Cultura+e+Clima+Organizacional+-+PCCO%29.++%0D%0A%0D%0A%0D%0A%0D%0ACoordena%C3%A7%C3%A3o%3A+Josely+Nunes+Villela%0D%0A%0D%0A%0D%0A%0D%0AResponsabilidade+socioambiental%0D%0A%0D%0A%0D%0A%0D%0ARepresenta+produtos+ecoefientes+como+o+Sistema+Construtivo+Betonex%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A';
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();
};

