/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','4701',jdecode('Home'),jdecode(''),'/4701.html','true',[],''],
	['PAGE','9901',jdecode('Rela%C3%A7%C3%A3o+de+M%C3%A1quinas'),jdecode(''),'/9901/index.html','true',[ 
		['PAGE','9922',jdecode('Torno'),jdecode(''),'/9901/9922.html','true',[],''],
		['PAGE','9943',jdecode('Fresadora'),jdecode(''),'/9901/9943.html','true',[],''],
		['PAGE','48601',jdecode('Centro+Usin.+CNC'),jdecode(''),'/9901/48601.html','true',[],''],
		['PAGE','9964',jdecode('Ret%C3%ADfica'),jdecode(''),'/9901/9964.html','true',[],''],
		['PAGE','9985',jdecode('Eletro+Eros%C3%A3o'),jdecode(''),'/9901/9985.html','true',[],''],
		['PAGE','10006',jdecode('Afiadora'),jdecode(''),'/9901/10006.html','true',[],''],
		['PAGE','10027',jdecode('Furadeira'),jdecode(''),'/9901/10027.html','true',[],''],
		['PAGE','10048',jdecode('Solda'),jdecode(''),'/9901/10048.html','true',[],'']
	],''],
	['PAGE','10069',jdecode('Qualidade'),jdecode(''),'/10069/index.html','true',[ 
		['PAGE','10090',jdecode('Contr.+de+Qualidade'),jdecode(''),'/10069/10090.html','true',[],''],
		['PAGE','10111',jdecode('Ajustagem'),jdecode(''),'/10069/10111.html','true',[],'']
	],''],
	['PAGE','10132',jdecode('Produtos+e+Servi%C3%A7os'),jdecode(''),'/10132.html','true',[],''],
	['PAGE','10153',jdecode('M%C3%A1quinas+Especiais'),jdecode(''),'/10153/index.html','true',[ 
		['PAGE','27801',jdecode('Moinho+p%2F+Pl%C3%A1stico'),jdecode(''),'/10153/27801.html','true',[],''],
		['PAGE','29301',jdecode('Ret%C3%ADfica+Cil%C3%ADndrica'),jdecode(''),'/10153/29301.html','true',[],''],
		['PAGE','50201',jdecode('Maq.+Corte+e+Teste'),jdecode(''),'/10153/50201.html','true',[],''],
		['PAGE','29322',jdecode('Lapidadora+Vidros'),jdecode(''),'/10153/29322.html','true',[],''],
		['PAGE','29343',jdecode('Prensa+Manual'),jdecode(''),'/10153/29343.html','true',[],''],
		['PAGE','29364',jdecode('Holder+p%2F+Testes'),jdecode(''),'/10153/29364.html','true',[],''],
		['PAGE','29385',jdecode('Estampos'),jdecode(''),'/10153/29385.html','true',[],''],
		['PAGE','29406',jdecode('Mesa+de+Esferas'),jdecode(''),'/10153/29406.html','true',[],''],
		['PAGE','29427',jdecode('Trem+de+Pouso'),jdecode(''),'/10153/29427.html','true',[],''],
		['PAGE','31401',jdecode('Parafusadeira+Pneu.'),jdecode(''),'/10153/31401.html','true',[],''],
		['PAGE','31422',jdecode('Carros+de+Transp.'),jdecode(''),'/10153/31422.html','true',[],''],
		['PAGE','31443',jdecode('Postos+de+Trabalho'),jdecode(''),'/10153/31443.html','true',[],''],
		['PAGE','31464',jdecode('Vincadeira+Dupla'),jdecode(''),'/10153/31464.html','true',[],''],
		['PAGE','31485',jdecode('M%C3%A1q.+Conform.+Tubo'),jdecode(''),'/10153/31485.html','true',[],'']
	],''],
	['PAGE','10174',jdecode('Dipositivos'),jdecode(''),'/10174/index.html','true',[ 
		['PAGE','33101',jdecode('Faca+Pneum%C3%A1tica'),jdecode(''),'/10174/33101.html','true',[],''],
		['PAGE','33122',jdecode('Dispositivos+de+Insp.'),jdecode(''),'/10174/33122.html','true',[],''],
		['PAGE','33143',jdecode('Aplica%C3%A7%C3%A3o+Painel'),jdecode(''),'/10174/33143.html','true',[],''],
		['PAGE','33164',jdecode('Disp.+p%2F+Br.+Dire%C3%A7%C3%A3o'),jdecode(''),'/10174/33164.html','true',[],''],
		['PAGE','33185',jdecode('Estanqueidade'),jdecode(''),'/10174/33185.html','true',[],''],
		['PAGE','33206',jdecode('Pallet+de+Usinagem'),jdecode(''),'/10174/33206.html','true',[],''],
		['PAGE','33227',jdecode('Postos+de+Trab.'),jdecode(''),'/10174/33227.html','true',[],'']
	],''],
	['PAGE','10195',jdecode('Usinagem'),jdecode(''),'/10195/index.html','true',[ 
		['PAGE','35401',jdecode('Guia+M%C3%B3vel'),jdecode(''),'/10195/35401.html','true',[],''],
		['PAGE','50601',jdecode('Molde+Corrugador'),jdecode(''),'/10195/50601.html','true',[],''],
		['PAGE','35422',jdecode('Cil.+Ind.+Aliment%C3%ADcia'),jdecode(''),'/10195/35422.html','true',[],''],
		['PAGE','35443',jdecode('Alimentador+de+An%C3%A9is'),jdecode(''),'/10195/35443.html','true',[],''],
		['PAGE','35464',jdecode('Calib.+p%2F+Autope%C3%A7as'),jdecode(''),'/10195/35464.html','true',[],'']
	],''],
	['PAGE','10216',jdecode('Manuten%C3%A7%C3%A3o'),jdecode(''),'/10216.html','true',[],''],
	['PAGE','10237',jdecode('Equipe'),jdecode(''),'/10237.html','true',[],''],
	['PAGE','10258',jdecode('Localiza%C3%A7%C3%A3o'),jdecode(''),'/10258.html','true',[],''],
	['PAGE','10279',jdecode('Contato'),jdecode(''),'/10279.html','true',[],'']];
