/* [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','4519',jdecode('Dados+Pessoais'),jdecode(''),'/4519.html','true',[],''],
	['PAGE','4802',jdecode('Dados+Curriculares'),jdecode(''),'/4802/index.html','true',[ 
		['PAGE','12302',jdecode('Situa%E7%E3o+Profissional'),jdecode(''),'/4802/12302.html','true',[],''],
		['PAGE','12329',jdecode('Actividade+Cient%EDfica'),jdecode(''),'/4802/12329.html','true',[],''],
		['PAGE','12356',jdecode('Actividade+Acad%E9mica'),jdecode(''),'/4802/12356.html','true',[],''],
		['PAGE','12383',jdecode('Actividade+Pedag%F3gica'),jdecode(''),'/4802/12383.html','true',[],''],
		['PAGE','12410',jdecode('Actividade+Editorial'),jdecode(''),'/4802/12410.html','true',[],''],
		['PAGE','12437',jdecode('Participa%E7%E3o+Institucional'),jdecode(''),'/4802/12437.html','true',[],''],
		['PAGE','12464',jdecode('Sociedades+Cient%EDficas'),jdecode(''),'/4802/12464.html','true',[],'']
	],''],
	['PAGE','12491',jdecode('Projectos'),jdecode(''),'/12491/index.html','true',[ 
		['PAGE','12802',jdecode('Obras+Completas+de+Arist%F3teles'),jdecode(''),'/12491/12802.html','true',[],''],
		['PAGE','12829',jdecode('Outros+Projectos'),jdecode(''),'/12491/12829.html','true',[],'']
	],''],
	['PAGE','4829',jdecode('Disciplinas+Leccionadas'),jdecode(''),'/4829/index.html','true',[ 
		['PAGE','4856',jdecode('Did%E1ctica+da+Filosofia'),jdecode(''),'/4829/4856.html','true',[],''],
		['PAGE','4883',jdecode('Pensamento+Pol%EDtico+Portugu%EAs+no+S%E9culo+XIX'),jdecode(''),'/4829/4883.html','true',[],'']
	],''],
	['PAGE','4910',jdecode('Trabalhos+Publicados'),jdecode(''),'/4910/index.html','true',[ 
		['PAGE','14402',jdecode('Livros'),jdecode(''),'/4910/14402.html','true',[],''],
		['PAGE','14429',jdecode('Obras+em+co-autoria'),jdecode(''),'/4910/14429.html','true',[],''],
		['PAGE','14456',jdecode('Participa%E7%E3o+em+obras+colectivas'),jdecode(''),'/4910/14456.html','true',[],''],
		['PAGE','14483',jdecode('Organiza%E7%E3o+de+obras+colectivas'),jdecode(''),'/4910/14483.html','true',[],''],
		['PAGE','14510',jdecode('Artigos'),jdecode(''),'/4910/14510.html','true',[],''],
		['PAGE','14537',jdecode('Escritos+sobre+a+Universidade'),jdecode(''),'/4910/14537.html','true',[],''],
		['PAGE','14564',jdecode('Tradu%E7%F5es'),jdecode(''),'/4910/14564.html','true',[],''],
		['PAGE','14591',jdecode('Trabalhos+Acad%E9micos'),jdecode(''),'/4910/14591.html','true',[],'']
	],''],
	['PAGE','4937',jdecode('Contactos'),jdecode(''),'/4937.html','true',[],''],
	['PAGE','10402',jdecode('Livro+de+visitas'),jdecode(''),'/10402/index.html','true',[ 
		['PAGE','10403',jdecode('Entradas'),jdecode(''),'/10402/10403.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
