/* [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('Infusion+Homepage'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','62274',jdecode('Opening+Times%2FPrices'),jdecode(''),'/62274.html','true',[],''],
	['PAGE','85562',jdecode('Special+Events+Calendar'),jdecode(''),'/85562.html','true',[],''],
	['PAGE','63336',jdecode('Rules'),jdecode(''),'/63336.html','true',[],''],
	['PAGE','63467',jdecode('Inside+Infusion'),jdecode(''),'/63467/index.html','true',[ 
		['PAGE','73629',jdecode('Ground+Floor'),jdecode(''),'/63467/73629.html','true',[],''],
		['PAGE','73660',jdecode('First+Floor'),jdecode(''),'/63467/73660.html','true',[],'']
	],''],
	['PAGE','88558',jdecode('About+The+Owners'),jdecode(''),'/88558.html','true',[],''],
	['PAGE','63299',jdecode('FAQ'),jdecode(''),'/63299.html','true',[],''],
	['PAGE','89158',jdecode('Forum'),jdecode(''),'/89158.html','true',[],''],
	['PAGE','79832',jdecode('Survey+***+NEW+***'),jdecode(''),'/79832.html','true',[],''],
	['PAGE','88904',jdecode('Promotions'),jdecode(''),'/88904.html','true',[],''],
	['PAGE','71181',jdecode('Private+Club+Hire'),jdecode(''),'/71181.html','true',[],''],
	['PAGE','70919',jdecode('Membership+Form'),jdecode(''),'/70919.html','true',[],''],
	['PAGE','64967',jdecode('Find+Us%2FHotels'),jdecode(''),'/64967.html','true',[],''],
	['PAGE','71119',jdecode('Free+Newsletter'),jdecode(''),'/71119.html','true',[],''],
	['PAGE','77734',jdecode('Guestbook'),jdecode(''),'/77734/index.html','true',[ 
		['PAGE','77735',jdecode('Read+Guestbook'),jdecode(''),'/77734/77735.html','true',[],'']
	],''],
	['PAGE','71150',jdecode('MSN+Contact'),jdecode(''),'/71150.html','true',[],''],
	['PAGE','16334',jdecode('Contact+Us+Online'),jdecode(''),'/16334/index.html','true',[ 
		['PAGE','61518',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/16334/61518.html','false',[],'']
	],''],
	['PAGE','61601',jdecode('Links'),jdecode(''),'/61601/index.html','true',[ 
		['PAGE','74669',jdecode('More+Links'),jdecode(''),'/61601/74669.html','true',[],'']
	],''],
	['PAGE','81572',jdecode('Meet+Swingers+Here%21%21'),jdecode(''),'/81572.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Pain';
					                                                                    
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 */					                                                            

