/* [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'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','16226',jdecode('About+us'),jdecode(''),'/16226.html','true',[],''],
	['PAGE','16253',jdecode('Join+us'),jdecode(''),'/16253.html','true',[],''],
	['PAGE','16280',jdecode('Training'),jdecode(''),'/16280.html','true',[],''],
	['PAGE','16307',jdecode('Race+Diary'),jdecode(''),'/16307.html','true',[],''],
	['PAGE','19673',jdecode('Events'),jdecode(''),'/19673/index.html','true',[ 
		['PAGE','16334',jdecode('Pub+Run+Series'),jdecode(''),'/19673/16334.html','true',[],''],
		['PAGE','19704',jdecode('Club+Triathlon'),jdecode(''),'/19673/19704.html','true',[],''],
		['PAGE','32612',jdecode('Grayshott+Gallop'),jdecode(''),'/19673/32612.html','true',[],''],
		['PAGE','32643',jdecode('Clubs+Annual+General+Meeting'),jdecode(''),'/19673/32643.html','true',[],''],
		['PAGE','32674',jdecode('Clubs+Dinner+Dance'),jdecode(''),'/19673/32674.html','true',[],''],
		['PAGE','32913',jdecode('orienteering+'),jdecode(''),'/19673/32913.html','true',[],''],
		['PAGE','33012',jdecode('Boxingday+Hash'),jdecode(''),'/19673/33012.html','true',[],''],
		['PAGE','33043',jdecode('club+handicap+races'),jdecode(''),'/19673/33043.html','true',[],''],
		['PAGE','36729',jdecode('South+Downs+Relay'),jdecode(''),'/19673/36729.html','true',[],'']
	],''],
	['PAGE','17663',jdecode('Milland+Valley+Trail+Race'),jdecode(''),'/17663.html','true',[],''],
	['PAGE','29003',jdecode('milland+entry+form'),jdecode(''),'/29003.html','true',[],''],
	['PAGE','34512',jdecode('Milland+Race+Instructions'),jdecode(''),'/34512.html','true',[],''],
	['PAGE','18194',jdecode('Other+Hosted+Races'),jdecode(''),'/18194.html','true',[],''],
	['PAGE','17694',jdecode('Leagues'),jdecode(''),'/17694/index.html','true',[ 
		['PAGE','18225',jdecode('Today%26%23x27%3Bs+Runner+X-Country'),jdecode(''),'/17694/18225.html','true',[],''],
		['PAGE','31112',jdecode('todays+runner+instructions'),jdecode(''),'/17694/31112.html','true',[],''],
		['PAGE','18256',jdecode('Hampshire+League+X-Country'),jdecode(''),'/17694/18256.html','true',[],'']
	],''],
	['PAGE','18442',jdecode('Results+Archive'),jdecode(''),'/18442/index.html','true',[ 
		['PAGE','38924',jdecode('Rogate+Common+X+Co+2010+results'),jdecode(''),'/18442/38924.html','true',[],''],
		['PAGE','38312',jdecode('Milland+Valley+Trail+Race+2009'),jdecode(''),'/18442/38312.html','true',[],''],
		['PAGE','34212',jdecode('Milland+Valley+Trail+results+2008'),jdecode(''),'/18442/34212.html','true',[],''],
		['PAGE','32112',jdecode('todays+runner+x+country+2008'),jdecode(''),'/18442/32112.html','true',[],''],
		['PAGE','30312',jdecode('Milland+Valley+Trail+Race+2007'),jdecode(''),'/18442/30312.html','true',[],''],
		['PAGE','25901',jdecode('Milland+Valley+Trail+Race+2006'),jdecode(''),'/18442/25901.html','true',[],''],
		['PAGE','18318',jdecode('Milland+Valley+Trail+Race+2005'),jdecode(''),'/18442/18318.html','true',[],''],
		['PAGE','18287',jdecode('Milland+Valley+Trail+Race%2C+Other'),jdecode(''),'/18442/18287.html','true',[],''],
		['PAGE','38215',jdecode('Triathlon+Results+2009'),jdecode(''),'/18442/38215.html','true',[],''],
		['PAGE','30012',jdecode('Club+Triathlon+2007'),jdecode(''),'/18442/30012.html','true',[],''],
		['PAGE','26313',jdecode('Club+Triathlon+2006'),jdecode(''),'/18442/26313.html','true',[],''],
		['PAGE','22201',jdecode('Club+Triathlon+2005'),jdecode(''),'/18442/22201.html','true',[],''],
		['PAGE','21563',jdecode('Club+Triathlon+2004'),jdecode(''),'/18442/21563.html','true',[],''],
		['PAGE','21501',jdecode('Today%26%23x27%3Bs+Runner+XC+2005'),jdecode(''),'/18442/21501.html','true',[],''],
		['PAGE','21532',jdecode('Today%26%23x27%3Bs+Runner+XC%2C+Other'),jdecode(''),'/18442/21532.html','true',[],''],
		['PAGE','21594',jdecode('Trevor%26%23x27%3Bs+Chall+%26+H%26%23x27%3Bcap+2005'),jdecode(''),'/18442/21594.html','true',[],''],
		['PAGE','21625',jdecode('Trevor%26%23x27%3Bs+Chall+%26+H%26%23x27%3Bcap%2C+Other'),jdecode(''),'/18442/21625.html','true',[],''],
		['PAGE','21656',jdecode('Hants+%26+IoW+Games+2004'),jdecode(''),'/18442/21656.html','true',[],'']
	],''],
	['PAGE','18101',jdecode('Photo+Library'),jdecode(''),'/18101/index.html','true',[ 
		['PAGE','19201',jdecode('South+Downs+Relay+2005'),jdecode(''),'/18101/19201.html','true',[],'']
	],''],
	['PAGE','18132',jdecode('Contacts'),jdecode(''),'/18132.html','true',[],''],
	['PAGE','19102',jdecode('How+to+find+us'),jdecode(''),'/19102.html','true',[],''],
	['PAGE','18163',jdecode('Links'),jdecode(''),'/18163.html','true',[],''],
	['PAGE','39012',jdecode('Blackdown+Race'),jdecode(''),'/39012.html','true',[],'']];
var siteelementCount=48;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
