/* [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+Ground'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','115406',jdecode('Media+Centre'),jdecode(''),'/115406/index.html','true',[ 
		['PAGE','116204',jdecode('Village+Voice+%28follow+up+page%29'),jdecode(''),'/115406/116204.html','false',[],'']
	],''],
	['PAGE','140600',jdecode('1st+Team+Sponsors+'),jdecode(''),'/140600.html','true',[],''],
	['PAGE','144011',jdecode('Reserve+Sponsors'),jdecode(''),'/144011.html','true',[],''],
	['PAGE','118565',jdecode('The+Boardroom'),jdecode(''),'/118565/index.html','true',[ 
		['PAGE','118596',jdecode('Anthony+Kidd'),jdecode(''),'/118565/118596.html','true',[],'']
	],''],
	['PAGE','115137',jdecode('Players+Lounge'),jdecode(''),'/115137/index.html','true',[ 
		['PAGE','143431',jdecode('Players+Lounge+%28follow+up+page%29'),jdecode(''),'/115137/143431.html','false',[],'']
	],''],
	['PAGE','104696',jdecode('First+Team'),jdecode(''),'/104696/index.html','true',[ 
		['PAGE','115286',jdecode('Player+profiles%2Fstats'),jdecode(''),'/104696/115286.html','true',[],''],
		['PAGE','176614',jdecode('Match+reports+11%2F12'),jdecode(''),'/104696/176614.html','true',[],''],
		['PAGE','174919',jdecode('Fixtures%2FResults+11%2F12'),jdecode(''),'/104696/174919.html','true',[],''],
		['PAGE','115897',jdecode('League+Table'),jdecode(''),'/104696/115897.html','true',[],'']
	],''],
	['PAGE','156489',jdecode('First+Team+Archive'),jdecode(''),'/156489/index.html','true',[ 
		['PAGE','115240',jdecode('+Match+Reports+08%2F09'),jdecode(''),'/156489/115240.html','true',[],''],
		['PAGE','115765',jdecode('Fixtures%2Fresults+08%2F09'),jdecode(''),'/156489/115765.html','true',[],''],
		['PAGE','156551',jdecode('Season+Review+08%2F09'),jdecode(''),'/156489/156551.html','true',[],''],
		['PAGE','143471',jdecode('Match+Reports+09%2F10'),jdecode(''),'/156489/143471.html','true',[],''],
		['PAGE','140729',jdecode('Fixtures%2FResults+09%2F10'),jdecode(''),'/156489/140729.html','true',[],''],
		['PAGE','152283',jdecode('Match++Reports+10%2F11'),jdecode(''),'/156489/152283.html','true',[],''],
		['PAGE','152706',jdecode('Fixtures%2FResults+2010-11'),jdecode(''),'/156489/152706.html','true',[],'']
	],''],
	['PAGE','104727',jdecode('Reserves'),jdecode(''),'/104727/index.html','true',[ 
		['PAGE','115358',jdecode('Player+Profiles%2Fstats'),jdecode(''),'/104727/115358.html','true',[],''],
		['PAGE','115928',jdecode('League+Table'),jdecode(''),'/104727/115928.html','true',[],''],
		['PAGE','174950',jdecode('Fix%2FResults+11%2F12'),jdecode(''),'/104727/174950.html','true',[],'']
	],''],
	['PAGE','156520',jdecode('Reserves+Archive'),jdecode(''),'/156520/index.html','true',[ 
		['PAGE','115796',jdecode('Fixtures%2Fresults+08%2F09'),jdecode(''),'/156520/115796.html','true',[],''],
		['PAGE','115327',jdecode('Match+Reports+08%2F09'),jdecode(''),'/156520/115327.html','true',[],''],
		['PAGE','159325',jdecode('Season+Review+08%2F09'),jdecode(''),'/156520/159325.html','true',[],''],
		['PAGE','140760',jdecode('Fixtures%2FResults+09%2F10'),jdecode(''),'/156520/140760.html','true',[],''],
		['PAGE','143503',jdecode('Match+Reports+09%2F10'),jdecode(''),'/156520/143503.html','true',[],''],
		['PAGE','152783',jdecode('Res%2FFix+2010%2F11'),jdecode(''),'/156520/152783.html','true',[],''],
		['PAGE','152314',jdecode('Match+Reports+10%2F11'),jdecode(''),'/156520/152314.html','true',[],'']
	],''],
	['PAGE','135374',jdecode('Somerville+Cup+2009'),jdecode(''),'/135374.html','true',[],''],
	['PAGE','175133',jdecode('Presentation+Nights'),jdecode(''),'/175133/index.html','true',[ 
		['PAGE','141671',jdecode('Presentation+Night+09'),jdecode(''),'/175133/141671.html','true',[],''],
		['PAGE','175170',jdecode('Presentation+Nights+2010%2F11'),jdecode(''),'/175133/175170.html','true',[],'']
	],''],
	['PAGE','137771',jdecode('Photo+Gallery+2009'),jdecode(''),'/137771/index.html','true',[ 
		['PAGE','137802',jdecode('Copthorne+Rovers+09%2F05%2F09'),jdecode(''),'/137771/137802.html','true',[],'']
	],''],
	['PAGE','116881',jdecode('Club+Photos'),jdecode(''),'/116881.html','true',[],''],
	['PAGE','119965',jdecode('Club+Museum'),jdecode(''),'/119965.html','true',[],''],
	['PAGE','16280',jdecode('Club+History'),jdecode(''),'/16280/index.html','true',[ 
		['PAGE','101096',jdecode('Club+Hounours'),jdecode(''),'/16280/101096.html','true',[],''],
		['PAGE','101127',jdecode('Player+Honours'),jdecode(''),'/16280/101127.html','true',[],''],
		['PAGE','121047',jdecode('Club+Records'),jdecode(''),'/16280/121047.html','true',[],'']
	],''],
	['PAGE','104270',jdecode('Your+Shout'),jdecode(''),'/104270.html','true',[],''],
	['PAGE','115065',jdecode('Links'),jdecode(''),'/115065.html','true',[],''],
	['PAGE','16253',jdecode('Find+%26+Contact'),jdecode(''),'/16253/index.html','true',[ 
		['PAGE','103664',jdecode('How+to+find+us'),jdecode(''),'/16253/103664.html','true',[],''],
		['PAGE','103699',jdecode('Route+Planner'),jdecode(''),'/16253/103699.html','true',[],'']
	],''],
	['PAGE','110387',jdecode('Handcross+Tigers'),jdecode(''),'/110387/index.html','true',[ 
		['PAGE','122684',jdecode('Under+16%26%23x27%3Bs'),jdecode(''),'/110387/122684.html','true',[],''],
		['PAGE','110833',jdecode('Under+13%26%23x27%3Bs'),jdecode(''),'/110387/110833.html','true',[],''],
		['PAGE','122715',jdecode('Under+10%26%23x27%3Bs'),jdecode(''),'/110387/122715.html','true',[],''],
		['PAGE','144924',jdecode('Under+8%26%23x27%3Bs'),jdecode(''),'/110387/144924.html','true',[],''],
		['PAGE','110702',jdecode('Under+14%26%23x27%3Bs+2009-2010'),jdecode(''),'/110387/110702.html','true',[],''],
		['PAGE','110802',jdecode('Under+12%26%23x27%3Bs+2008-2009'),jdecode(''),'/110387/110802.html','true',[],'']
	],'']];
var siteelementCount=58;
theSitetree.topTemplateName='Card';
					                                                                    
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 */					                                                            

