/* [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','1111',jdecode('Home'),jdecode(''),'/1111.html','true',[],''],
	['PAGE','1233',jdecode('The+Charity'),jdecode(''),'/1233.html','true',[],''],
	['PAGE','72397',jdecode('Patients%26%23x27%3B+Stories'),jdecode(''),'/72397/index.html','true',[ 
		['PAGE','72473',jdecode('Lee+Barlow%26%23x27%3Bs+story'),jdecode(''),'/72397/72473.html','true',[],''],
		['PAGE','72597',jdecode('Elaine+Betts%26%23x27%3B+journey'),jdecode(''),'/72397/72597.html','true',[],''],
		['PAGE','73597',jdecode('Mr+Micawber%3F%3F'),jdecode(''),'/72397/73597.html','true',[],'']
	],''],
	['PAGE','1164',jdecode('The+Patient+Pages'),jdecode(''),'/1164/index.html','true',[ 
		['PAGE','61097',jdecode('The+anti+DIY+bug%21'),jdecode(''),'/1164/61097.html','true',[],''],
		['PAGE','64727',jdecode('The+Grumpy+Corner%21'),jdecode(''),'/1164/64727.html','true',[],''],
		['PAGE','64797',jdecode('Bloods'),jdecode(''),'/1164/64797.html','true',[],'']
	],''],
	['PAGE','65597',jdecode('The+Transplant+Games'),jdecode(''),'/65597/index.html','true',[ 
		['PAGE','65733',jdecode('Events'),jdecode(''),'/65597/65733.html','true',[],''],
		['PAGE','69881',jdecode('Games+Contact'),jdecode(''),'/65597/69881/index.html','true',[ 
			['PAGE','70005',jdecode('Games+Contact+%28follow+up+page%29'),jdecode(''),'/65597/69881/70005.html','false',[],'']
		],'']
	],''],
	['PAGE','19966',jdecode('Transplant++Facts%2FNews'),jdecode(''),'/19966.html','true',[],''],
	['PAGE','63297',jdecode('Dietician%26%23x27%3Bs+Corner'),jdecode(''),'/63297.html','true',[],''],
	['PAGE','68597',jdecode('Heart+Info'),jdecode(''),'/68597/index.html','true',[ 
		['PAGE','68628',jdecode('Assessment'),jdecode(''),'/68597/68628.html','true',[],''],
		['PAGE','68697',jdecode('Before+the+Op'),jdecode(''),'/68597/68697.html','true',[],''],
		['PAGE','68728',jdecode('Afterwards'),jdecode(''),'/68597/68728.html','true',[],''],
		['PAGE','68759',jdecode('Drug+Treatment'),jdecode(''),'/68597/68759.html','true',[],''],
		['PAGE','68790',jdecode('Complications'),jdecode(''),'/68597/68790.html','true',[],''],
		['PAGE','68821',jdecode('Going+Home'),jdecode(''),'/68597/68821.html','true',[],''],
		['PAGE','68852',jdecode('Lifestyle'),jdecode(''),'/68597/68852.html','true',[],''],
		['PAGE','68883',jdecode('Support'),jdecode(''),'/68597/68883.html','true',[],''],
		['PAGE','68914',jdecode('Acknowledgements'),jdecode(''),'/68597/68914.html','true',[],'']
	],''],
	['PAGE','66297',jdecode('Lung+Info'),jdecode(''),'/66297/index.html','true',[ 
		['PAGE','66328',jdecode('Assessment'),jdecode(''),'/66297/66328.html','true',[],''],
		['PAGE','66359',jdecode('Before+the+Op'),jdecode(''),'/66297/66359.html','true',[],''],
		['PAGE','66390',jdecode('Afterwards'),jdecode(''),'/66297/66390.html','true',[],''],
		['PAGE','66421',jdecode('Drug+Treatment'),jdecode(''),'/66297/66421.html','true',[],''],
		['PAGE','66452',jdecode('Complications'),jdecode(''),'/66297/66452.html','true',[],''],
		['PAGE','66483',jdecode('Going+Home'),jdecode(''),'/66297/66483.html','true',[],''],
		['PAGE','66514',jdecode('Lifestyle'),jdecode(''),'/66297/66514.html','true',[],''],
		['PAGE','66545',jdecode('Support'),jdecode(''),'/66297/66545.html','true',[],''],
		['PAGE','67793',jdecode('Acknowledgements'),jdecode(''),'/66297/67793.html','true',[],'']
	],''],
	['PAGE','1302',jdecode('Transplant+Research'),jdecode(''),'/1302/index.html','true',[ 
		['PAGE','1325',jdecode('The+Transplant+Lab'),jdecode(''),'/1302/1325.html','true',[],''],
		['PAGE','1348',jdecode('Presentations'),jdecode(''),'/1302/1348.html','true',[],''],
		['PAGE','70421',jdecode('Publications'),jdecode(''),'/1302/70421.html','true',[],'']
	],''],
	['PAGE','33771',jdecode('Referring+Physicians'),jdecode(''),'/33771/index.html','true',[ 
		['PAGE','13921',jdecode('Assessment+Criteria'),jdecode(''),'/33771/13921.html','true',[],''],
		['PAGE','20580',jdecode('Post-Op+Management'),jdecode(''),'/33771/20580.html','true',[],''],
		['PAGE','32730',jdecode('Immunosuppression'),jdecode(''),'/33771/32730.html','true',[],'']
	],''],
	['PAGE','1509',jdecode('Wythenshawe+Hospital'),jdecode(''),'/1509/index.html','true',[ 
		['PAGE','49799',jdecode('Transplant+Department'),jdecode(''),'/1509/49799.html','true',[],''],
		['PAGE','1578',jdecode('Contact'),jdecode(''),'/1509/1578.html','true',[],'']
	],''],
	['PAGE','74198',jdecode('Active+Guestbook'),jdecode(''),'/74198/index.html','true',[ 
		['PAGE','74199',jdecode('Read+Guestbook'),jdecode(''),'/74198/74199.html','true',[],'']
	],''],
	['PAGE','12821',jdecode('Guestbook+2003-05'),jdecode(''),'/12821/index.html','true',[ 
		['PAGE','12961',jdecode('Guestbook'),jdecode(''),'/12821/12961.html','false',[],''],
		['PAGE','13208',jdecode('Read+Guestbook'),jdecode(''),'/12821/13208.html','true',[],'']
	],''],
	['PAGE','5494',jdecode('Links'),jdecode(''),'/5494/index.html','true',[ 
		['PAGE','6868',jdecode('Feedback'),jdecode(''),'/5494/6868.html','true',[],''],
		['PAGE','6906',jdecode('Feedback'),jdecode(''),'/5494/6906.html','false',[],''],
		['PAGE','9594',jdecode('Terms+%26+Conditions'),jdecode(''),'/5494/9594.html','true',[],'']
	],'']];
var siteelementCount=56;
theSitetree.topTemplateName='Easy';
					                                                                    
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 */					                                                            

