/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('A+SOWELU'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('SERVI%C3%87OS'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','47201',jdecode('Fotografia'),jdecode(''),'/473/47201.html','true',[],''],
		['PAGE','47222',jdecode('P+%26+P'),jdecode(''),'/473/47222.html','true',[],''],
		['PAGE','15801',jdecode('Produ%C3%A7%C3%A3o'),jdecode(''),'/473/15801.html','true',[],''],
		['PAGE','15822',jdecode('Conhecimento'),jdecode(''),'/473/15822.html','true',[],'']
	],''],
	['PAGE','494',jdecode('EM+DESTAQUE'),jdecode(''),'/494.html','true',[],''],
	['PAGE','36701',jdecode('ACONTECE'),jdecode(''),'/36701.html','true',[],''],
	['PAGE','38401',jdecode('SOCIAL'),jdecode(''),'/38401.html','true',[],''],
	['PAGE','35664',jdecode('GALERIA'),jdecode(''),'/35664.html','true',[],''],
	['PAGE','515',jdecode('COLUNAS'),jdecode(''),'/515.html','true',[],''],
	['PAGE','36722',jdecode('PARCEIROS'),jdecode(''),'/36722.html','true',[],''],
	['PAGE','536',jdecode('CONTATO'),jdecode(''),'/536.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17363';
theSitetree.graphicsetId='12762';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				name: 			'Transluszent',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17363',
				graphicsetId: 	'12762',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-7860614']={
webappId:    '1501',
documentId:  '401',
internalId:  '7860614',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-4621']={
webappId:    '7008',
documentId:  '536',
internalId:  '4621',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090916-205902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090918-105653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090917-195431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090916-214932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20090916-215249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090916-215646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47222',
internalId:  '',
customField: '20090917-194636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20090916-214826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15822',
internalId:  '',
customField: '20090917-195025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20090917-194407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20090916-215151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35664',
internalId:  '',
customField: '20090916-215314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090916-215357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36722',
internalId:  '',
customField: '20090916-215423'
};
webappMappings['7060']=webappMappings['7060-ab305951459a4890778ea13b98f894c2']={
webappId:    '7060',
documentId:  '35664',
internalId:  'ab305951459a4890778ea13b98f894c2',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZJ2S';
var companyName   = '%C2%AE+S+O+W+E+L+U...Solu%C3%A7%C3%B5es+e+Servi%C3%A7os+Ltda';
var htmlTitle	  = '%C2%AE++S+O+W+E+L+U+%5B+Converg%C3%AAncia++Cultural+%5D+';
var metaKeywords  = 'Sowelu+Celinna+Franca+Consultoria+Cultura+Cultural+Converg%C3%AAncia+Produ%C3%A7%C3%A3o+Educa%C3%A7%C3%A3o+Teatro+TV+Cinema+Audiovisual+Interpreta%C3%A7%C3%A3o+Dire%C3%A7%C3%A3o+Roteiro+Dramaturgia+Bahia+Salvador+Ator+Atriz+DRT+Entretenimento+Cultura+Social+Arte+Conhecimento+Neg%C3%B3cios+Tecnologia+Informa%C3%A7%C3%A3o+Comunica%C3%A7%C3%A3o+Elenco+Testes+Teste+A%C3%A7%C3%A3o+A%C3%A7%C3%B5es+Projeto+Projetos+Oficina+Curso+Cursos+Fotografia';
var metaContents  = 'Produ%C3%A7%C3%A3o+Cultural+e+Entretenimento+-+Produ%C3%A7%C3%A3o+de+Conte%C3%BAdo+%28Cinema+%2F+Tv+E+V%C3%ADdeo+%2F+Teatro%29%2C+Consultoria+Art%C3%ADstica+%28Prepara%C3%A7%C3%A3o+de+Atores+e+Apresentadores%2C+Produ%C3%A7%C3%A3o+do+Material+de+Trabalho+do+Artista%2C+Organiza%C3%A7%C3%A3o+e+Gest%C3%A3o+da+Mem%C3%B3ria+Art%C3%ADstica%29+Elabora%C3%A7%C3%A3o%2C+Promo%C3%A7%C3%A3o%2C+Implanta%C3%A7%C3%A3o+e+Gest%C3%A3o+%28Atividades+Art%C3%ADsticas+e+Culturais%2C+A%C3%A7%C3%B5es+e+Eventos+de+Lazer+e+Entretenimento%2C+Projetos+de+Incentivo+%C3%A0+Cultura+e+Artes%29++++Educa%C3%A7%C3%A3o+e+Conhecimento+-+Idealiza%C3%A7%C3%A3o%2C+Promo%C3%A7%C3%A3o+e+Realiza%C3%A7%C3%A3o+%28Cursos%2C+Treinamentos%2C+Oficinas%2C+Workshops+e+Palestras%29%2C+Consultoria+Educacional+%28Cria%C3%A7%C3%A3o+e+Implanta%C3%A7%C3%A3o+de+Projetos+Voltados+para+a+Educa%C3%A7%C3%A3o+pelo+Trabalho%2C+Qualidade+de+Vida+Laboral%2C+%C3%89tica+Empresarial+e+Responsabilidade+Social+Coorporativa+%E2%80%9CEquil%C3%ADbrio+da+Empresa+com+o+Meio+Ambiente%E2%80%9D+%2F+Colaboradores+%2F+Mercado+%2F+Comunidade%29%2C+Design+Instrucional+%28Elabora%C3%A7%C3%A3o+de+Instru%C3%A7%C3%B5es+de+Trabalho+e+Treinamento+%E2%80%9CF%C3%ADsica+e+Online%E2%80%9D%29%2C+Organiza%C3%A7%C3%A3o+de+Viagens+de+Estudos+e+Pesquisa+de+Campo++++Neg%C3%B3cios+e+TIC+-+Implanta%C3%A7%C3%A3o+e+gest%C3%A3o+de+centros+%28Gerenciamento+de+Arquivos+%2F+CGA+%2C+Registro+e+Arquivamento+da+Mem%C3%B3ria+Empresarial+%2F+CRAM%29%2C+Consultoria+%28Gest%C3%A3o+de+Banco+de+Dados%2C+Conserva%C3%A7%C3%A3o+e+Guarda+de+Acervo+F%C3%ADsico+e+Digital%2C+Gest%C3%A3o+de+Espa%C3%A7os+Eficientes+e+Din%C3%A2micos%2C+Customiza%C3%A7%C3%A3o+e+Implanta%C3%A7%C3%A3o+de+Sistema+de+GED+%2F+Gerenciamento+Eletr%C3%B4nico+de+Documentos%2C+Estudo+Hol%C3%ADstico+da+Comunica%C3%A7%C3%A3o+Institucional%2C+Gest%C3%A3o+de+Solu%C3%A7%C3%B5es+em+TIC+%2F+Redu%C3%A7%C3%A3o+de+Custos%2C+Maximiza%C3%A7%C3%A3o+Operacional+e+Lucratividade+%2F+Fotografia';
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();
};
