/* [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','4484',jdecode('Home'),jdecode(''),'/4484.html','true',[],''],
	['PAGE','4730',jdecode('Contact+Us'),jdecode(''),'/4730/index.html','true',[ 
		['PAGE','11940',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/4730/11940.html','false',[],'']
	],''],
	['PAGE','51680',jdecode('How+to+find+us'),jdecode(''),'/51680.html','true',[],''],
	['PAGE','8620',jdecode('Hours%2C+Bookings+%26+Cancellations'),jdecode(''),'/8620.html','true',[],''],
	['PAGE','20439',jdecode('Treatment+Times'),jdecode(''),'/20439.html','true',[],''],
	['PAGE','19506',jdecode('Facial+Therapy'),jdecode(''),'/19506.html','true',[],''],
	['PAGE','49279',jdecode('Xtreme+Lashes+'),jdecode(''),'/49279.html','true',[],''],
	['PAGE','50079',jdecode('Skincare+%26+Wedding+Make+Up'),jdecode(''),'/50079.html','true',[],''],
	['PAGE','6943',jdecode('Specialist+Massage'),jdecode(''),'/6943.html','true',[],''],
	['PAGE','17197',jdecode('Thermal+Body+Therapies'),jdecode(''),'/17197.html','true',[],''],
	['PAGE','46879',jdecode('Waxing'),jdecode(''),'/46879.html','true',[],''],
	['PAGE','50719',jdecode('Treatments+for+Men'),jdecode(''),'/50719.html','true',[],''],
	['PAGE','17224',jdecode('Hands+%26+Feet'),jdecode(''),'/17224.html','true',[],''],
	['PAGE','13338',jdecode('Couples+Treatments'),jdecode(''),'/13338.html','true',[],''],
	['PAGE','45180',jdecode('Personalised+Packages'),jdecode(''),'/45180.html','true',[],''],
	['PAGE','45304',jdecode('Hen+%26+Pamper+Parties'),jdecode(''),'/45304.html','true',[],''],
	['PAGE','6703',jdecode('Products+'),jdecode(''),'/6703.html','true',[],''],
	['PAGE','45242',jdecode('Gift+Vouchers'),jdecode(''),'/45242.html','true',[],''],
	['PAGE','45930',jdecode('Accommodation+in+Bath'),jdecode(''),'/45930.html','true',[],''],
	['PAGE','48279',jdecode('Special+Offers'),jdecode(''),'/48279.html','true',[],''],
	['PAGE','51728',jdecode('Guestbook'),jdecode(''),'/51728/index.html','true',[ 
		['PAGE','51729',jdecode('Read+Guestbook'),jdecode(''),'/51728/51729.html','true',[],'']
	],''],
	['PAGE','53179',jdecode('Botox++Clinic+with+Jill+Porter'),jdecode(''),'/53179.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Padma';
					                                                                    
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 */					                                                            
