/* [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','4599',jdecode('Home'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','4656',jdecode('About+us'),jdecode(''),'/4656/index.html','true',[ 
		['PAGE','4683',jdecode('The+Practice'),jdecode(''),'/4656/4683.html','true',[],''],
		['PAGE','4737',jdecode('Prices'),jdecode(''),'/4656/4737.html','true',[],''],
		['PAGE','8932',jdecode('Special+Offers'),jdecode(''),'/4656/8932.html','true',[],''],
		['PAGE','7025',jdecode('Appointments'),jdecode(''),'/4656/7025.html','true',[],''],
		['PAGE','4764',jdecode('How+To+Find+Us'),jdecode(''),'/4656/4764.html','true',[],'']
	],''],
	['PAGE','9025',jdecode('The+Team'),jdecode(''),'/9025/index.html','true',[ 
		['PAGE','7414',jdecode('David+Hutton'),jdecode(''),'/9025/7414.html','true',[],''],
		['PAGE','4710',jdecode('Taeona+Hutton'),jdecode(''),'/9025/4710.html','true',[],''],
		['PAGE','9056',jdecode('Anne+Baker'),jdecode(''),'/9025/9056.html','true',[],'']
	],''],
	['PAGE','8994',jdecode('Treatments'),jdecode(''),'/8994/index.html','true',[ 
		['PAGE','4818',jdecode('Osteopathy'),jdecode(''),'/8994/4818.html','true',[],''],
		['PAGE','4899',jdecode('Cranial+Osteopathy'),jdecode(''),'/8994/4899.html','true',[],''],
		['PAGE','4845',jdecode('Sports+Injuries'),jdecode(''),'/8994/4845.html','true',[],''],
		['PAGE','8532',jdecode('Massage'),jdecode(''),'/8994/8532.html','true',[],''],
		['PAGE','8501',jdecode('Reflexology'),jdecode(''),'/8994/8501.html','true',[],'']
	],''],
	['PAGE','9509',jdecode('Hot+%26+Cold+Packs'),jdecode(''),'/9509.html','true',[],''],
	['PAGE','8901',jdecode('Q%26A'),jdecode(''),'/8901/index.html','true',[ 
		['PAGE','9202',jdecode('Q%26A+%28follow+up+page%29'),jdecode(''),'/8901/9202.html','false',[],'']
	],''],
	['PAGE','8963',jdecode('Physical+Facts'),jdecode(''),'/8963.html','true',[],''],
	['PAGE','4980',jdecode('Contact+us'),jdecode(''),'/4980/index.html','true',[ 
		['PAGE','5007',jdecode('Telephone'),jdecode(''),'/4980/5007.html','true',[],''],
		['PAGE','5034',jdecode('E-mail'),jdecode(''),'/4980/5034/index.html','true',[ 
			['PAGE','7333',jdecode('E-mail+%28follow+up+page%29'),jdecode(''),'/4980/5034/7333.html','false',[],'']
		],'']
	],''],
	['PAGE','7353',jdecode('Links'),jdecode(''),'/7353.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            

