/* [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','1154',jdecode('Home'),jdecode(''),'/1154.html','true',[],''],
	['PAGE','11129',jdecode('How+to+Order'),jdecode(''),'/11129.html','true',[],''],
	['PAGE','14139',jdecode('Whats+New'),jdecode(''),'/14139.html','true',[],''],
	['PAGE','75638',jdecode('Newsletter'),jdecode(''),'/75638.html','true',[],''],
	['PAGE','11702',jdecode('Offers+Section'),jdecode(''),'/11702.html','true',[],''],
	['PAGE','1230',jdecode('League%2FCup+Homes'),jdecode(''),'/1230.html','true',[],''],
	['PAGE','1253',jdecode('League%2FCup+Aways'),jdecode(''),'/1253.html','true',[],''],
	['PAGE','1276',jdecode('Friendlies+'),jdecode(''),'/1276.html','true',[],''],
	['PAGE','1299',jdecode('Reserves+%26+Youth'),jdecode(''),'/1299.html','true',[],''],
	['PAGE','60139',jdecode('Finals+%26+Semi-finals'),jdecode(''),'/60139.html','true',[],''],
	['PAGE','4602',jdecode('Minor+Cups'),jdecode(''),'/4602.html','true',[],''],
	['PAGE','26248',jdecode('Leeds+Rd%2FGalpharm'),jdecode(''),'/26248.html','true',[],''],
	['PAGE','4683',jdecode('Tickets'),jdecode(''),'/4683.html','true',[],''],
	['PAGE','64538',jdecode('Books'),jdecode(''),'/64538.html','true',[],''],
	['PAGE','11102',jdecode('Fanzines+%26+News+'),jdecode(''),'/11102.html','true',[],''],
	['PAGE','18744',jdecode('Badges'),jdecode(''),'/18744.html','true',[],''],
	['PAGE','4656',jdecode('Cards+%26+Stickers'),jdecode(''),'/4656.html','true',[],''],
	['PAGE','47139',jdecode('Photographs'),jdecode(''),'/47139.html','true',[],''],
	['PAGE','54139',jdecode('DVDs%2FVideos'),jdecode(''),'/54139.html','true',[],''],
	['PAGE','187024',jdecode('Fixture+Cards'),jdecode(''),'/187024.html','true',[],''],
	['PAGE','69938',jdecode('Posters'),jdecode(''),'/69938.html','true',[],''],
	['PAGE','175924',jdecode('Replica+Shirts'),jdecode(''),'/175924.html','true',[],''],
	['PAGE','11156',jdecode('Wanted'),jdecode(''),'/11156.html','true',[],''],
	['PAGE','12603',jdecode('Whats+On'),jdecode(''),'/12603.html','true',[],''],
	['PAGE','68338',jdecode('Insurance'),jdecode(''),'/68338.html','true',[],''],
	['PAGE','19939',jdecode('Links'),jdecode(''),'/19939.html','true',[],''],
	['PAGE','9902',jdecode('Guestbook'),jdecode(''),'/9902/index.html','true',[ 
		['PAGE','9903',jdecode('Read+Guestbook'),jdecode(''),'/9902/9903.html','true',[],'']
	],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Enjoy';
					                                                                    
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 */					                                                            

