/* [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','4466',jdecode('Welcome'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','11001',jdecode('About+us'),jdecode(''),'/11001/index.html','true',[ 
		['PAGE','14801',jdecode('Funding'),jdecode(''),'/11001/14801.html','true',[],''],
		['PAGE','22846',jdecode('Annual+Report+2007-2008'),jdecode(''),'/11001/22846.html','true',[],''],
		['PAGE','21997',jdecode('Annual+Report+2006-7'),jdecode(''),'/11001/21997.html','true',[],''],
		['PAGE','21661',jdecode('Annual+Report+2005-6'),jdecode(''),'/11001/21661.html','true',[],''],
		['PAGE','19487',jdecode('Annual+Report+2004-5'),jdecode(''),'/11001/19487.html','true',[],''],
		['PAGE','14932',jdecode('Annual+report+2003-4'),jdecode(''),'/11001/14932.html','true',[],''],
		['PAGE','14901',jdecode('Annual+report+2002-3'),jdecode(''),'/11001/14901.html','true',[],'']
	],''],
	['PAGE','11156',jdecode('The+Longford+Lecture'),jdecode(''),'/11156/index.html','true',[ 
		['PAGE','12805',jdecode('The+Longford+Lecture+%28follow+up+page%29'),jdecode(''),'/11156/12805.html','false',[],''],
		['PAGE','15063',jdecode('Past+lectures'),jdecode(''),'/11156/15063.html','true',[],''],
		['PAGE','23237',jdecode('Sir+Hugh+Orde'),jdecode(''),'/11156/23237.html','true',[],''],
		['PAGE','22737',jdecode('The+2008+debate'),jdecode(''),'/11156/22737.html','true',[],''],
		['PAGE','21856',jdecode('President+Mary+McAleese'),jdecode(''),'/11156/21856.html','true',[],''],
		['PAGE','21698',jdecode('Clive+Stafford+Smith'),jdecode(''),'/11156/21698.html','true',[],''],
		['PAGE','19456',jdecode('Brenda+Hale+QC'),jdecode(''),'/11156/19456.html','true',[],''],
		['PAGE','11032',jdecode('Archbishop+Desmond+Tutu'),jdecode(''),'/11156/11032.html','true',[],''],
		['PAGE','15032',jdecode('Bishop+John+Santumu'),jdecode(''),'/11156/15032.html','true',[],''],
		['PAGE','15001',jdecode('Cherie+Booth+QC'),jdecode(''),'/11156/15001.html','true',[],'']
	],''],
	['PAGE','11187',jdecode('The+Longford+Prize'),jdecode(''),'/11187/index.html','true',[ 
		['PAGE','11063',jdecode('Past+prize+winners'),jdecode(''),'/11187/11063.html','true',[],'']
	],''],
	['PAGE','11125',jdecode('Scholarships'),jdecode(''),'/11125/index.html','true',[ 
		['PAGE','13202',jdecode('Scholarships+%28follow+up+page%29'),jdecode(''),'/11125/13202.html','false',[],''],
		['PAGE','19518',jdecode('Patrick+Pakenham+Awards'),jdecode(''),'/11125/19518.html','true',[],''],
		['PAGE','19549',jdecode('Scholars+Report+Back'),jdecode(''),'/11125/19549.html','true',[],'']
	],''],
	['PAGE','11094',jdecode('Contact+us'),jdecode(''),'/11094/index.html','true',[ 
		['PAGE','12602',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/11094/12602.html','false',[],'']
	],''],
	['PAGE','17501',jdecode('Press'),jdecode(''),'/17501.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
