/* [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('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','75501',jdecode('Services+Under+Threat+%21%21%21%21%21'),jdecode(''),'/75501.html','true',[],''],
	['PAGE','16126',jdecode('About+us'),jdecode(''),'/16126/index.html','true',[ 
		['PAGE','26366',jdecode('Doctors'),jdecode(''),'/16126/26366.html','true',[],''],
		['PAGE','26397',jdecode('Nurses'),jdecode(''),'/16126/26397.html','true',[],''],
		['PAGE','26428',jdecode('Reception+staff'),jdecode(''),'/16126/26428.html','true',[],''],
		['PAGE','26459',jdecode('Behind+the+scenes'),jdecode(''),'/16126/26459.html','true',[],'']
	],''],
	['PAGE','26530',jdecode('Clinics'),jdecode(''),'/26530/index.html','true',[ 
		['PAGE','25963',jdecode('Antanatal+clinic'),jdecode(''),'/26530/25963.html','true',[],''],
		['PAGE','25994',jdecode('Aorta+screening'),jdecode(''),'/26530/25994.html','true',[],''],
		['PAGE','26025',jdecode('Asthma+clinic'),jdecode(''),'/26530/26025.html','true',[],''],
		['PAGE','26056',jdecode('Baby+clinic'),jdecode(''),'/26530/26056.html','true',[],''],
		['PAGE','26087',jdecode('COPD+clinic'),jdecode(''),'/26530/26087.html','true',[],''],
		['PAGE','26118',jdecode('Diabetes+clinic'),jdecode(''),'/26530/26118.html','true',[],''],
		['PAGE','26180',jdecode('Minor+Procedures'),jdecode(''),'/26530/26180.html','true',[],''],
		['PAGE','26211',jdecode('Over-75+clinic'),jdecode(''),'/26530/26211.html','true',[],''],
		['PAGE','26242',jdecode('Smoking+cessation'),jdecode(''),'/26530/26242.html','true',[],''],
		['PAGE','26849',jdecode('Travel+clinic'),jdecode(''),'/26530/26849.html','true',[],''],
		['PAGE','26273',jdecode('Ultrasound+clinic'),jdecode(''),'/26530/26273.html','true',[],''],
		['PAGE','26304',jdecode('Wart%2Fverruca+clinic'),jdecode(''),'/26530/26304.html','true',[],''],
		['PAGE','26335',jdecode('Well+man+clinic'),jdecode(''),'/26530/26335.html','true',[],''],
		['PAGE','26601',jdecode('Well+woman'),jdecode(''),'/26530/26601.html','true',[],'']
	],''],
	['PAGE','26933',jdecode('Services'),jdecode(''),'/26933/index.html','true',[ 
		['PAGE','26964',jdecode('District+nurses'),jdecode(''),'/26933/26964.html','true',[],''],
		['PAGE','26995',jdecode('Epilepsy+care'),jdecode(''),'/26933/26995.html','true',[],''],
		['PAGE','27026',jdecode('Health+visitors'),jdecode(''),'/26933/27026.html','true',[],''],
		['PAGE','71131',jdecode('Midwives'),jdecode(''),'/26933/71131.html','true',[],''],
		['PAGE','70518',jdecode('Phlebotomist'),jdecode(''),'/26933/70518.html','true',[],''],
		['PAGE','27088',jdecode('Physiotherapy'),jdecode(''),'/26933/27088.html','true',[],''],
		['PAGE','27119',jdecode('Psychology+service'),jdecode(''),'/26933/27119.html','true',[],'']
	],''],
	['PAGE','16153',jdecode('Flu+vaccination'),jdecode(''),'/16153.html','true',[],''],
	['PAGE','72207',jdecode('New+Childhood+Immunisations'),jdecode(''),'/72207.html','true',[],''],
	['PAGE','25932',jdecode('Teenage+heatlh'),jdecode(''),'/25932.html','true',[],''],
	['PAGE','28422',jdecode('Practice+Information'),jdecode(''),'/28422/index.html','true',[ 
		['PAGE','28454',jdecode('How+we+work'),jdecode(''),'/28422/28454.html','true',[],''],
		['PAGE','28485',jdecode('Out+of+hours'),jdecode(''),'/28422/28485.html','true',[],''],
		['PAGE','28516',jdecode('Repeat+prescription'),jdecode(''),'/28422/28516.html','true',[],''],
		['PAGE','28547',jdecode('Patient+forum'),jdecode(''),'/28422/28547.html','true',[],''],
		['PAGE','28578',jdecode('Complaints'),jdecode(''),'/28422/28578.html','true',[],'']
	],''],
	['PAGE','73101',jdecode('Doctors+time+table'),jdecode(''),'/73101.html','true',[],''],
	['PAGE','16180',jdecode('News'),jdecode(''),'/16180.html','true',[],''],
	['PAGE','16234',jdecode('Contact'),jdecode(''),'/16234.html','true',[],''],
	['PAGE','27606',jdecode('Feed-back'),jdecode(''),'/27606/index.html','true',[ 
		['PAGE','28202',jdecode('Feed-back+%28follow+up+page%29'),jdecode(''),'/27606/28202.html','false',[],'']
	],''],
	['PAGE','74138',jdecode('DNA%26%23x27%3Bs'),jdecode(''),'/74138.html','true',[],''],
	['PAGE','74201',jdecode('Research'),jdecode(''),'/74201.html','true',[],''],
	['PAGE','75801',jdecode('Yellow+Fever'),jdecode(''),'/75801.html','true',[],'']];
var siteelementCount=47;
theSitetree.topTemplateName='Aeskulap';
					                                                                    
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 */					                                                            

