/* [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+Page'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','114307',jdecode('Athletic+Clubs'),jdecode(''),'/114307/index.html','true',[ 
		['PAGE','29903',jdecode('Club+Call+A+to+G'),jdecode(''),'/114307/29903.html','true',[],''],
		['PAGE','29930',jdecode('Club+Call+H+to+N'),jdecode(''),'/114307/29930.html','true',[],''],
		['PAGE','29957',jdecode('Club+Call+O+to+S'),jdecode(''),'/114307/29957.html','true',[],''],
		['PAGE','29984',jdecode('Club+Call+T+to+Z'),jdecode(''),'/114307/29984.html','true',[],''],
		['PAGE','62305',jdecode('Official+Bodies+%28follow+up+page%29'),jdecode(''),'/114307/62305.html','false',[],'']
	],''],
	['PAGE','28553',jdecode('Shopping'),jdecode(''),'/28553.html','true',[],''],
	['PAGE','28526',jdecode('Running+Kit'),jdecode(''),'/28526/index.html','true',[ 
		['PAGE','124107',jdecode('Phiten'),jdecode(''),'/28526/124107.html','true',[],''],
		['PAGE','81907',jdecode('Product+Test'),jdecode(''),'/28526/81907.html','true',[],''],
		['PAGE','107207',jdecode('Hilly+Clothing+Company'),jdecode(''),'/28526/107207.html','true',[],''],
		['PAGE','107240',jdecode('Booby+Doo'),jdecode(''),'/28526/107240.html','true',[],'']
	],''],
	['PAGE','13875',jdecode('Running+Essentials'),jdecode(''),'/13875.html','true',[],''],
	['PAGE','163920',jdecode('Training+Zone'),jdecode(''),'/163920.html','true',[],''],
	['PAGE','71861',jdecode('Sports+Injury+Clinics'),jdecode(''),'/71861.html','true',[],''],
	['PAGE','25995',jdecode('Injury+and+Prevention'),jdecode(''),'/25995.html','true',[],''],
	['PAGE','31803',jdecode('Nutrition'),jdecode(''),'/31803.html','true',[],''],
	['PAGE','37730',jdecode('Races+-+Events+UK+'),jdecode(''),'/37730/index.html','true',[ 
		['PAGE','104807',jdecode('2012+Olympics'),jdecode(''),'/37730/104807.html','true',[],''],
		['PAGE','49603',jdecode('London+Marathon'),jdecode(''),'/37730/49603.html','true',[],'']
	],''],
	['PAGE','37757',jdecode('Races+Overseas+'),jdecode(''),'/37757.html','true',[],''],
	['PAGE','37703',jdecode('Travel+and+Breaks'),jdecode(''),'/37703/index.html','true',[ 
		['PAGE','125207',jdecode('The+Running+Inn'),jdecode(''),'/37703/125207.html','true',[],'']
	],''],
	['PAGE','25806',jdecode('Womens+Section'),jdecode(''),'/25806/index.html','true',[ 
		['PAGE','25941',jdecode('Womens+Running+Network'),jdecode(''),'/25806/25941.html','true',[],'']
	],''],
	['PAGE','90507',jdecode('Steves++Challenge'),jdecode(''),'/90507/index.html','true',[ 
		['PAGE','90538',jdecode('Steve%26%23x27%3Bs+Marathon%26%23x27%3Bs+401+-+422'),jdecode(''),'/90507/90538.html','true',[],''],
		['PAGE','136407',jdecode('Steves+Marathons+423+to+446'),jdecode(''),'/90507/136407.html','true',[],''],
		['PAGE','164620',jdecode('Steves+Marathons+447+-+461'),jdecode(''),'/90507/164620.html','true',[],''],
		['PAGE','180346',jdecode('Steves+Challenge+2009'),jdecode(''),'/90507/180346.html','true',[],'']
	],''],
	['PAGE','235220',jdecode('Steves+Challenge+2010'),jdecode(''),'/235220.html','true',[],''],
	['PAGE','41078',jdecode('Official+Bodies'),jdecode(''),'/41078.html','true',[],''],
	['PAGE','121807',jdecode('Adventure+Sports'),jdecode(''),'/121807.html','true',[],''],
	['PAGE','146361',jdecode('Triathalon'),jdecode(''),'/146361.html','true',[],''],
	['PAGE','46503',jdecode('Cycling'),jdecode(''),'/46503.html','true',[],''],
	['PAGE','25833',jdecode('Whizz+Kidz'),jdecode(''),'/25833/index.html','true',[ 
		['PAGE','27879',jdecode('Whizz+Kidz+%28follow+up+page%29'),jdecode(''),'/25833/27879.html','false',[],''],
		['PAGE','52357',jdecode('Whizz+Kidz+Gallery'),jdecode(''),'/25833/52357.html','true',[],'']
	],''],
	['PAGE','48503',jdecode('Charites'),jdecode(''),'/48503.html','true',[],''],
	['PAGE','121107',jdecode('Running+People'),jdecode(''),'/121107.html','true',[],''],
	['PAGE','34982',jdecode('Celebrities'),jdecode(''),'/34982.html','true',[],''],
	['PAGE','63503',jdecode('Running+Friends'),jdecode(''),'/63503.html','true',[],''],
	['PAGE','49711',jdecode('Testimonials'),jdecode(''),'/49711/index.html','true',[ 
		['PAGE','50319',jdecode('Nige+on+Athletics+%28follow+up+page%29'),jdecode(''),'/49711/50319.html','false',[],'']
	],''],
	['PAGE','71834',jdecode('Contact%2FFeedback'),jdecode(''),'/71834/index.html','true',[ 
		['PAGE','67382',jdecode('Feedback+%28follow+up+page%29'),jdecode(''),'/71834/67382.html','false',[],'']
	],''],
	['PAGE','28123',jdecode('Message+Board'),jdecode(''),'/28123/index.html','true',[ 
		['PAGE','28124',jdecode('Read+the+Message+Board'),jdecode(''),'/28123/28124.html','true',[],'']
	],''],
	['PAGE','90337',jdecode('About+TBA'),jdecode(''),'/90337/index.html','true',[ 
		['PAGE','27317',jdecode('Fanzine+%28follow+up+page%29'),jdecode(''),'/90337/27317.html','false',[],'']
	],''],
	['PAGE','114807',jdecode('Gallery'),jdecode(''),'/114807/index.html','true',[ 
		['PAGE','27974',jdecode('Halesowen+Team+Sisters+%28follow+up+page%29'),jdecode(''),'/114807/27974.html','false',[],''],
		['PAGE','28105',jdecode('TBA+Distance+Running++%28follow+up+page%29'),jdecode(''),'/114807/28105.html','false',[],''],
		['PAGE','45243',jdecode('News+%28follow+up+page%29'),jdecode(''),'/114807/45243.html','false',[],'']
	],''],
	['PAGE','165020',jdecode('Warley+Wods+Pacers+%28RiE%29'),jdecode(''),'/165020.html','true',[],''],
	['PAGE','156820',jdecode('News+Archive'),jdecode(''),'/156820.html','true',[],''],
	['PAGE','165051',jdecode('TBA+Distance+Running'),jdecode(''),'/165051.html','true',[],'']];
var siteelementCount=58;
theSitetree.topTemplateName='NewYork';
					                                                                    
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 */					                                                            
