/* [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','1153',jdecode('Home'),jdecode(''),'/1153.html','true',[],''],
	['PAGE','93042',jdecode('Site+Updates'),jdecode(''),'/93042/index.html','true',[ 
		['PAGE','804146',jdecode('Notice'),jdecode(''),'/93042/804146.html','true',[],'']
	],''],
	['PAGE','546999',jdecode('Notices'),jdecode(''),'/546999.html','true',[],''],
	['PAGE','2597',jdecode('English+Cathedrals'),jdecode(''),'/2597.html','true',[],''],
	['PAGE','110469',jdecode('Collegiate+Churches'),jdecode(''),'/110469.html','true',[],''],
	['PAGE','110794',jdecode('Royal+Peculiars'),jdecode(''),'/110794.html','true',[],''],
	['PAGE','109357',jdecode('Abbeys'),jdecode(''),'/109357.html','true',[],''],
	['PAGE','4210',jdecode('Scottish+Cathedrals'),jdecode(''),'/4210.html','true',[],''],
	['PAGE','4233',jdecode('Welsh+Cathedrals'),jdecode(''),'/4233.html','true',[],''],
	['PAGE','15794',jdecode('Catholic+Cathedrals+'),jdecode(''),'/15794.html','true',[],''],
	['PAGE','70134',jdecode('Church+of+Ireland+'),jdecode(''),'/70134.html','true',[],''],
	['PAGE','2643',jdecode('Parish+Church+Choirs'),jdecode(''),'/2643.html','true',[],''],
	['PAGE','19194',jdecode('University+College+Choirs'),jdecode(''),'/19194.html','true',[],''],
	['PAGE','38694',jdecode('Other+Choirs'),jdecode(''),'/38694.html','true',[],''],
	['PAGE','321818',jdecode('Cathedral+%2F+Choir+Schools'),jdecode(''),'/321818.html','true',[],''],
	['PAGE','78654',jdecode('Cathedral+Organists'),jdecode(''),'/78654.html','true',[],''],
	['PAGE','71457',jdecode('Historical+Landmarks'),jdecode(''),'/71457.html','true',[],''],
	['PAGE','72576',jdecode('Choirs+of+olden+times'),jdecode(''),'/72576.html','true',[],''],
	['PAGE','72710',jdecode('Zechariah+Buck'),jdecode(''),'/72710.html','true',[],''],
	['PAGE','78681',jdecode('Historic+Links'),jdecode(''),'/78681/index.html','true',[ 
		['PAGE','1206',jdecode('News+Archive.+1992+-+'),jdecode(''),'/78681/1206.html','true',[],''],
		['PAGE','194895',jdecode('News+Archive.+2003'),jdecode(''),'/78681/194895.html','true',[],''],
		['PAGE','269524',jdecode('News+Archive.+2004'),jdecode(''),'/78681/269524.html','true',[],''],
		['PAGE','435028',jdecode('News+Archive.+2005'),jdecode(''),'/78681/435028.html','true',[],''],
		['PAGE','527296',jdecode('News+Archive.+2006'),jdecode(''),'/78681/527296.html','true',[],''],
		['PAGE','609375',jdecode('News+Archive.+2007'),jdecode(''),'/78681/609375.html','true',[],''],
		['PAGE','693604',jdecode('News+Archive.+2008'),jdecode(''),'/78681/693604.html','true',[],''],
		['PAGE','776046',jdecode('News+Archive+2009'),jdecode(''),'/78681/776046.html','true',[],'']
	],''],
	['PAGE','844646',jdecode('News+Archive+2010'),jdecode(''),'/844646.html','true',[],''],
	['PAGE','23601',jdecode('Support+'),jdecode(''),'/23601.html','true',[],''],
	['PAGE','1367',jdecode('Radio+%2F+TV+Broadcasts'),jdecode(''),'/1367.html','true',[],''],
	['PAGE','93867',jdecode('CHORAL+EVENSONG'),jdecode(''),'/93867.html','true',[],''],
	['PAGE','558630',jdecode('Audio+%2F+Video+Links'),jdecode(''),'/558630.html','true',[],''],
	['PAGE','1344',jdecode('Articles+%2F+interesting+links'),jdecode(''),'/1344/index.html','true',[ 
		['PAGE','99743',jdecode('Articles+'),jdecode(''),'/1344/99743.html','true',[],''],
		['PAGE','105548',jdecode('Sir+David+Willcocks'),jdecode(''),'/1344/105548.html','true',[],''],
		['PAGE','122542',jdecode('Carols+from+Kings'),jdecode(''),'/1344/122542.html','true',[],''],
		['PAGE','217351',jdecode('Treble+Chants'),jdecode(''),'/1344/217351.html','true',[],''],
		['PAGE','279482',jdecode('Indentity%2C+conflict%2C+etc'),jdecode(''),'/1344/279482.html','true',[],''],
		['PAGE','429878',jdecode('Evensong'),jdecode(''),'/1344/429878.html','true',[],''],
		['PAGE','522296',jdecode('The+Chorister+Thing'),jdecode(''),'/1344/522296.html','true',[],''],
		['PAGE','538765',jdecode('A+Spiritual+Song'),jdecode(''),'/1344/538765.html','true',[],''],
		['PAGE','547732',jdecode('Cathedral'),jdecode(''),'/1344/547732.html','true',[],''],
		['PAGE','618733',jdecode('Choirmasters+Dilemma'),jdecode(''),'/1344/618733.html','true',[],'']
	],''],
	['PAGE','1321',jdecode('Magazines'),jdecode(''),'/1321.html','true',[],''],
	['PAGE','415778',jdecode('Discographies'),jdecode(''),'/415778.html','true',[],''],
	['PAGE','47512',jdecode('Church+Music+Composers'),jdecode(''),'/47512.html','true',[],''],
	['PAGE','42594',jdecode('Organ+Builders'),jdecode(''),'/42594.html','true',[],''],
	['PAGE','542708',jdecode('Organ+Recitals'),jdecode(''),'/542708.html','true',[],''],
	['PAGE','23194',jdecode('Books'),jdecode(''),'/23194.html','true',[],''],
	['PAGE','57434',jdecode('Choir+Tours+%2F+Concerts'),jdecode(''),'/57434/index.html','true',[ 
		['PAGE','224681',jdecode('Concert+Reviews'),jdecode(''),'/57434/224681.html','true',[],''],
		['PAGE','464007',jdecode('Concert+Review'),jdecode(''),'/57434/464007.html','true',[],''],
		['PAGE','509815',jdecode('Concert+Review'),jdecode(''),'/57434/509815.html','true',[],'']
	],''],
	['PAGE','23018',jdecode('Other+related+links'),jdecode(''),'/23018.html','true',[],''],
	['PAGE','218781',jdecode('A+Page+for+Young+People'),jdecode(''),'/218781.html','true',[],''],
	['PAGE','615607',jdecode('Contact'),jdecode(''),'/615607.html','true',[],'']];
var siteelementCount=58;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
