/* [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','4717',jdecode('P%C3%A1gina+Inicial'),jdecode(''),'/4717.html','true',[],''],
	['PAGE','331529',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/331529.html','true',[],''],
	['PAGE','363964',jdecode('Areas+Juridicas'),jdecode(''),'/363964.html','true',[],''],
	['PAGE','364072',jdecode('Bibliografia'),jdecode(''),'/364072.html','true',[],''],
	['PAGE','363991',jdecode('Acidentes+de+Trabalho'),jdecode(''),'/363991.html','true',[],''],
	['PAGE','415301',jdecode('Doen%C3%A7as+Profissionais'),jdecode(''),'/415301.html','true',[],''],
	['PAGE','406230',jdecode('Direito+do+Trabalho'),jdecode(''),'/406230.html','true',[],''],
	['PAGE','324068',jdecode('Direito+Penal'),jdecode(''),'/324068.html','true',[],''],
	['PAGE','389902',jdecode('Direito+dos+Estrangeiros'),jdecode(''),'/389902.html','true',[],''],
	['PAGE','415322',jdecode('Direito+da+Familia'),jdecode(''),'/415322.html','true',[],''],
	['PAGE','415343',jdecode('Seguros'),jdecode(''),'/415343.html','true',[],''],
	['PAGE','350179',jdecode('C%C3%B3digos'),jdecode(''),'/350179/index.html','true',[ 
		['PAGE','401302',jdecode('Ficha+de+inscri%C3%A7%C3%A3o+%28volgende+pagina%29'),jdecode(''),'/350179/401302.html','false',[],'']
	],''],
	['PAGE','413263',jdecode('Novidades'),jdecode(''),'/413263.html','true',[],''],
	['PAGE','364180',jdecode('Legisla%C3%A7%C3%A3o'),jdecode(''),'/364180.html','true',[],''],
	['PAGE','413242',jdecode('Jurisprudencia'),jdecode(''),'/413242.html','true',[],''],
	['PAGE','333067',jdecode('Taxas+de+Juros'),jdecode(''),'/333067.html','true',[],''],
	['PAGE','415364',jdecode('Cidadania'),jdecode(''),'/415364.html','true',[],''],
	['PAGE','411755',jdecode('Pesquisa+Online'),jdecode(''),'/411755.html','true',[],''],
	['PAGE','415385',jdecode('Links+%2F+Liga%C3%A7oes'),jdecode(''),'/415385.html','true',[],''],
	['PAGE','319087',jdecode('Quem+somos'),jdecode(''),'/319087/index.html','true',[ 
		['PAGE','412843',jdecode('Onde+estamos'),jdecode(''),'/319087/412843.html','true',[],''],
		['PAGE','364585',jdecode('Colaboradores'),jdecode(''),'/319087/364585.html','true',[],''],
		['PAGE','415406',jdecode('Parcerias'),jdecode(''),'/319087/415406.html','true',[],''],
		['PAGE','319060',jdecode('Contacto'),jdecode(''),'/319087/319060.html','true',[],''],
		['PAGE','319114',jdecode('Ficha+t%C3%A9cnica'),jdecode(''),'/319087/319114.html','true',[],''],
		['PAGE','420306',jdecode('..'),jdecode(''),'/319087/420306.html','true',[],''],
		['PAGE','420301',jdecode('...'),jdecode(''),'/319087/420301.html','true',[],'']
	],''],
	['PAGE','420201',jdecode('Blog'),jdecode(''),'/420201.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2023';
theSitetree.keyvisualName='appointment.jpg';
theSitetree.fontsetId='338';
theSitetree.graphicsetId='391';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='990000';
var theTemplate={
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2023',
				keyvisualName: 	'appointment.jpg',
				fontsetId: 		'338',
				graphicsetId: 	'391',
				contentColor: 	'FFFFFF',
				contentBGColor: '990000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4717',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4717',
internalId:  '6215316',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '324068',
internalId:  '10a48f23697',
customField: 'Mistral'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '333067',
internalId:  '10ad32e4f95',
customField: 'g.12lf9ck5a.5kjusu9k1pbon.6rn80'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '401302',
internalId:  'aam010in37pi113877c2b25',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '350179',
internalId:  'aam010in37pi113877c2b25',
customField: ''
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '389902',
internalId:  '10bc884853b',
customField: 'g.12lf9ck5n.1dc2k36srl2j3.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4717',
internalId:  '',
customField: '20070814-160611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '364180',
internalId:  '',
customField: '20060601-143426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '319087',
internalId:  '',
customField: '20060601-144356'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '420201',
internalId:  '420201',
customField: 'language:pt;country:PT;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '420306',
internalId:  '420306aam010in37pi',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '420301',
internalId:  '420306aam010in37pi',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '413242',
internalId:  '',
customField: '20081217-000559'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415385',
internalId:  '',
customField: '20081217-005150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '364072',
internalId:  '',
customField: '20060601-143304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415364',
internalId:  '',
customField: '20081217-005150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '331529',
internalId:  '',
customField: '20060601-142940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '363964',
internalId:  '',
customField: '20060601-204833'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '363991',
internalId:  '',
customField: '20060601-143106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '406230',
internalId:  '',
customField: '20070709-143221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415301',
internalId:  '',
customField: '20081217-005150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415406',
internalId:  '',
customField: '20081217-005150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '412843',
internalId:  '',
customField: '20081217-000558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '420306',
internalId:  '',
customField: '20081217-010320'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN37PI';
var companyName   = 'VerbaLegis.net+-+Portal+de+Direito';
var htmlTitle	  = 'Verbalegis+-+Portal+de+Direito';
var metaKeywords  = 'direito+justica+portugal+lisboa+advogados+manuel+doria+vilar';
var metaContents  = 'direito+acidentes+trabalho+penal+familia+estrangeiros+verbalegis+portugal+advogados+doria+vilar+portal+doencas+profissionais+codigos+medicina+livros+bibliografia+calculos+pensoes';
					                                                                    
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 */					                                                            

