/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','16403',jdecode('Contact+us'),jdecode(''),'/16403/index.html','true',[ 
		['PAGE','20151',jdecode('Annual+Sitting+2003+%28follow+up+page%29'),jdecode(''),'/16403/20151.html','false',[],'']
	],''],
	['PAGE','4655',jdecode('About+us'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','46854',jdecode('History'),jdecode(''),'/4655/46854.html','true',[],''],
		['PAGE','4682',jdecode('Board+of+Trustees'),jdecode(''),'/4655/4682.html','true',[],''],
		['PAGE','206067',jdecode('Procedures+Group'),jdecode(''),'/4655/206067.html','true',[],''],
		['PAGE','262379',jdecode('Staff'),jdecode(''),'/4655/262379.html','true',[],''],
		['PAGE','44154',jdecode('Founding+Father'),jdecode(''),'/4655/44154.html','true',[],''],
		['PAGE','96030',jdecode('Jobs'),jdecode(''),'/4655/96030.html','true',[],'']
	],''],
	['PAGE','179081',jdecode('Newsroom'),jdecode(''),'/179081.html','true',[],''],
	['PAGE','20418',jdecode('UKYP+in+your+area'),jdecode(''),'/20418/index.html','true',[ 
		['PAGE','33556',jdecode('Local+UKYP+websites'),jdecode(''),'/20418/33556.html','true',[],''],
		['PAGE','214330',jdecode('Elections'),jdecode(''),'/20418/214330.html','true',[],'']
	],''],
	['PAGE','213798',jdecode('Get+Involved'),jdecode(''),'/213798/index.html','true',[ 
		['PAGE','5411',jdecode('Useful+Links'),jdecode(''),'/213798/5411.html','true',[],'']
	],''],
	['PAGE','204867',jdecode('MYPs'),jdecode(''),'/204867/index.html','true',[ 
		['PAGE','204929',jdecode('How+to+become+an+MYP'),jdecode(''),'/204867/204929.html','true',[],''],
		['PAGE','191461',jdecode('MYP+Profiles'),jdecode(''),'/204867/191461.html','true',[],''],
		['PAGE','204898',jdecode('UKYP+Handbook'),jdecode(''),'/204867/204898.html','true',[],'']
	],''],
	['PAGE','240067',jdecode('UKYP+Online+Forums'),jdecode(''),'/240067.html','true',[],''],
	['PAGE','199561',jdecode('UKYP+TV'),jdecode(''),'/199561.html','true',[],''],
	['PAGE','174737',jdecode('Campaigns'),jdecode(''),'/174737.html','true',[],''],
	['PAGE','264979',jdecode('UKYP+Manifesto'),jdecode(''),'/264979/index.html','true',[ 
		['PAGE','217367',jdecode('UKYP+Manifesto+2008'),jdecode(''),'/264979/217367.html','true',[],''],
		['PAGE','240267',jdecode('UKYP+Manifesto+2007'),jdecode(''),'/264979/240267.html','true',[],''],
		['PAGE','177237',jdecode('UKYP+Manifesto+2005'),jdecode(''),'/264979/177237.html','true',[],''],
		['PAGE','132428',jdecode('UKYP+Manifesto+2004'),jdecode(''),'/264979/132428.html','true',[],''],
		['PAGE','177346',jdecode('UKYP+Manifesto+2003'),jdecode(''),'/264979/177346.html','true',[],'']
	],''],
	['PAGE','203361',jdecode('Debatable+Magazine'),jdecode(''),'/203361/index.html','true',[ 
		['PAGE','243879',jdecode('Advertising'),jdecode(''),'/203361/243879.html','true',[],'']
	],''],
	['PAGE','271808',jdecode('Annual+Sitting+2010'),jdecode(''),'/271808/index.html','true',[ 
		['PAGE','251579',jdecode('Annual+Sitting+2009'),jdecode(''),'/271808/251579.html','true',[],''],
		['PAGE','233767',jdecode('Annual+Sitting+2008'),jdecode(''),'/271808/233767.html','true',[],''],
		['PAGE','206267',jdecode('Annual+Sitting+2007'),jdecode(''),'/271808/206267.html','true',[],''],
		['PAGE','192808',jdecode('Annual+Sitting+2006'),jdecode(''),'/271808/192808.html','true',[],''],
		['PAGE','173737',jdecode('Annual+Sitting+2005'),jdecode(''),'/271808/173737.html','true',[],'']
	],''],
	['PAGE','252529',jdecode('UKYP+%40+House+of+Commons'),jdecode(''),'/252529.html','true',[],''],
	['PAGE','230567',jdecode('UKYP+%40+House+of+Lords'),jdecode(''),'/230567.html','true',[],''],
	['PAGE','264379',jdecode('Circles+of+Influence'),jdecode(''),'/264379/index.html','true',[ 
		['PAGE','240594',jdecode('Circles+of+Influence+2008'),jdecode(''),'/264379/240594.html','true',[],''],
		['PAGE','214982',jdecode('Circles+of+Influence+2007'),jdecode(''),'/264379/214982.html','true',[],''],
		['PAGE','190208',jdecode('Circles+of+Influence+2006'),jdecode(''),'/264379/190208.html','true',[],''],
		['PAGE','178237',jdecode('Circles+of+Influence+2005'),jdecode(''),'/264379/178237.html','true',[],'']
	],''],
	['PAGE','260379',jdecode('Projects'),jdecode(''),'/260379/index.html','true',[ 
		['PAGE','239067',jdecode('Project+Safe+Space'),jdecode(''),'/260379/239067.html','true',[],''],
		['PAGE','250879',jdecode('MWH+%26+UKYP+Awards+09-10'),jdecode(''),'/260379/250879.html','true',[],''],
		['PAGE','236467',jdecode('MWH+%26+UKYP+Awards+08-09'),jdecode(''),'/260379/236467.html','true',[],''],
		['PAGE','164337',jdecode('Seen+and+Heard+Awards'),jdecode(''),'/260379/164337.html','true',[],''],
		['PAGE','245179',jdecode('The+Youth+of+Today'),jdecode(''),'/260379/245179.html','true',[],'']
	],''],
	['PAGE','5465',jdecode('Organisation+Information'),jdecode(''),'/5465/index.html','true',[ 
		['PAGE','89039',jdecode('Copyright'),jdecode(''),'/5465/89039.html','true',[],''],
		['PAGE','88757',jdecode('Data+Protection'),jdecode(''),'/5465/88757.html','true',[],''],
		['PAGE','87830',jdecode('Privacy+Statement'),jdecode(''),'/5465/87830.html','true',[],''],
		['PAGE','88230',jdecode('Terms+and+Conditions'),jdecode(''),'/5465/88230.html','true',[],'']
	],''],
	['PAGE','176337',jdecode('Youth+Workers'),jdecode(''),'/176337/index.html','true',[ 
		['PAGE','188761',jdecode('Useful+Documents'),jdecode(''),'/176337/188761.html','true',[],''],
		['PAGE','177537',jdecode('Elections'),jdecode(''),'/176337/177537.html','true',[],''],
		['PAGE','214667',jdecode('Leaflets'),jdecode(''),'/176337/214667.html','true',[],''],
		['PAGE','203767',jdecode('UKYP+Handbook'),jdecode(''),'/176337/203767.html','true',[],''],
		['PAGE','188792',jdecode('Annual+Sitting+2010'),jdecode(''),'/176337/188792.html','true',[],''],
		['PAGE','181437',jdecode('Circles+of+Influence'),jdecode(''),'/176337/181437.html','true',[],''],
		['PAGE','226967',jdecode('House+of+Commons'),jdecode(''),'/176337/226967.html','true',[],''],
		['PAGE','223167',jdecode('Accreditation'),jdecode(''),'/176337/223167.html','true',[],'']
	],'']];
var siteelementCount=64;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
