/* [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','4596',jdecode('Home'),jdecode(''),'/4596.html','true',[],''],
	['PAGE','69900',jdecode('The+Bel%28l%29chamber%28s%29+Surname'),jdecode(''),'/69900.html','true',[],''],
	['PAGE','62300',jdecode('The+Belchamber+Forum'),jdecode(''),'/62300.html','true',[],''],
	['PAGE','4680',jdecode('My+Belchamber+family+history'),jdecode(''),'/4680.html','true',[],''],
	['PAGE','35262',jdecode('Edward+Belchamber+and+Mary+Stodman'),jdecode(''),'/35262.html','true',[],''],
	['PAGE','37460',jdecode('Edward+Belchamber+and+Mary+Boxall'),jdecode(''),'/37460.html','true',[],''],
	['PAGE','38060',jdecode('William+Belchamber+and+Elizabeth+Foyce'),jdecode(''),'/38060/index.html','true',[ 
		['PAGE','68200',jdecode('Edward+Belchamber+and+Elizabeth+Stenning'),jdecode(''),'/38060/68200.html','true',[],'']
	],''],
	['PAGE','38860',jdecode('James+Belchamber+and+Mary+Denyer'),jdecode(''),'/38860/index.html','true',[ 
		['PAGE','63600',jdecode('William+Belchamber+and+Eliza+Greenfield'),jdecode(''),'/38860/63600.html','true',[],'']
	],''],
	['PAGE','38360',jdecode('James+Belchamber+and+Jane+Downer'),jdecode(''),'/38360/index.html','true',[ 
		['PAGE','63631',jdecode('John+Belchamber+and+Sarah+Sopp'),jdecode(''),'/38360/63631.html','true',[],'']
	],''],
	['PAGE','45972',jdecode('James+Belchamber+and+Abigail+Pennicard'),jdecode(''),'/45972/index.html','true',[ 
		['PAGE','68000',jdecode('Frederick+Belchamber+and+Jane+Baker'),jdecode(''),'/45972/68000.html','true',[],'']
	],''],
	['PAGE','46039',jdecode('George+Belchamber+and+Kate+Horn'),jdecode(''),'/46039.html','true',[],''],
	['PAGE','19403',jdecode('Belchamber+Wills'),jdecode(''),'/19403.html','true',[],''],
	['PAGE','32461',jdecode('Guestbook'),jdecode(''),'/32461/index.html','true',[ 
		['PAGE','32462',jdecode('Read+Guestbook'),jdecode(''),'/32461/32462.html','true',[],'']
	],''],
	['PAGE','40661',jdecode('Photographs'),jdecode(''),'/40661.html','true',[],''],
	['PAGE','41764',jdecode('Belchamber+photo+album'),jdecode(''),'/41764.html','true',[],''],
	['PAGE','44560',jdecode('Bellencombre'),jdecode(''),'/44560.html','true',[],''],
	['PAGE','39360',jdecode('Claude+Leroy+Steeves+and+Ivy+Alice+Belchamber'),jdecode(''),'/39360.html','true',[],''],
	['PAGE','45460',jdecode('Ronald+Silas+Belchamber'),jdecode(''),'/45460.html','true',[],''],
	['PAGE','45760',jdecode('Canada+2001'),jdecode(''),'/45760.html','true',[],''],
	['PAGE','46184',jdecode('Research+Sources'),jdecode(''),'/46184.html','true',[],''],
	['PAGE','47372',jdecode('Postcards+of+Haslemere'),jdecode(''),'/47372.html','true',[],''],
	['PAGE','63373',jdecode('Belchamber+Photograph+Album'),jdecode(''),'/63373.html','true',[],''],
	['PAGE','67400',jdecode('The+Kirdford+Parish+Page'),jdecode(''),'/67400.html','true',[],''],
	['PAGE','68043',jdecode('James+Belchamber..Actor'),jdecode(''),'/68043.html','true',[],''],
	['PAGE','69700',jdecode('The+Belchambers+of+Slinfold+and+Horsham'),jdecode(''),'/69700.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Card';
					                                                                    
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 */					                                                            
