/* [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(''), jdecode('%2F11.html'), 'true',[],'',''],
	['PAGE','32',jdecode('Quem+somos'),jdecode(''), jdecode('%2F32%2Findex.html'), 'false',[ 
		['PAGE','39622',jdecode('L%C3%ADder+de+Projetos'),jdecode(''), jdecode('%2F32%2F39622.html'), 'false',[],'',''],
		['PAGE','186401',jdecode('Hist%C3%B3rico'),jdecode(''), jdecode('%2F32%2F186401.html'), 'false',[],'',''],
		['PAGE','186422',jdecode('Metodologia'),jdecode(''), jdecode('%2F32%2F186422.html'), 'false',[],'',''],
		['PAGE','39643',jdecode('Onde+Estamos'),jdecode(''), jdecode('%2F32%2F39643.html'), 'false',[],'','']
	],'',''],
	['PAGE','186101',jdecode('Consultoria'),jdecode(''), jdecode('%2F186101.html'), 'false',[],'',''],
	['PAGE','68',jdecode('Treinamentos'),jdecode(''), jdecode('%2F68%2Findex.html'), 'false',[ 
		['PAGE','205812',jdecode('Log%C3%ADstica+para+E-Commerce'),jdecode(''), jdecode('%2F68%2F205812.html'), 'true',[],'',''],
		['PAGE','206112',jdecode('e-Supply+Chain+Management'),jdecode(''), jdecode('%2F68%2F206112.html'), 'true',[],'',''],
		['PAGE','206412',jdecode('Gestor+Log%C3%ADstica++E-Commerce'),jdecode(''), jdecode('%2F68%2F206412.html'), 'true',[],'',''],
		['PAGE','128822',jdecode('Estrat%C3%A9gias+de+Negocia%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F68%2F128822.html'), 'false',[],'',''],
		['PAGE','189043',jdecode('Renova%C3%A7%C3%A3o+da+Log%C3%ADstica'),jdecode(''), jdecode('%2F68%2F189043.html'), 'false',[],'',''],
		['PAGE','189064',jdecode('Atendimento+10'),jdecode(''), jdecode('%2F68%2F189064.html'), 'false',[],'',''],
		['PAGE','175801',jdecode('Capac.+de+Gerentes+-+Mod.+I'),jdecode(''), jdecode('%2F68%2F175801.html'), 'false',[],'',''],
		['PAGE','175822',jdecode('Inativo+1'),jdecode(''), jdecode('%2F68%2F175822.html'), 'false',[],'',''],
		['PAGE','72201',jdecode('Inativo+2'),jdecode(''), jdecode('%2F68%2F72201.html'), 'false',[],'',''],
		['PAGE','1556',jdecode('Inativo+3'),jdecode(''), jdecode('%2F68%2F1556.html'), 'false',[],'',''],
		['PAGE','174301',jdecode('In+Company'),jdecode(''), jdecode('%2F68%2F174301.html'), 'false',[],'','']
	],'',''],
	['PAGE','54806',jdecode('Clientes'),jdecode(''), jdecode('%2F54806.html'), 'false',[],'',''],
	['PAGE','199133',jdecode('Dicas'),jdecode(''), jdecode('%2F199133%2Findex.html'), 'false',[ 
		['PAGE','199154',jdecode('Import%C3%A2ncia+da+Log%C3%ADstica'),jdecode(''), jdecode('%2F199133%2F199154.html'), 'true',[],'',''],
		['PAGE','4589',jdecode('Moda'),jdecode(''), jdecode('%2F199133%2F4589.html'), 'false',[],'',''],
		['PAGE','60401',jdecode('Contrata%C3%A7%C3%A3o+de+Transporte'),jdecode(''), jdecode('%2F199133%2F60401.html'), 'true',[],'',''],
		['PAGE','71701',jdecode('Pilares+Solu%C3%A7%C3%B5es+Log%C3%ADsticas'),jdecode(''), jdecode('%2F199133%2F71701.html'), 'true',[],'',''],
		['PAGE','113101',jdecode('Precis%C3%A3o+dos+Estoques'),jdecode(''), jdecode('%2F199133%2F113101.html'), 'true',[],'','']
	],'',''],
	['PAGE','151501',jdecode('Not%C3%ADcias'),jdecode(''), jdecode('%2F151501%2Findex.html'), 'false',[ 
		['PAGE','1505',jdecode('05%2F10%2F06'),jdecode(''), jdecode('%2F151501%2F1505.html'), 'false',[],'','']
	],'',''],
	['PAGE','4598',jdecode('Vagas'),jdecode(''), jdecode('%2F4598.html'), 'false',[],'',''],
	['PAGE','1565',jdecode('Inscri%C3%A7%C3%B5es'),jdecode(''), jdecode('%2F1565.html'), 'false',[],'',''],
	['PAGE','203012',jdecode('Cadastre-se'),jdecode(''), jdecode('%2F203012.html'), 'false',[],'',''],
	['PAGE','95',jdecode('Contato'),jdecode(''), jdecode('%2F95%2Findex.html'), 'true',[ 
		['PAGE','1408',jdecode('Contato+%28p%C3%A1gina+seguir%29'),jdecode(''), jdecode('%2F95%2F1408.html'), 'false',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Blades';
theSitetree.paletteFamily='466AD2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='31706';
theSitetree.graphicsetId='13467';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='608DFE';
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: 			'Blades',
				paletteFamily: 	'466AD2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'31706',
				graphicsetId: 	'13467',
				contentColor: 	'FFFFFF',
				contentBGColor: '608DFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20111215-123001'
};
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: '20110113-124040'
};
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'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2IBS';
var companyName   = 'Timm+Business+-+Gest%C3%A3o+Log%C3%ADstica';
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();
};

