/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','49676',jdecode('Trial+of++Drop+%26+Go+Approach.'),jdecode(''),'/49676.html','true',[],''],
	['PAGE','32495',jdecode('Introduction+to+the+school'),jdecode(''),'/32495/index.html','true',[ 
		['PAGE','32778',jdecode('The+School+Day'),jdecode(''),'/32495/32778.html','true',[],''],
		['PAGE','34278',jdecode('Curriculum'),jdecode(''),'/32495/34278.html','true',[],''],
		['PAGE','33259',jdecode('Admissions'),jdecode(''),'/32495/33259.html','true',[],''],
		['PAGE','33498',jdecode('Homework'),jdecode(''),'/32495/33498.html','true',[],''],
		['PAGE','6687',jdecode('School+Council'),jdecode(''),'/32495/6687.html','true',[],'']
	],''],
	['PAGE','4652',jdecode('The+Team'),jdecode(''),'/4652/index.html','true',[ 
		['PAGE','4679',jdecode('The+Teachers'),jdecode(''),'/4652/4679.html','true',[],''],
		['PAGE','45686',jdecode('The+Governors'),jdecode(''),'/4652/45686.html','true',[],''],
		['PAGE','6301',jdecode('Support+Staff'),jdecode(''),'/4652/6301.html','true',[],''],
		['PAGE','31690',jdecode('Administration+Staff'),jdecode(''),'/4652/31690.html','true',[],'']
	],''],
	['PAGE','4895',jdecode('News+%26++Information'),jdecode(''),'/4895/index.html','true',[ 
		['PAGE','48264',jdecode('Dates+for+Diary+2010'),jdecode(''),'/4895/48264.html','true',[],''],
		['PAGE','46896',jdecode('Prospective+Parents+Evening'),jdecode(''),'/4895/46896.html','true',[],''],
		['PAGE','36578',jdecode('News'),jdecode(''),'/4895/36578.html','true',[],''],
		['PAGE','36824',jdecode('Uniform'),jdecode(''),'/4895/36824.html','true',[],''],
		['PAGE','40956',jdecode('S.A.T.s+Results'),jdecode(''),'/4895/40956.html','true',[],''],
		['PAGE','41215',jdecode('Ofsted+Report'),jdecode(''),'/4895/41215.html','true',[],'']
	],''],
	['PAGE','4868',jdecode('Clubs'),jdecode(''),'/4868.html','true',[],''],
	['PAGE','39683',jdecode('Nursery'),jdecode(''),'/39683/index.html','true',[ 
		['PAGE','44276',jdecode('Nursery+News'),jdecode(''),'/39683/44276.html','true',[],''],
		['PAGE','49376',jdecode('Nursery+Daily+Programme'),jdecode(''),'/39683/49376.html','true',[],''],
		['PAGE','49480',jdecode('Nursery+Staff'),jdecode(''),'/39683/49480.html','true',[],''],
		['PAGE','49438',jdecode('Nursery+dates+for+2009-2010'),jdecode(''),'/39683/49438.html','true',[],''],
		['PAGE','49313',jdecode('Nursery+Policies'),jdecode(''),'/39683/49313.html','true',[],'']
	],''],
	['PAGE','6328',jdecode('The+Church'),jdecode(''),'/6328.html','true',[],''],
	['PAGE','34017',jdecode('Community+Links'),jdecode(''),'/34017.html','true',[],''],
	['PAGE','4733',jdecode('Le+Social+%28PTFA%29'),jdecode(''),'/4733.html','true',[],''],
	['PAGE','33740',jdecode('Children%26%23x27%3Bs+Work'),jdecode(''),'/33740.html','true',[],''],
	['PAGE','5409',jdecode('Guestbook'),jdecode(''),'/5409/index.html','true',[ 
		['PAGE','5410',jdecode('Read+Guestbook'),jdecode(''),'/5409/5410.html','true',[],'']
	],''],
	['PAGE','46176',jdecode('Fund+Raising+WebShop'),jdecode(''),'/46176.html','true',[],''],
	['PAGE','31078',jdecode('Contact'),jdecode(''),'/31078/index.html','true',[ 
		['PAGE','31225',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/31078/31225.html','false',[],'']
	],''],
	['PAGE','6802',jdecode('Directions'),jdecode(''),'/6802.html','true',[],''],
	['PAGE','50976',jdecode('May+Fayre+2010'),jdecode(''),'/50976.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            
