/* [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','242630',jdecode('News'),jdecode(''),'/242630.html','true',[],''],
	['PAGE','297285',jdecode('Club+Policies'),jdecode(''),'/297285.html','true',[],''],
	['PAGE','43333',jdecode('Club+History'),jdecode(''),'/43333/index.html','true',[ 
		['PAGE','43736',jdecode('Club+honours'),jdecode(''),'/43333/43736.html','true',[],'']
	],''],
	['PAGE','34833',jdecode('Northern+Alliance'),jdecode(''),'/34833.html','true',[],''],
	['PAGE','32633',jdecode('Junior+Football'),jdecode(''),'/32633/index.html','true',[ 
		['PAGE','171661',jdecode('Girls+Under+10s'),jdecode(''),'/32633/171661.html','true',[],''],
		['PAGE','303466',jdecode('Girls+Under+12s'),jdecode(''),'/32633/303466.html','true',[],''],
		['PAGE','312375',jdecode('Girls+Under+12%26%23x27%3Bs+1970'),jdecode(''),'/32633/312375.html','true',[],''],
		['PAGE','312406',jdecode('Boys+Under+7s'),jdecode(''),'/32633/312406.html','true',[],''],
		['PAGE','312437',jdecode('Boys+Under+8%26%23x27%3Bs'),jdecode(''),'/32633/312437.html','true',[],''],
		['PAGE','312468',jdecode('Boys+Under+9s'),jdecode(''),'/32633/312468.html','true',[],''],
		['PAGE','32680',jdecode('Boys+Under+10s+'),jdecode(''),'/32633/32680.html','true',[],''],
		['PAGE','32753',jdecode('Boys+Under+11s'),jdecode(''),'/32633/32753.html','true',[],''],
		['PAGE','32722',jdecode('Boys+Under+11s+1970'),jdecode(''),'/32633/32722.html','true',[],''],
		['PAGE','111220',jdecode('Boys+Under+12s+'),jdecode(''),'/32633/111220.html','true',[],''],
		['PAGE','32833',jdecode('Boys+Under+14s'),jdecode(''),'/32633/32833.html','true',[],''],
		['PAGE','32895',jdecode('Boys+Under+16s'),jdecode(''),'/32633/32895.html','true',[],''],
		['PAGE','32926',jdecode('Boys+Under+16s++A'),jdecode(''),'/32633/32926.html','true',[],''],
		['PAGE','32957',jdecode('Boys+Under+16s+1970'),jdecode(''),'/32633/32957.html','true',[],''],
		['PAGE','33143',jdecode('Boys+Under+18s'),jdecode(''),'/32633/33143.html','true',[],''],
		['PAGE','33050',jdecode('Boys+Under+18s+1970'),jdecode(''),'/32633/33050.html','true',[],'']
	],''],
	['PAGE','49664',jdecode('Keith+Howlette+Trophy'),jdecode(''),'/49664/index.html','true',[ 
		['PAGE','118320',jdecode('Pictures'),jdecode(''),'/49664/118320.html','true',[],'']
	],''],
	['PAGE','263585',jdecode('Tournament'),jdecode(''),'/263585.html','true',[],''],
	['PAGE','303585',jdecode('Golf+Day'),jdecode(''),'/303585.html','true',[],''],
	['PAGE','16334',jdecode('Contact'),jdecode(''),'/16334.html','true',[],''],
	['PAGE','33764',jdecode('Links'),jdecode(''),'/33764.html','true',[],''],
	['PAGE','312185',jdecode('Sponsors'),jdecode(''),'/312185.html','true',[],''],
	['PAGE','97219',jdecode('Archives+'),jdecode(''),'/97219/index.html','true',[ 
		['PAGE','114924',jdecode('Lough+Farm'),jdecode(''),'/97219/114924.html','true',[],''],
		['PAGE','105619',jdecode('Presentation+Nights'),jdecode(''),'/97219/105619.html','true',[],''],
		['PAGE','76015',jdecode('Video+Clips'),jdecode(''),'/97219/76015.html','true',[],''],
		['PAGE','198471',jdecode('Sporting+Dinner+2007'),jdecode(''),'/97219/198471.html','true',[],''],
		['PAGE','135921',jdecode('Photo+Gallery'),jdecode(''),'/97219/135921.html','true',[],''],
		['PAGE','188562',jdecode('Northbank+images'),jdecode(''),'/97219/188562.html','true',[],''],
		['PAGE','54927',jdecode('Bob+Lancaster'),jdecode(''),'/97219/54927.html','true',[],''],
		['PAGE','57670',jdecode('Phil+Robinson'),jdecode(''),'/97219/57670.html','true',[],''],
		['PAGE','25806',jdecode('Gallery'),jdecode(''),'/97219/25806.html','true',[],''],
		['PAGE','81015',jdecode('Sporting+dinner+2006'),jdecode(''),'/97219/81015.html','true',[],''],
		['PAGE','103766',jdecode('Frenchfield+Festival'),jdecode(''),'/97219/103766.html','true',[],''],
		['PAGE','16253',jdecode('Sponsors'),jdecode(''),'/97219/16253.html','true',[],''],
		['PAGE','175374',jdecode('Features'),jdecode(''),'/97219/175374.html','true',[],''],
		['PAGE','141220',jdecode('Sporting+Dinner+2007'),jdecode(''),'/97219/141220.html','true',[],''],
		['PAGE','48833',jdecode('Northbank+People'),jdecode(''),'/97219/48833.html','true',[],''],
		['PAGE','16280',jdecode('News+Archive+140108'),jdecode(''),'/97219/16280.html','true',[],''],
		['PAGE','33174',jdecode('Boys+Under+10s'),jdecode(''),'/97219/33174.html','true',[],''],
		['PAGE','32864',jdecode('Boys+Under+11s'),jdecode(''),'/97219/32864.html','true',[],''],
		['PAGE','32988',jdecode('Boys+Under+14s'),jdecode(''),'/97219/32988.html','true',[],''],
		['PAGE','312085',jdecode('Boys+Under+12s'),jdecode(''),'/97219/312085.html','true',[],''],
		['PAGE','33112',jdecode('Boys+Under+18s'),jdecode(''),'/97219/33112.html','true',[],'']
	],'']];
var siteelementCount=52;
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 */					                                                            
