/* [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','6414',jdecode('Home+'),jdecode(''),'/6414.html','true',[],''],
	['PAGE','4599',jdecode('Quem+Somos'),jdecode(''),'/4599/index.html','true',[ 
		['PAGE','42010',jdecode('Miss%C3%A3o'),jdecode(''),'/4599/42010.html','true',[],''],
		['PAGE','42031',jdecode('Vis%C3%A3o'),jdecode(''),'/4599/42031.html','true',[],''],
		['PAGE','42052',jdecode('Valores'),jdecode(''),'/4599/42052.html','true',[],'']
	],''],
	['PAGE','6279',jdecode('Refer%C3%AAncias+Portugal+3%2F09'),jdecode(''),'/6279.html','true',[],''],
	['PAGE','6306',jdecode('Produtos+'),jdecode(''),'/6306/index.html','true',[ 
		['PAGE','6333',jdecode('3+tecnologias+Distintas'),jdecode(''),'/6306/6333.html','true',[],''],
		['PAGE','42073',jdecode('Barreiras'),jdecode(''),'/6306/42073.html','true',[],''],
		['PAGE','42094',jdecode('Unid.+de+Entrada+e+Sa%C3%ADda'),jdecode(''),'/6306/42094.html','true',[],''],
		['PAGE','42115',jdecode('Leitores+de+Acesso'),jdecode(''),'/6306/42115.html','true',[],''],
		['PAGE','42136',jdecode('Caixas+Autom%C3%A1ticas'),jdecode(''),'/6306/42136.html','true',[],''],
		['PAGE','42157',jdecode('Caixa+Pag.+Manual'),jdecode(''),'/6306/42157.html','true',[],''],
		['PAGE','42178',jdecode('Unidades+Desconto'),jdecode(''),'/6306/42178.html','true',[],''],
		['PAGE','6360',jdecode('Outros+Produtos'),jdecode(''),'/6306/6360.html','true',[],'']
	],''],
	['PAGE','47710',jdecode('Cat%C3%A1logos+Equipamentos'),jdecode(''),'/47710.html','true',[],''],
	['PAGE','6387',jdecode('Contactos'),jdecode(''),'/6387.html','true',[],''],
	['PAGE','48610',jdecode('Manuten%C3%A7%C3%A3o%2FAssist%C3%AAncia'),jdecode(''),'/48610.html','true',[],''],
	['PAGE','35910',jdecode('Pedido+Informa%C3%A7%C3%B5es+'),jdecode(''),'/35910.html','true',[],''],
	['PAGE','35931',jdecode('Pedido+de+Assist%C3%AAncia'),jdecode(''),'/35931.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1982';
theSitetree.keyvisualName='microchips.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1982',
				keyvisualName: 	'microchips.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '6414',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20090115-231254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6306',
internalId:  '',
customField: '20090309-170914'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6414',
internalId:  '',
customField: '20090402-005101'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6279',
internalId:  '',
customField: '20090413-001929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6333',
internalId:  '',
customField: '20090115-232247'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6360',
internalId:  '',
customField: '20090115-233942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6387',
internalId:  '',
customField: '20090115-234357'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '35931',
internalId:  '12423612',
customField: 'pt:PT:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '35910',
internalId:  '12423576',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35910',
internalId:  '',
customField: '20090115-234606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35931',
internalId:  '',
customField: '20090115-234701'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42073',
internalId:  '',
customField: '20090115-232454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42094',
internalId:  '',
customField: '20090115-232632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42115',
internalId:  '',
customField: '20090115-232833'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42136',
internalId:  '',
customField: '20090115-233007'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42157',
internalId:  '',
customField: '20090115-233203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42178',
internalId:  '',
customField: '20090115-233810'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42010',
internalId:  '',
customField: '20090115-231412'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42031',
internalId:  '',
customField: '20090115-231522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42052',
internalId:  '',
customField: '20090115-231715'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '47710',
internalId:  '11eb5eb3e3b',
customField: 'g.13qqui3bq.hdgeps6oc3.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47710',
internalId:  '',
customField: '20090115-234102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48610',
internalId:  '',
customField: '20090115-234509'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVVKS';
var companyName   = 'SCHEIDT+%26+BACHMANN+PORTUGAL';
var htmlTitle	  = 'Scheidt++Bachmann+Portugal+-+Especialistas+Equipamentos+Gest%C3%A3o+Estacionamento';
var metaKeywords  = 'Scheidt++Bachmann%2C+Estacionamentos%2C+Equipamentos%2C+Barreiras%2C+Maquinas+Automaticas%2C+Gestao+de+Estacionamentos%2C+SB+Portugal%2C+sbportugal.com%2C+';
var metaContents  = 'Scheidt++Bachmann%2C+Servicos+e+Gestao+de+Estacionamentos%2C+SB+Portugal%2C+sbportugal.com';
					                                                                    
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 */					                                                            
