/* [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(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','573',jdecode('Quem+somos'),jdecode(''), jdecode('%2F573%2Findex.html'), 'true',[ 
		['PAGE','594',jdecode('Nossa+equipe'),jdecode(''), jdecode('%2F573%2F594.html'), 'true',[],'',''],
		['PAGE','68001',jdecode('Aniversariantes'),jdecode(''), jdecode('%2F573%2F68001.html'), 'true',[],'',''],
		['PAGE','8122',jdecode('Miss%C3%A3o'),jdecode(''), jdecode('%2F573%2F8122.html'), 'true',[],'',''],
		['PAGE','8143',jdecode('Neg%C3%B3cio'),jdecode(''), jdecode('%2F573%2F8143.html'), 'true',[],'',''],
		['PAGE','8164',jdecode('Objetivo'),jdecode(''), jdecode('%2F573%2F8164.html'), 'true',[],'',''],
		['PAGE','8101',jdecode('Reconhecimento'),jdecode(''), jdecode('%2F573%2F8101.html'), 'true',[],'',''],
		['PAGE','783',jdecode('Contato'),jdecode(''), jdecode('%2F573%2F783.html'), 'true',[],'','']
	],'',''],
	['PAGE','60901',jdecode('Consultoria'),jdecode(''), jdecode('%2F60901.html'), 'true',[],'',''],
	['PAGE','20301',jdecode('Servi%C3%A7os'),jdecode(''), jdecode('%2F20301%2Findex.html'), 'true',[ 
		['PAGE','20364',jdecode('Contabilidade'),jdecode(''), jdecode('%2F20301%2F20364.html'), 'true',[],'',''],
		['PAGE','40422',jdecode('Departamento+Fiscal'),jdecode(''), jdecode('%2F20301%2F40422.html'), 'true',[],'',''],
		['PAGE','40401',jdecode('Departamento+Pessoal'),jdecode(''), jdecode('%2F20301%2F40401.html'), 'true',[],'',''],
		['PAGE','32701',jdecode('INSS'),jdecode(''), jdecode('%2F20301%2F32701.html'), 'true',[],'',''],
		['PAGE','32722',jdecode('FGTS'),jdecode(''), jdecode('%2F20301%2F32722.html'), 'true',[],'',''],
		['PAGE','32743',jdecode('Receita+Federal'),jdecode(''), jdecode('%2F20301%2F32743.html'), 'true',[],'',''],
		['PAGE','32764',jdecode('Receita+Estadual'),jdecode(''), jdecode('%2F20301%2F32764.html'), 'true',[],'',''],
		['PAGE','32785',jdecode('PMU'),jdecode(''), jdecode('%2F20301%2F32785.html'), 'true',[],'',''],
		['PAGE','20322',jdecode('CERTID%C3%95ES+NEGATIVAS'),jdecode(''), jdecode('%2F20301%2F20322.html'), 'true',[],'','']
	],'',''],
	['PAGE','35601',jdecode('Downloads'),jdecode(''), jdecode('%2F35601.html'), 'true',[],'',''],
	['PAGE','58301',jdecode('Parceiros'),jdecode(''), jdecode('%2F58301%2Findex.html'), 'true',[ 
		['PAGE','66501',jdecode('Advogados'),jdecode(''), jdecode('%2F58301%2F66501.html'), 'true',[],'',''],
		['PAGE','66522',jdecode('Auditores'),jdecode(''), jdecode('%2F58301%2F66522.html'), 'true',[],'',''],
		['PAGE','66543',jdecode('Inform%C3%A1tica'),jdecode(''), jdecode('%2F58301%2F66543.html'), 'true',[],'','']
	],'',''],
	['PAGE','20385',jdecode('Envie+Seu+Curr%C3%ADculo'),jdecode(''), jdecode('%2F20385.html'), 'true',[],'',''],
	['PAGE','102201',jdecode('Cameras+Rentabil'),jdecode(''), jdecode('%2F102201.html'), 'true',[],'',''],
	['PAGE','35643',jdecode('Fotos'),jdecode(''), jdecode('%2F35643%2Findex.html'), 'true',[ 
		['PAGE','13101',jdecode('Gildo'),jdecode(''), jdecode('%2F35643%2F13101.html'), 'true',[],'',''],
		['PAGE','34801',jdecode('Palestra+Roberto+Justos'),jdecode(''), jdecode('%2F35643%2F34801.html'), 'true',[],'','']
	],'',''],
	['PAGE','804',jdecode('Links+Favoritos'),jdecode(''), jdecode('%2F804.html'), 'true',[],'',''],
	['PAGE','5906',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''), jdecode('%2F5906%2Findex.html'), 'true',[ 
		['PAGE','5901',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''), jdecode('%2F5906%2F5901.html'), 'false',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Sportsplace';
theSitetree.paletteFamily='1D2D7E';
theSitetree.keyvisualId='2631';
theSitetree.keyvisualName='commerz.jpg';
theSitetree.fontsetId='343';
theSitetree.graphicsetId='402';
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: 			'Sportsplace',
				paletteFamily: 	'1D2D7E',
				keyvisualId: 	'2631',
				keyvisualName: 	'commerz.jpg',
				fontsetId: 		'343',
				graphicsetId: 	'402',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'1D2D7E',
				b_color: 		'788EC9',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1860945']={
webappId:    '1501',
documentId:  '501',
internalId:  '1860945',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-5906avec10inejs4']={
webappId:    '1002',
documentId:  '5906',
internalId:  '5906avec10inejs4',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20110830-092917'
};
webappMappings['7060']=webappMappings['7060-5811a0dd56a405e9729cb7d0a7149670']={
webappId:    '7060',
documentId:  '13101',
internalId:  '5811a0dd56a405e9729cb7d0a7149670',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-8675b1cad1cf2a7594f4c53d2778f847']={
webappId:    '7060',
documentId:  '34801',
internalId:  '8675b1cad1cf2a7594f4c53d2778f847',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20071122-063145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090705-204001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68001',
internalId:  '',
customField: '20090225-081443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20090225-081550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20061213-072104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20070607-184412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20071122-063216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20090312-170248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60901',
internalId:  '',
customField: '20090225-082219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20090225-105241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20322',
internalId:  '',
customField: '20070628-155951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32743',
internalId:  '',
customField: '20070610-084042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20090225-082354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32722',
internalId:  '',
customField: '20090225-082421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32764',
internalId:  '',
customField: '20070625-074924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32785',
internalId:  '',
customField: '20070611-133942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20364',
internalId:  '',
customField: '20090225-082522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40401',
internalId:  '',
customField: '20090225-082543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40422',
internalId:  '',
customField: '20090225-082658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20090225-085047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102201',
internalId:  '',
customField: '20111209-210728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20070721-055614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66501',
internalId:  '',
customField: '20090225-083007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66522',
internalId:  '',
customField: '20070721-050756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66543',
internalId:  '',
customField: '20070721-055905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20385',
internalId:  '',
customField: '20110419-060910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35643',
internalId:  '',
customField: '20090225-083105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20070608-161137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20070608-165813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20090225-134721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5906',
internalId:  '',
customField: '20070610-091642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20061207-172628'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEJS4';
var companyName   = 'Rent%C3%A1bil+Contabilidade%2C+Auditoria+%26+Per%C3%ADcia';
var htmlTitle	  = 'RENTABIL+CONTABILIDADE%2C+AUDITORIA++%26+PER%C3%8DCIA';
var metaKeywords  = 'Rentabil+++Rent%C3%A1bil+++Contabilidade+++Contabil+++Auditor+++Auditoria+++Perito+++Per%C3%ADcia+++Uberaba+++Escritorio+de+Contabilidade+++Contabil';
var metaContents  = 'Rentabil+++Contabilidade+++Auditoria+++Per%C3%ADcia++Servi%C3%A7os++Downloads+++uberaba+mg+minas+gerais+curr%C3%ADculos+departamento+pessoal+fiscal+ajuda+f%C3%B3rum+perito+auditor+contador+amador+profissionalv%C3%A1rias+outras+empresa+gest%C3%A3o+empresarial+sebrae+terra+uol+google+yahoo+tudo+nada';
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();
};

