/* [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','4436',jdecode('HOME+PAGE'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','404834',jdecode('OAK+MEMBERSHIP'),jdecode(''),'/404834/index.html','true',[ 
		['PAGE','413145',jdecode('Members-Only+area+%28follow+up+page%29'),jdecode(''),'/404834/413145.html','false',[],'']
	],''],
	['PAGE','141594',jdecode('CLUB+RULES'),jdecode(''),'/141594.html','true',[],''],
	['PAGE','39265',jdecode('HONOURS'),jdecode(''),'/39265.html','true',[],''],
	['PAGE','154109',jdecode('FIXTURES'),jdecode(''),'/154109.html','true',[],''],
	['PAGE','365959',jdecode('FIRST+TEAM'),jdecode(''),'/365959.html','true',[],''],
	['PAGE','603967',jdecode('RESERVES'),jdecode(''),'/603967.html','true',[],''],
	['PAGE','473495',jdecode('UNDER+18'),jdecode(''),'/473495.html','true',[],''],
	['PAGE','473464',jdecode('UNDER+16'),jdecode(''),'/473464.html','true',[],''],
	['PAGE','154233',jdecode('UNDER+15'),jdecode(''),'/154233.html','true',[],''],
	['PAGE','154450',jdecode('UNDER+14'),jdecode(''),'/154450.html','true',[],''],
	['PAGE','154202',jdecode('UNDER+13'),jdecode(''),'/154202.html','true',[],''],
	['PAGE','154419',jdecode('UNDER+12'),jdecode(''),'/154419.html','true',[],''],
	['PAGE','154388',jdecode('UNDER+11'),jdecode(''),'/154388.html','true',[],''],
	['PAGE','154140',jdecode('UNDER+10'),jdecode(''),'/154140.html','true',[],''],
	['PAGE','154357',jdecode('UNDER+9'),jdecode(''),'/154357.html','true',[],''],
	['PAGE','568502',jdecode('UNDER+8'),jdecode(''),'/568502.html','true',[],''],
	['PAGE','575202',jdecode('UNDER+7'),jdecode(''),'/575202.html','true',[],''],
	['PAGE','606996',jdecode('UNDER+6'),jdecode(''),'/606996.html','true',[],''],
	['PAGE','25628',jdecode('OAK+ARCHIVE'),jdecode(''),'/25628.html','true',[],''],
	['PAGE','603125',jdecode('RECRUITMENT'),jdecode(''),'/603125/index.html','true',[ 
		['PAGE','603206',jdecode('New+page+%28follow+up+page%29'),jdecode(''),'/603125/603206.html','false',[],'']
	],''],
	['PAGE','585702',jdecode('OAK+SHOP'),jdecode(''),'/585702.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
