/* [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','4556',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4640',jdecode('Quem+somos+%2F+contactos'),jdecode(''),'/4640.html','true',[],''],
	['PAGE','4721',jdecode('Aquecimento+Comfort'),jdecode(''),'/4721/index.html','true',[ 
		['PAGE','59978',jdecode('Quero+Instalar'),jdecode(''),'/4721/59978.html','true',[],''],
		['PAGE','4775',jdecode('Caract.+t%C3%A9cnicas'),jdecode(''),'/4721/4775.html','true',[],''],
		['PAGE','4829',jdecode('Inform.+cient%C3%ADfica'),jdecode(''),'/4721/4829.html','true',[],''],
		['PAGE','4802',jdecode('Arquitectura'),jdecode(''),'/4721/4802.html','true',[],''],
		['PAGE','4856',jdecode('%24%3F%3A+instalar+e+manter'),jdecode(''),'/4721/4856.html','true',[],''],
		['PAGE','5703',jdecode('%24%3F%3A+funcionamento'),jdecode(''),'/4721/5703.html','true',[],''],
		['PAGE','30603',jdecode('Imagens'),jdecode(''),'/4721/30603.html','true',[],'']
	],''],
	['PAGE','4883',jdecode('Isolamento+t%C3%A9rmico'),jdecode(''),'/4883/index.html','true',[ 
		['PAGE','6903',jdecode('Especial+habita%C3%A7%C3%B5es'),jdecode(''),'/4883/6903.html','true',[],''],
		['PAGE','32403',jdecode('Instala%C3%A7%C3%B5es+especiais'),jdecode(''),'/4883/32403.html','true',[],''],
		['PAGE','6930',jdecode('Perguntas+frequentes'),jdecode(''),'/4883/6930.html','true',[],'']
	],''],
	['PAGE','4910',jdecode('Isolamento+ac%C3%BAstico'),jdecode(''),'/4910.html','true',[],''],
	['PAGE','4937',jdecode('Dom%C3%B3tica'),jdecode(''),'/4937.html','true',[],''],
	['PAGE','4964',jdecode('Links+e+curiosidades'),jdecode(''),'/4964.html','true',[],''],
	['PAGE','33202',jdecode('%C3%81lbum+de+Fotos'),jdecode(''),'/33202.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1338';
theSitetree.keyvisualName='handwerker.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='278';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'1338',
				keyvisualName: 	'handwerker.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'278',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '33202',
internalId:  '10a515a9def',
customField: 'g.12lga97vf.7pv0ni7k79a63.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20101015-173815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20070119-043227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4721',
internalId:  '',
customField: '20101015-174216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59978',
internalId:  '',
customField: '20101015-173954'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4775',
internalId:  '',
customField: '20101015-175600'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4829',
internalId:  '',
customField: '20101015-174619'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4802',
internalId:  '',
customField: '20101015-174325'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4856',
internalId:  '',
customField: '20101015-175624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5703',
internalId:  '',
customField: '20070119-050711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30603',
internalId:  '',
customField: '20060612-181226'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4883',
internalId:  '',
customField: '20060605-164744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6903',
internalId:  '',
customField: '20060605-164940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32403',
internalId:  '',
customField: '20060520-175306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6930',
internalId:  '',
customField: '20060519-171858'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4910',
internalId:  '',
customField: '20060608-184315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4937',
internalId:  '',
customField: '20061106-015424'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4964',
internalId:  '',
customField: '20061106-020456'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33202',
internalId:  '',
customField: '20070119-045327'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3CJ2';
var companyName   = 'tecnologia+e+conforto';
var htmlTitle	  = 'www.auber.pt';
var metaKeywords  = 'Boltherm+Calinteg+Aquecimento+Aquecimento+central+Central+confort+inteligent+isolamento+t%EF%BF%BDrmico+Isolamento+Ac%EF%BF%BDstico+Dom%EF%BF%BDtica+Seguran%EF%BF%BDa+Energia+paineis+radiantes+aquecimento+radiante';
var metaContents  = 'Aquecimento+Aquecimento+Aquecimento+central+Central+confort+Isolamento+T%EF%BF%BDrmico+Isolamento+Ac%EF%BF%BDstico+Dom%EF%BF%BDtica+Seguran%EF%BF%BDa+Energia+calinteg';
					                                                                    
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 */					                                                            

