/* [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/index.html','true',[ 
		['PAGE','35944',jdecode('How+to+find+us'),jdecode(''),'/4436/35944.html','true',[],''],
		['PAGE','101570',jdecode('History'),jdecode(''),'/4436/101570.html','true',[],'']
	],''],
	['PAGE','35443',jdecode('Hall+Calendar'),jdecode(''),'/35443/index.html','true',[ 
		['PAGE','106379',jdecode('2006+Calendar+Pages'),jdecode(''),'/35443/106379.html','true',[],''],
		['PAGE','107179',jdecode('2007+Calendar+Pages'),jdecode(''),'/35443/107179.html','true',[],''],
		['PAGE','107210',jdecode('2008+Calendar+Pages'),jdecode(''),'/35443/107210.html','true',[],''],
		['PAGE','108943',jdecode('2009+Calendar+Pages'),jdecode(''),'/35443/108943.html','true',[],''],
		['PAGE','109943',jdecode('2010+Calendar+Pages'),jdecode(''),'/35443/109943.html','true',[],''],
		['PAGE','109975',jdecode('2011+Calendar+Pages'),jdecode(''),'/35443/109975.html','true',[],'']
	],''],
	['PAGE','28078',jdecode('Craft+Lodges'),jdecode(''),'/28078/index.html','true',[ 
		['PAGE','30167',jdecode('Almaston+Lodge'),jdecode(''),'/28078/30167.html','true',[],''],
		['PAGE','30198',jdecode('Barnaby+Rudge+Lodge'),jdecode(''),'/28078/30198.html','true',[],''],
		['PAGE','30260',jdecode('Canon%26%23x27%3Bs+Brook+Lodge'),jdecode(''),'/28078/30260.html','true',[],''],
		['PAGE','30291',jdecode('Deo+Confidimus+Lodge'),jdecode(''),'/28078/30291.html','true',[],''],
		['PAGE','30322',jdecode('Deo+Juvante+Floremus+Lodge'),jdecode(''),'/28078/30322.html','true',[],''],
		['PAGE','30353',jdecode('Essex+Border+Lodge'),jdecode(''),'/28078/30353.html','true',[],''],
		['PAGE','30384',jdecode('Eton+Manor+Lodge'),jdecode(''),'/28078/30384.html','true',[],''],
		['PAGE','30415',jdecode('Eureka+Lodge'),jdecode(''),'/28078/30415.html','true',[],''],
		['PAGE','30446',jdecode('Faircross+Lodge'),jdecode(''),'/28078/30446.html','true',[],''],
		['PAGE','28105',jdecode('Harlow+Lodge'),jdecode(''),'/28078/28105.html','true',[],''],
		['PAGE','29592',jdecode('Harlowbury+Lodge'),jdecode(''),'/28078/29592.html','true',[],''],
		['PAGE','30477',jdecode('Highstone+Lodge'),jdecode(''),'/28078/30477.html','true',[],''],
		['PAGE','30508',jdecode('Ixion+Lodge'),jdecode(''),'/28078/30508.html','true',[],''],
		['PAGE','30539',jdecode('Latton+Priory+Lodge'),jdecode(''),'/28078/30539.html','true',[],''],
		['PAGE','30229',jdecode('Lodge+of+Borrowed+Light'),jdecode(''),'/28078/30229.html','true',[],''],
		['PAGE','30570',jdecode('Monkhams+Lodge'),jdecode(''),'/28078/30570.html','true',[],''],
		['PAGE','30601',jdecode('Netteswell+Cross+Lodge'),jdecode(''),'/28078/30601.html','true',[],''],
		['PAGE','30632',jdecode('Newbury+Park+Lodge'),jdecode(''),'/28078/30632.html','true',[],''],
		['PAGE','30694',jdecode('Ongar+Lodge'),jdecode(''),'/28078/30694.html','true',[],''],
		['PAGE','30663',jdecode('North+Weald+Bassett+Lodge'),jdecode(''),'/28078/30663.html','true',[],''],
		['PAGE','30725',jdecode('Parndon+Magna+Lodge'),jdecode(''),'/28078/30725.html','true',[],''],
		['PAGE','30756',jdecode('Richard+Clowes+Lodge'),jdecode(''),'/28078/30756.html','true',[],''],
		['PAGE','30787',jdecode('Stondon+Massey+Lodge'),jdecode(''),'/28078/30787.html','true',[],''],
		['PAGE','30818',jdecode('Tutela+Lodge'),jdecode(''),'/28078/30818.html','true',[],''],
		['PAGE','30849',jdecode('West+Essex+Lodge'),jdecode(''),'/28078/30849.html','true',[],'']
	],''],
	['PAGE','29660',jdecode('Royal+Arch+Chapters'),jdecode(''),'/29660/index.html','true',[ 
		['PAGE','92783',jdecode('Borrowed+Light+Chapter+'),jdecode(''),'/29660/92783.html','true',[],''],
		['PAGE','92814',jdecode('Chapter+of+Stedfast+Unity'),jdecode(''),'/29660/92814.html','true',[],''],
		['PAGE','97355',jdecode('Essex+Quandrant+Chapter'),jdecode(''),'/29660/97355.html','true',[],''],
		['PAGE','30074',jdecode('Harlow+Chapter'),jdecode(''),'/29660/30074.html','true',[],''],
		['PAGE','92845',jdecode('High+Beach+Chapter'),jdecode(''),'/29660/92845.html','true',[],''],
		['PAGE','92876',jdecode('Ixion+Chapter'),jdecode(''),'/29660/92876.html','true',[],''],
		['PAGE','30136',jdecode('Latton+Priory+Chapter'),jdecode(''),'/29660/30136.html','true',[],''],
		['PAGE','30105',jdecode('Monkhams+Chapter'),jdecode(''),'/29660/30105.html','true',[],'']
	],''],
	['PAGE','91931',jdecode('Mark+Degree'),jdecode(''),'/91931/index.html','true',[ 
		['PAGE','92622',jdecode('Forest+of+Waltham+Lodge'),jdecode(''),'/91931/92622.html','true',[],''],
		['PAGE','91993',jdecode('Potters+Clay+Lodge'),jdecode(''),'/91931/91993.html','true',[],''],
		['PAGE','92653',jdecode('West+Ham+Lodge'),jdecode(''),'/91931/92653.html','true',[],'']
	],''],
	['PAGE','91962',jdecode('RAM+Degree'),jdecode(''),'/91962/index.html','true',[ 
		['PAGE','92715',jdecode('Forest+of+Waltham+Lodge'),jdecode(''),'/91962/92715.html','true',[],''],
		['PAGE','92684',jdecode('Potters+Clay+Lodge'),jdecode(''),'/91962/92684.html','true',[],''],
		['PAGE','92746',jdecode('West+Ham+Lodge'),jdecode(''),'/91962/92746.html','true',[],'']
	],''],
	['PAGE','98774',jdecode('Other+Degrees'),jdecode(''),'/98774/index.html','true',[ 
		['PAGE','98166',jdecode('Allied+Masonic+Degree'),jdecode(''),'/98774/98166.html','true',[],''],
		['PAGE','98128',jdecode('Ilford+St.+Mary+Chapter+RC'),jdecode(''),'/98774/98128.html','true',[],''],
		['PAGE','98197',jdecode('KT'),jdecode(''),'/98774/98197.html','true',[],''],
		['PAGE','98228',jdecode('KTP'),jdecode(''),'/98774/98228.html','true',[],''],
		['PAGE','98259',jdecode('Red+Cross+of+Constantine'),jdecode(''),'/98774/98259.html','true',[],''],
		['PAGE','99555',jdecode('Richard+de+Lucy+Chapel'),jdecode(''),'/98774/99555.html','true',[],''],
		['PAGE','98290',jdecode('Royal+%26+Select+Masters'),jdecode(''),'/98774/98290.html','true',[],''],
		['PAGE','91843',jdecode('SRIA'),jdecode(''),'/98774/91843.html','true',[],''],
		['PAGE','98097',jdecode('St.+Hugh+Chapter+Rose+Croix'),jdecode(''),'/98774/98097.html','true',[],'']
	],''],
	['PAGE','29623',jdecode('Events+%26+Publications'),jdecode(''),'/29623/index.html','true',[ 
		['PAGE','105304',jdecode('Craft+Cluster+Meeting+2006'),jdecode(''),'/29623/105304.html','true',[],''],
		['PAGE','30943',jdecode('Craft+Cluster+Meeting+2007'),jdecode(''),'/29623/30943.html','true',[],''],
		['PAGE','107670',jdecode('Craft+Cluster+Meeting+2008'),jdecode(''),'/29623/107670.html','true',[],''],
		['PAGE','30043',jdecode('Carol+Service+2006'),jdecode(''),'/29623/30043.html','true',[],''],
		['PAGE','107843',jdecode('Carol+Service+2007'),jdecode(''),'/29623/107843.html','true',[],''],
		['PAGE','108547',jdecode('Carol+Service+2008'),jdecode(''),'/29623/108547.html','true',[],''],
		['PAGE','105886',jdecode('Childrens+Christmas+Party+2008'),jdecode(''),'/29623/105886.html','true',[],''],
		['PAGE','106041',jdecode('%22The+Master%26%23x27%3Bs+Chair%22'),jdecode(''),'/29623/106041.html','true',[],''],
		['PAGE','106072',jdecode('%22History+of+Freemasonry+in+Essex%22'),jdecode(''),'/29623/106072.html','true',[],'']
	],''],
	['PAGE','36144',jdecode('Links'),jdecode(''),'/36144.html','true',[],''],
	['PAGE','100685',jdecode('Photographs'),jdecode(''),'/100685.html','true',[],''],
	['PAGE','104679',jdecode('Hall+Management+Changes'),jdecode(''),'/104679.html','true',[],'']];
var siteelementCount=76;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            
