/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],'',''],
	['PAGE','32',jdecode('Quem+somos'),jdecode(''),'/32/index.html','true',[ 
		['PAGE','39622',jdecode('L%C3%ADder+de+Capacita%C3%A7%C3%A3o'),jdecode(''),'/32/39622.html','true',[],'',''],
		['PAGE','186401',jdecode('Hist%C3%B3rico'),jdecode(''),'/32/186401.html','true',[],'',''],
		['PAGE','186422',jdecode('Metodologia'),jdecode(''),'/32/186422.html','false',[],'',''],
		['PAGE','39643',jdecode('Onde+Estamos'),jdecode(''),'/32/39643.html','true',[],'','']
	],'',''],
	['PAGE','186101',jdecode('Consultoria'),jdecode(''),'/186101.html','true',[],'',''],
	['PAGE','68',jdecode('Treinamentos'),jdecode(''),'/68/index.html','true',[ 
		['PAGE','205812',jdecode('Log%C3%ADstica+para+E-Commerce'),jdecode(''),'/68/205812.html','true',[],'',''],
		['PAGE','206112',jdecode('e-Supply+Chain+Management'),jdecode(''),'/68/206112.html','true',[],'',''],
		['PAGE','206412',jdecode('Gestor+Log%C3%ADstica++E-Commerce'),jdecode(''),'/68/206412.html','true',[],'',''],
		['PAGE','128822',jdecode('Estrat%C3%A9gias+de+Negocia%C3%A7%C3%A3o'),jdecode(''),'/68/128822.html','false',[],'',''],
		['PAGE','189043',jdecode('Renova%C3%A7%C3%A3o+da+Log%C3%ADstica'),jdecode(''),'/68/189043.html','false',[],'',''],
		['PAGE','189064',jdecode('Atendimento+10'),jdecode(''),'/68/189064.html','false',[],'',''],
		['PAGE','175801',jdecode('Capac.+de+Gerentes+-+Mod.+I'),jdecode(''),'/68/175801.html','false',[],'',''],
		['PAGE','175822',jdecode('Inativo+1'),jdecode(''),'/68/175822.html','false',[],'',''],
		['PAGE','72201',jdecode('Inativo+2'),jdecode(''),'/68/72201.html','false',[],'',''],
		['PAGE','1556',jdecode('Inativo+3'),jdecode(''),'/68/1556.html','false',[],'',''],
		['PAGE','174301',jdecode('In+Company'),jdecode(''),'/68/174301.html','false',[],'','']
	],'',''],
	['PAGE','54806',jdecode('Clientes'),jdecode(''),'/54806.html','true',[],'',''],
	['PAGE','199133',jdecode('Dicas'),jdecode(''),'/199133/index.html','true',[ 
		['PAGE','199154',jdecode('Import%C3%A2ncia+da+Log%C3%ADstica'),jdecode(''),'/199133/199154.html','true',[],'',''],
		['PAGE','4589',jdecode('Moda'),jdecode(''),'/199133/4589.html','false',[],'',''],
		['PAGE','60401',jdecode('Contrata%C3%A7%C3%A3o+de+Transporte'),jdecode(''),'/199133/60401.html','true',[],'',''],
		['PAGE','71701',jdecode('Pilares+Solu%C3%A7%C3%B5es+Log%C3%ADsticas'),jdecode(''),'/199133/71701.html','true',[],'',''],
		['PAGE','113101',jdecode('Precis%C3%A3o+dos+Estoques'),jdecode(''),'/199133/113101.html','true',[],'','']
	],'',''],
	['PAGE','151501',jdecode('Not%C3%ADcias'),jdecode(''),'/151501/index.html','true',[ 
		['PAGE','1505',jdecode('05%2F10%2F06'),jdecode(''),'/151501/1505.html','false',[],'','']
	],'',''],
	['PAGE','4598',jdecode('Vagas'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','1565',jdecode('Inscri%C3%A7%C3%B5es'),jdecode(''),'/1565.html','true',[],'',''],
	['PAGE','95',jdecode('Contato'),jdecode(''),'/95/index.html','true',[ 
		['PAGE','1408',jdecode('Contato+%28p%C3%A1gina+seguir%29'),jdecode(''),'/95/1408.html','false',[],'','']
	],'',''],
	['PAGE','203012',jdecode('Cadastre-se'),jdecode(''),'/203012.html','true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11164';
theSitetree.keyvisualName='kv_11164.jpg';
theSitetree.fontsetId='32064';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='4e5978';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11164',
				keyvisualName: 	'kv_11164.jpg',
				fontsetId: 		'32064',
				graphicsetId: 	'13879',
				contentColor: 	'4e5978',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20100319-220747'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2775']={
webappId:    '7008',
documentId:  '95',
internalId:  '2775',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128822',
internalId:  '',
customField: '20100213-212703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68',
internalId:  '',
customField: '20100318-081459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206112',
internalId:  '',
customField: '20100318-074858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72201',
internalId:  '',
customField: '20090915-092449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174301',
internalId:  '',
customField: '20091027-184859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1565',
internalId:  '',
customField: '20090219-215503'
};
webappMappings['7008']=webappMappings['7008-2776']={
webappId:    '7008',
documentId:  '1565',
internalId:  '2776',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-15677']={
webappId:    '7008',
documentId:  '205812',
internalId:  '15677',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1556',
internalId:  '',
customField: '20090924-154629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205812',
internalId:  '',
customField: '20100318-205120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100319-212656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39622',
internalId:  '',
customField: '20100315-205958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39643',
internalId:  '',
customField: '20100318-083753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54806',
internalId:  '',
customField: '20100316-095656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4589',
internalId:  '',
customField: '20070529-070354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60401',
internalId:  '',
customField: '20070529-070150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71701',
internalId:  '',
customField: '20070529-070447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199133',
internalId:  '',
customField: '20100317-152953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113101',
internalId:  '',
customField: '20070822-144611'
};
webappMappings['7008']=webappMappings['7008-15679']={
webappId:    '7008',
documentId:  '206412',
internalId:  '15679',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203012',
internalId:  '',
customField: '20100316-083255'
};
webappMappings['7008']=webappMappings['7008-15617']={
webappId:    '7008',
documentId:  '203012',
internalId:  '15617',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1505',
internalId:  '',
customField: '20070531-115617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100315-212838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95',
internalId:  '',
customField: '20091026-180029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1408',
internalId:  '',
customField: '20061005-104242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151501',
internalId:  '',
customField: '20100315-212701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175801',
internalId:  '',
customField: '20090915-092700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175822',
internalId:  '',
customField: '20090915-092730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186101',
internalId:  '',
customField: '20100316-080447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186401',
internalId:  '',
customField: '20100315-210100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186422',
internalId:  '',
customField: '20091026-175028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206412',
internalId:  '',
customField: '20100318-082947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189064',
internalId:  '',
customField: '20091027-193424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189043',
internalId:  '',
customField: '20091027-193348'
};
webappMappings['7008']=webappMappings['7008-15678']={
webappId:    '7008',
documentId:  '206112',
internalId:  '15678',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199154',
internalId:  '',
customField: '20100223-213629'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2IBS';
var companyName   = 'Log%C3%ADstica+e+Supply+Chain+para+E-Commerce';
var htmlTitle	  = 'Log%C3%ADstica+e+Supply+Chain+para+E-commerce%2C+Com%C3%A9rcio+Eletr%C3%B4nico+e+Lojas+Virtuais';
var metaKeywords  = 'log%C3%ADstica%0D%0A%0D%0A%0D%0A%0D%0Alogistica%0D%0A%0D%0A%0D%0A%0D%0Ae-commerce%0D%0A%0D%0A%0D%0A%0D%0Aecommerce%0D%0A%0D%0A%0D%0A%0D%0Ae+commerce%0D%0A%0D%0A%0D%0A%0D%0Aloja+virtual%0D%0A%0D%0A%0D%0A%0D%0Alojas+virtuais%0D%0A%0D%0A%0D%0A%0D%0Acom%C3%A9rcio+eletr%C3%B4nico%0D%0A%0D%0A%0D%0A%0D%0Alogistica+para+e-commerce%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+para+e-commerce%0D%0A%0D%0A%0D%0A%0D%0Alogistica+e-commerce%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+e-commerce%0D%0A%0D%0A%0D%0A%0D%0Alogistica+ecommerce%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+ecommerce%0D%0A%0D%0A%0D%0A%0D%0Alogistica+para+loja+virtual%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+para+loja+virtual%0D%0A%0D%0A%0D%0A%0D%0Alogistica+loja+virtual%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+loja+virtual%0D%0A%0D%0A%0D%0A%0D%0Alogistica+para+lojas+virtuais%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+para+lojas+virtuais%0D%0A%0D%0A%0D%0A%0D%0Alogistica+lojas+virtuais%0D%0A%0D%0A%0D%0A%0D%0Alog%C3%ADstica+lojas+virtuais%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A';
var metaContents  = 'A+TIMM+BUSINESS+oferece+solu%C3%A7%C3%B5es+de+Log%C3%ADstica+e+Supply+Chain+para+E-Commerce%2C+Com%C3%A9rcio+Eletr%C3%B4nico+e+Lojas+Virtuais.';
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();
};