var siteelementCount=47;
theSitetree.topTemplateName='Pain';
theSitetree.paletteFamily='4586B3';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10721';
theSitetree.graphicsetId='10554';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='4586b3';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Pain',
				paletteFamily: 	'4586B3',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10721',
				graphicsetId: 	'10554',
				contentColor: 	'000000',
				contentBGColor: '4586b3',
				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'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4701',
internalId:  '9045078',
customField: '1501'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '10279',
internalId:  '9045312',
customField: 'pt:BR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4701',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFRZT';
var companyName   = 'ABM+Equipamentos+e+M%C3%A1quinas+Ltda';
var htmlTitle	  = 'ABM+Equipamentos+e+M%C3%A1quinas';
var metaKeywords  = 'Usinagem+projeto+desenvolvimento+vale+do+para%C3%ADba+s%C3%A3o+jos%C3%A9+dos+campos+s%C3%A3o+paulo+brazil+dipositivos+dispositivos';
var metaContents  = 'Somos+uma+empresa+capacitada+para+projetar%2C+desenvolver+e+fabricar+qualquer+produto%2C+dentro+das+necessidades+de+cada+cliente%2C+conforme+especifica%C3%A7%C3%B5es+t%C3%A9cnicas%2C+garantindo+sempre%2C+pre%C3%A7o%2C+prazo+e+qualidade.++++Atuamos+no+setor+com+a+fabrica%C3%A7%C3%A3o+de+m%C3%A1quinas%2C+dispositivos%2C+equipamentos+e+pe%C3%A7as%2C+acess%C3%B3rios+industriais+e+manuten%C3%A7%C3%A3o%2C+prestando+servi%C3%A7os+de+usinagem+seriada+e+n%C3%A3o+seriada+de+precis%C3%A3o.+';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
