/* [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','1513',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/1513.html','true',[],''],
	['PAGE','1570',jdecode('Quem+somos'),jdecode(''),'/1570.html','true',[],''],
	['PAGE','1624',jdecode('Historial+da+Empresa'),jdecode(''),'/1624.html','true',[],''],
	['PAGE','1651',jdecode('Parceiros'),jdecode(''),'/1651.html','true',[],''],
	['PAGE','1678',jdecode('Contactos'),jdecode(''),'/1678.html','true',[],''],
	['PAGE','1597',jdecode('Pedido+de+informa%C3%A7%C3%B5es'),jdecode(''),'/1597/index.html','true',[ 
		['PAGE','11002',jdecode('Pedido+de+informa%C3%A7%C3%B5es+%28volgende+pagina%29'),jdecode(''),'/1597/11002.html','false',[],'']
	],''],
	['PAGE','1705',jdecode('Folha+informativa'),jdecode(''),'/1705.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='5944D9';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10514';
theSitetree.graphicsetId='11135';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5764B2';
var theTemplate={
				name: 			'Surround',
				paletteFamily: 	'5944D9',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10514',
				graphicsetId: 	'11135',
				contentColor: 	'FFFFFF',
				contentBGColor: '5764B2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'8386EC',
				e_color: 		'8386EC',
				f_color: 		'8386EC',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1513',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1597',
internalId:  'aam010inlw8g1136dbfdd13',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11002',
internalId:  'aam010inlw8g1136dbfdd13',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1513',
internalId:  '',
customField: '20070703-191641'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1705',
internalId:  '',
customField: '20090324-115137'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1570',
internalId:  '',
customField: '20080610-001249'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1624',
internalId:  '',
customField: '20090324-113255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1651',
internalId:  '',
customField: '20070627-173257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1678',
internalId:  '',
customField: '20070703-225855'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1597',
internalId:  '',
customField: '20070627-235700'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11002',
internalId:  '',
customField: '20070627-171456'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLW8G';
var companyName   = 'CARLOS+A.+S.+MARQUES%2C+LDA.';
var htmlTitle	  = 'CMESCRITAS';
var metaKeywords  = 'escritas%2Ccontabilidade%2Cimpostos%2CIRC%2CIRS%2CIVA%2Csal%EF%BF%BDrios%2C+fiscal%2Cgabinete%2Cseguros%2Ccondom%EF%BF%BDnios%2Cinform%EF%BF%BDtica%2CTOC%2Cguarda+livros%2Cfiscalidade';
var metaContents  = 'Empresa+de+contabilidade+e+consultadoria+fiscal+sediada+em+Lisboa%2C+nos+Olivais%2C+junto+%EF%BF%BD+Gare+do+Oriente.+Escritas+de+empresas+no+regime+geral+ou+no+simplificado%2C+escritas+de+empres%EF%BF%BDrios+em+nome+individual+e+de+prestadores+de+servi%EF%BF%BDos+a+recibos+verdes.+Apoio+jur%EF%BF%BDdico%2C+seguros%2C+inform%EF%BF%BDtica%2C+gest%EF%BF%BDo+de+condom%EF%BF%BDnios.';
					                                                                    
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 */					                                                            
