/* [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','4559',jdecode('Home'),jdecode(''),'/4559/index.html','true',[ 
		['PAGE','9714',jdecode('Contact+Us'),jdecode(''),'/4559/9714.html','true',[],''],
		['PAGE','12305',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/4559/12305.html','false',[],''],
		['PAGE','10101',jdecode('Club+History'),jdecode(''),'/4559/10101.html','true',[],''],
		['PAGE','10132',jdecode('Club+Officials'),jdecode(''),'/4559/10132.html','true',[],''],
		['PAGE','10201',jdecode('FA+Charter'),jdecode(''),'/4559/10201.html','true',[],''],
		['PAGE','10301',jdecode('Code+of+Conduct'),jdecode(''),'/4559/10301.html','true',[],''],
		['PAGE','10456',jdecode('Links'),jdecode(''),'/4559/10456.html','true',[],''],
		['PAGE','10394',jdecode('Season+2003-2004'),jdecode(''),'/4559/10394.html','true',[],''],
		['PAGE','137658',jdecode('Season+2004-2005'),jdecode(''),'/4559/137658.html','true',[],''],
		['PAGE','137012',jdecode('Season+2005-2006'),jdecode(''),'/4559/137012.html','true',[],''],
		['PAGE','138574',jdecode('Season+2006-2007'),jdecode(''),'/4559/138574.html','true',[],'']
	],''],
	['PAGE','139558',jdecode('Season+2007-08'),jdecode(''),'/139558.html','true',[],''],
	['PAGE','136558',jdecode('New+Players'),jdecode(''),'/136558.html','true',[],''],
	['PAGE','134501',jdecode('GoalKeepers'),jdecode(''),'/134501.html','true',[],''],
	['PAGE','133401',jdecode('Shop'),jdecode(''),'/133401.html','true',[],''],
	['PAGE','10425',jdecode('Directions'),jdecode(''),'/10425.html','true',[],''],
	['PAGE','131001',jdecode('Guest+Book'),jdecode(''),'/131001.html','true',[],''],
	['PAGE','10332',jdecode('Boys+Football'),jdecode(''),'/10332/index.html','true',[ 
		['PAGE','30008',jdecode('Boys+Football+%28follow+up+page%29'),jdecode(''),'/10332/30008.html','false',[],''],
		['PAGE','33632',jdecode('Boys+Under+6%26%23x27%3Bs'),jdecode(''),'/10332/33632.html','true',[],''],
		['PAGE','33601',jdecode('Boys+Under+7%26%23x27%3Bs'),jdecode(''),'/10332/33601.html','true',[],''],
		['PAGE','32901',jdecode('Boys+Under+8%26%23x27%3Bs'),jdecode(''),'/10332/32901.html','true',[],''],
		['PAGE','31907',jdecode('Boys+Under+9%26%23x27%3Bs'),jdecode(''),'/10332/31907.html','true',[],''],
		['PAGE','32932',jdecode('Boys+Under+10%26%23x27%3Bs'),jdecode(''),'/10332/32932.html','true',[],''],
		['PAGE','32963',jdecode('Boys+Under+11%26%23x27%3Bs'),jdecode(''),'/10332/32963.html','true',[],''],
		['PAGE','32994',jdecode('Boys+Under+12%26%23x27%3Bs'),jdecode(''),'/10332/32994.html','true',[],''],
		['PAGE','33025',jdecode('Boys+Under+13%26%23x27%3Bs'),jdecode(''),'/10332/33025.html','true',[],''],
		['PAGE','33101',jdecode('Boys+Under+14%26%23x27%3Bs'),jdecode(''),'/10332/33101.html','true',[],''],
		['PAGE','33132',jdecode('Boys+Under+15%26%23x27%3Bs'),jdecode(''),'/10332/33132.html','true',[],''],
		['PAGE','137514',jdecode('U16+Youth'),jdecode(''),'/10332/137514.html','true',[],''],
		['PAGE','137545',jdecode('U18+Youth'),jdecode(''),'/10332/137545.html','true',[],'']
	],''],
	['PAGE','10363',jdecode('Girls+Football'),jdecode(''),'/10363/index.html','true',[ 
		['PAGE','29802',jdecode('Girls+Football+%28follow+up+page%29'),jdecode(''),'/10363/29802.html','false',[],''],
		['PAGE','33301',jdecode('Girls+Under+8%26%23x27%3Bs'),jdecode(''),'/10363/33301.html','true',[],''],
		['PAGE','33332',jdecode('Girls+Under+10%26%23x27%3Bs'),jdecode(''),'/10363/33332.html','true',[],''],
		['PAGE','33363',jdecode('Girls+Under+12%26%23x27%3Bs'),jdecode(''),'/10363/33363.html','true',[],''],
		['PAGE','33394',jdecode('Girls+Under+14%26%23x27%3Bs'),jdecode(''),'/10363/33394.html','true',[],''],
		['PAGE','33425',jdecode('Girls+Under+16%26%23x27%3Bs'),jdecode(''),'/10363/33425.html','true',[],'']
	],''],
	['PAGE','139858',jdecode('St+Francis+in+Gambia'),jdecode(''),'/139858.html','true',[],''],
	['PAGE','139958',jdecode('Tournament+2010'),jdecode(''),'/139958.html','true',[],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Match';
					                                                                    
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 */					                                                            
