/* [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+Page'),jdecode(''),'/1153.html','true',[],''],
	['PAGE','49513',jdecode('Latest+News%2C+AUGUST'),jdecode(''),'/49513.html','true',[],''],
	['PAGE','73409',jdecode('Newsletter+Spring%2FSummer+2010'),jdecode(''),'/73409/index.html','true',[ 
		['PAGE','70609',jdecode('Newsletter+Autumn%2FWinter+2009'),jdecode(''),'/73409/70609.html','true',[],''],
		['PAGE','68457',jdecode('Newsletter+Spring+2009'),jdecode(''),'/73409/68457.html','true',[],''],
		['PAGE','67009',jdecode('Winter+2008%2F2009+Newsletter'),jdecode(''),'/73409/67009.html','true',[],''],
		['PAGE','64384',jdecode('Autumn+2008+Newsletter'),jdecode(''),'/73409/64384.html','true',[],''],
		['PAGE','63022',jdecode('Winter+2007%2F8+Newsletter'),jdecode(''),'/73409/63022.html','true',[],'']
	],''],
	['PAGE','1495',jdecode('About+Penelope+Quest'),jdecode(''),'/1495.html','true',[],''],
	['PAGE','3795',jdecode('Books+by+Penelope+Quest'),jdecode(''),'/3795/index.html','true',[ 
		['PAGE','64909',jdecode('Living+the+Reiki+Way'),jdecode(''),'/3795/64909.html','true',[],''],
		['PAGE','57609',jdecode('The+Basics+of+Reiki'),jdecode(''),'/3795/57609.html','true',[],''],
		['PAGE','31552',jdecode('Self+Healing+With+Reiki'),jdecode(''),'/3795/31552.html','true',[],''],
		['PAGE','31579',jdecode('Reiki+For+Life'),jdecode(''),'/3795/31579.html','true',[],''],
		['PAGE','31606',jdecode('An+Introduction+To+Reiki'),jdecode(''),'/3795/31606.html','true',[],'']
	],''],
	['PAGE','1518',jdecode('About+Reiki+and+Healing'),jdecode(''),'/1518/index.html','true',[ 
		['PAGE','1895',jdecode('How+Do+You+Learn+Reiki%3F'),jdecode(''),'/1518/1895.html','true',[],''],
		['PAGE','43685',jdecode('What+Is+Healing%3F'),jdecode(''),'/1518/43685.html','true',[],''],
		['PAGE','44044',jdecode('3+Views+On+Health+%26+Healing'),jdecode(''),'/1518/44044.html','true',[],''],
		['PAGE','44293',jdecode('Body+Wisdom'),jdecode(''),'/1518/44293.html','true',[],''],
		['PAGE','43712',jdecode('What+Is+Energy%3F'),jdecode(''),'/1518/43712.html','true',[],''],
		['PAGE','43739',jdecode('The+Human+Energy+Field'),jdecode(''),'/1518/43739.html','true',[],'']
	],''],
	['PAGE','73109',jdecode('Self-Healing+Workshop+2010'),jdecode(''),'/73109.html','true',[],''],
	['PAGE','5298',jdecode('Reiki+1+Courses%2C+2010'),jdecode(''),'/5298.html','true',[],''],
	['PAGE','17439',jdecode('Reiki+2+Courses%2C+2010'),jdecode(''),'/17439.html','true',[],''],
	['PAGE','60909',jdecode('Reiki+Master+Training+2010'),jdecode(''),'/60909/index.html','true',[ 
		['PAGE','26046',jdecode('Preparing+For+The+Course'),jdecode(''),'/60909/26046.html','true',[],''],
		['PAGE','43766',jdecode('Master+Course+Content'),jdecode(''),'/60909/43766.html','true',[],''],
		['PAGE','26019',jdecode('About+Being+A+Reiki+Master'),jdecode(''),'/60909/26019.html','true',[],''],
		['PAGE','3595',jdecode('Karuna+Reiki+Master'),jdecode(''),'/60909/3595.html','true',[],'']
	],''],
	['PAGE','71033',jdecode('Shinpiden+Course+2010'),jdecode(''),'/71033.html','true',[],''],
	['PAGE','67309',jdecode('Summer+Solstice+Retreat+2010'),jdecode(''),'/67309/index.html','true',[ 
		['PAGE','74209',jdecode('Retreat+Programme'),jdecode(''),'/67309/74209.html','true',[],'']
	],''],
	['PAGE','67340',jdecode('Beltain+Retreat+2010'),jdecode(''),'/67340.html','true',[],''],
	['PAGE','26154',jdecode('Stanton+Guildhouse'),jdecode(''),'/26154.html','true',[],''],
	['PAGE','62626',jdecode('Caxton+House+'),jdecode(''),'/62626.html','true',[],''],
	['PAGE','71626',jdecode('2010+Book+of+the+Month'),jdecode(''),'/71626/index.html','true',[ 
		['PAGE','71657',jdecode('Book+for+January'),jdecode(''),'/71626/71657.html','true',[],''],
		['PAGE','71956',jdecode('Book+for+February'),jdecode(''),'/71626/71956.html','true',[],''],
		['PAGE','72409',jdecode('Book+for+March'),jdecode(''),'/71626/72409.html','true',[],''],
		['PAGE','73952',jdecode('Book+for+April'),jdecode(''),'/71626/73952.html','true',[],''],
		['PAGE','73983',jdecode('Book+for+May'),jdecode(''),'/71626/73983.html','true',[],''],
		['PAGE','74014',jdecode('Book+for+June'),jdecode(''),'/71626/74014.html','true',[],''],
		['PAGE','75129',jdecode('Book+for+July'),jdecode(''),'/71626/75129.html','true',[],''],
		['PAGE','75160',jdecode('Book+for+August'),jdecode(''),'/71626/75160.html','true',[],''],
		['PAGE','75191',jdecode('Book+for+September'),jdecode(''),'/71626/75191.html','true',[],'']
	],''],
	['PAGE','63727',jdecode('2009+Book+Of+The+Month+'),jdecode(''),'/63727/index.html','true',[ 
		['PAGE','67199',jdecode('Book+for+January'),jdecode(''),'/63727/67199.html','true',[],''],
		['PAGE','67230',jdecode('Book+for++February'),jdecode(''),'/63727/67230.html','true',[],''],
		['PAGE','64216',jdecode('Book+for+March'),jdecode(''),'/63727/64216.html','true',[],''],
		['PAGE','64247',jdecode('Book+for+April+'),jdecode(''),'/63727/64247.html','true',[],''],
		['PAGE','64322',jdecode('Book+for+May'),jdecode(''),'/63727/64322.html','true',[],''],
		['PAGE','64353',jdecode('Book+for+June'),jdecode(''),'/63727/64353.html','true',[],''],
		['PAGE','64940',jdecode('Book+for+July'),jdecode(''),'/63727/64940.html','true',[],''],
		['PAGE','64971',jdecode('Book+for+August+'),jdecode(''),'/63727/64971.html','true',[],''],
		['PAGE','66009',jdecode('Book+for+September+'),jdecode(''),'/63727/66009.html','true',[],''],
		['PAGE','66040',jdecode('Book+for+October'),jdecode(''),'/63727/66040.html','true',[],''],
		['PAGE','66071',jdecode('Book+for+November+'),jdecode(''),'/63727/66071.html','true',[],''],
		['PAGE','66102',jdecode('Book+for+December+'),jdecode(''),'/63727/66102.html','true',[],'']
	],''],
	['PAGE','41397',jdecode('Articles+by+Penelope+Quest'),jdecode(''),'/41397/index.html','true',[ 
		['PAGE','48052',jdecode('Self-Healing'),jdecode(''),'/41397/48052.html','true',[],''],
		['PAGE','52842',jdecode('Articles+in+%22Reiki+News%22'),jdecode(''),'/41397/52842.html','true',[],''],
		['PAGE','53809',jdecode('Reiki+With+Animals'),jdecode(''),'/41397/53809.html','true',[],''],
		['PAGE','53909',jdecode('Energetic+Cleansing+And+Protection'),jdecode(''),'/41397/53909.html','true',[],''],
		['PAGE','74918',jdecode('Dowsing+for+Energies'),jdecode(''),'/41397/74918.html','true',[],'']
	],'']];
var siteelementCount=65;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
