/* [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','4587',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/4587.html','true',[],''],
	['PAGE','13903',jdecode('Informa%C3%A7%C3%A3o+Online'),jdecode(''),'/13903.html','true',[],''],
	['PAGE','34103',jdecode('Empresas'),jdecode(''),'/34103.html','true',[],''],
	['PAGE','8803',jdecode('Formul%C3%A1rio+de+Contacto'),jdecode(''),'/8803.html','true',[],''],
	['PAGE','10322',jdecode('Contactos'),jdecode(''),'/10322.html','true',[],''],
	['PAGE','24003',jdecode('Areas+Jur%C3%ADdicas'),jdecode(''),'/24003/index.html','true',[ 
		['PAGE','24030',jdecode('Direito+Civil'),jdecode(''),'/24003/24030.html','true',[],''],
		['PAGE','24057',jdecode('Direito+das+Obriga%C3%A7%C3%B5es'),jdecode(''),'/24003/24057.html','true',[],''],
		['PAGE','24084',jdecode('Direitos+Reais'),jdecode(''),'/24003/24084.html','true',[],''],
		['PAGE','24111',jdecode('Direito+da+Fam%C3%ADlia'),jdecode(''),'/24003/24111.html','true',[],''],
		['PAGE','24138',jdecode('Direito+das+Sucess%C3%B5es'),jdecode(''),'/24003/24138.html','true',[],''],
		['PAGE','24165',jdecode('Arrendamento++'),jdecode(''),'/24003/24165.html','true',[],''],
		['PAGE','24803',jdecode('Direito+do+Consumidor'),jdecode(''),'/24003/24803.html','true',[],''],
		['PAGE','24192',jdecode('Processo+C%C3%ADvel'),jdecode(''),'/24003/24192.html','true',[],''],
		['PAGE','24219',jdecode('Direito+Comercial'),jdecode(''),'/24003/24219.html','true',[],''],
		['PAGE','25103',jdecode('Registos+e+Notariado'),jdecode(''),'/24003/25103.html','true',[],''],
		['PAGE','24246',jdecode('Direito+Penal'),jdecode(''),'/24003/24246.html','true',[],''],
		['PAGE','25130',jdecode('Direito+do+Trabalho'),jdecode(''),'/24003/25130.html','true',[],''],
		['PAGE','24273',jdecode('Direito+Fiscal'),jdecode(''),'/24003/24273.html','true',[],''],
		['PAGE','25157',jdecode('Contra-Ordena%C3%A7%C3%B5es'),jdecode(''),'/24003/25157.html','true',[],''],
		['PAGE','24830',jdecode('Direito+Administrativo'),jdecode(''),'/24003/24830.html','true',[],'']
	],''],
	['PAGE','36201',jdecode('Artigos+Publicados'),jdecode(''),'/36201.html','true',[],''],
	['PAGE','30203',jdecode('Parcerias'),jdecode(''),'/30203/index.html','true',[ 
		['PAGE','30402',jdecode('Parcerias+%28volgende+pagina%29'),jdecode(''),'/30203/30402.html','false',[],'']
	],''],
	['PAGE','16103',jdecode('Links+%C3%BAteis'),jdecode(''),'/16103.html','true',[],''],
	['PAGE','20503',jdecode('Recrutamento'),jdecode(''),'/20503.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1280';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='232';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'990000',
				keyvisualId: 	'1280',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'232',
				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: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '13903',
internalId:  '13014528',
customField: 'pt:PT:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4587',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4587',
internalId:  '',
customField: '20110209-231115'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13903',
internalId:  '',
customField: '20100206-182655'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '8803',
internalId:  '13014528',
customField: 'pt:PT:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '34103',
internalId:  '13014528',
customField: 'pt:PT:'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '30203',
internalId:  'aam010ine13a10e909f4c72',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '30402',
internalId:  'aam010ine13a10e909f4c72',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34103',
internalId:  '',
customField: '20100206-182925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8803',
internalId:  '',
customField: '20100201-211934'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10322',
internalId:  '',
customField: '20110727-022725'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24003',
internalId:  '',
customField: '20100128-003453'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30203',
internalId:  '',
customField: '20090425-013220'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20080207-191640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24030',
internalId:  '',
customField: '20070314-155827'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24057',
internalId:  '',
customField: '20061028-214927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24084',
internalId:  '',
customField: '20061028-215023'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24111',
internalId:  '',
customField: '20061028-210002'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24138',
internalId:  '',
customField: '20061028-215129'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24165',
internalId:  '',
customField: '20061028-215234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24803',
internalId:  '',
customField: '20061028-215311'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24192',
internalId:  '',
customField: '20061028-215338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24219',
internalId:  '',
customField: '20061028-212716'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25103',
internalId:  '',
customField: '20090425-012617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24246',
internalId:  '',
customField: '20090425-012715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25130',
internalId:  '',
customField: '20061028-213123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24273',
internalId:  '',
customField: '20110209-231649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25157',
internalId:  '',
customField: '20090425-013031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24830',
internalId:  '',
customField: '20090425-013116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30402',
internalId:  '',
customField: '20061028-223208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16103',
internalId:  '',
customField: '20060330-200414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20503',
internalId:  '',
customField: '20061007-180143'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4587',
internalId:  '2550652',
customField: '1501'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE13A';
var companyName   = 'PATRICIA+NETO+-+ADVOGADA';
var htmlTitle	  = 'ADVOGADA+-+DRA.+PATRICIA+NETO';
var metaKeywords  = 'ADVOGADOS+ADVOGADA+ADVOGADO+Lisboa';
var metaContents  = 'ADVOGADA+-+DRA.+PATRICIA+NETO%3ACONSULTA+JUR%EF%BF%BDDICA%2C+PATROC%EF%BF%BDNIO+FORENSE%2C+ASSESSORIA+JUR%EF%BF%BDDICA+NAS+%EF%BF%BDREAS+DE+DIREITO+CIVIL%2C+DIREITO+OBRIGACIONAL%2C+DIREITO+DA+FAMILIA+E+SUCESS%EF%BF%BDES%2C+DIREITO+COMERCIAL%2CDIREITO+DO+TRABALHO%2CDIREITO+CRIMINAL%2C+COM+APOIO+PERSONALIZADO%2CATENCIOSO%2CC%EF%BF%BDLERE+E+ESPECIALIZADO.P%EF%BF%BDS-GRADUADA+EM+DIREITO+BANC%EF%BF%BDRIO%2C+DA+BOLSA+E+DOS+SEGUROS%3B+P%EF%BF%BDS-GRADUADA+EM+DIREITO+PENAL+ECON%EF%BF%BDMICO+E+EUROPEU%3B+P%EF%BF%BDS-GRADUADA+EM+DIREITO+FISCAL.';
					                                                                    
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 */					                                                            

