/* [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','11930',jdecode('Contact%2FAbout+Me'),jdecode(''),'/11930.html','true',[],''],
	['PAGE','11957',jdecode('Interesting+Links'),jdecode(''),'/11957.html','true',[],''],
	['PAGE','34702',jdecode('TR7+Rally+History'),jdecode(''),'/34702.html','true',[],''],
	['PAGE','63761',jdecode('Club+Triumph+Norfolk'),jdecode(''),'/63761/index.html','true',[ 
		['PAGE','65095',jdecode('CT+Norfolk+Area+Events+2010'),jdecode(''),'/63761/65095.html','true',[],''],
		['PAGE','97261',jdecode('Classic+Le+Mans'),jdecode(''),'/63761/97261.html','true',[],''],
		['PAGE','67461',jdecode('TRDC+2006+Event+Reports'),jdecode(''),'/63761/67461.html','true',[],''],
		['PAGE','72168',jdecode('CT+2007+Event+Reports'),jdecode(''),'/63761/72168.html','true',[],''],
		['PAGE','74861',jdecode('CT+2008+Event+Reports'),jdecode(''),'/63761/74861.html','true',[],''],
		['PAGE','81461',jdecode('CT+2009+Event+Reports'),jdecode(''),'/63761/81461.html','true',[],''],
		['PAGE','88661',jdecode('CT+2010+Event+Reports'),jdecode(''),'/63761/88661.html','true',[],''],
		['PAGE','83661',jdecode('La+Carrera+Caledonia'),jdecode(''),'/63761/83661.html','true',[],''],
		['PAGE','70464',jdecode('2006+TRDC+Norfolk+Members+Cars'),jdecode(''),'/63761/70464.html','true',[],'']
	],''],
	['PAGE','34740',jdecode('Restoration+DHC'),jdecode(''),'/34740/index.html','true',[ 
		['PAGE','35978',jdecode('Running+Gear+DHC'),jdecode(''),'/34740/35978.html','true',[],''],
		['PAGE','36482',jdecode('Engine+%26+Gearbox+DHC'),jdecode(''),'/34740/36482.html','true',[],''],
		['PAGE','55079',jdecode('Electrical+DHC'),jdecode(''),'/34740/55079.html','true',[],''],
		['PAGE','55488',jdecode('Final+Assy+DHC'),jdecode(''),'/34740/55488.html','true',[],'']
	],''],
	['PAGE','35633',jdecode('Narrow+Boating'),jdecode(''),'/35633/index.html','true',[ 
		['PAGE','94113',jdecode('2010+Journeys'),jdecode(''),'/35633/94113.html','true',[],'']
	],''],
	['PAGE','56479',jdecode('Events+Attended+'),jdecode(''),'/56479.html','true',[],''],
	['PAGE','61380',jdecode('FHC+Photo+Album'),jdecode(''),'/61380.html','true',[],''],
	['PAGE','62862',jdecode('DHC+Photo+Album'),jdecode(''),'/62862.html','true',[],''],
	['PAGE','59180',jdecode('Various+Photos'),jdecode(''),'/59180.html','true',[],''],
	['PAGE','79665',jdecode('Guestbook'),jdecode(''),'/79665/index.html','true',[ 
		['PAGE','79666',jdecode('Read+Guestbook'),jdecode(''),'/79665/79666.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Rectangle';
					                                                                    
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 */					                                                            
