/* [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','4520',jdecode('Home'),jdecode(''),'/4520.html','true',[],''],
	['PAGE','4577',jdecode('About+PI%2B+Solicitors'),jdecode(''),'/4577.html','true',[],''],
	['PAGE','7303',jdecode('Types+Of+Dentistry'),jdecode(''),'/7303.html','true',[],''],
	['PAGE','6503',jdecode('What+Is+Dental+Negligence%3F'),jdecode(''),'/6503.html','true',[],''],
	['PAGE','6530',jdecode('Claims+Procedure'),jdecode(''),'/6530.html','true',[],''],
	['PAGE','28579',jdecode('Court+Procedure'),jdecode(''),'/28579.html','true',[],''],
	['PAGE','6557',jdecode('Time+Limits+For+Claims'),jdecode(''),'/6557.html','true',[],''],
	['PAGE','6584',jdecode('Damages+Explained'),jdecode(''),'/6584.html','true',[],''],
	['PAGE','7330',jdecode('Role+Of+The+GDC'),jdecode(''),'/7330.html','true',[],''],
	['PAGE','4631',jdecode('NoWin%2FNo+Fee'),jdecode(''),'/4631.html','true',[],''],
	['PAGE','7357',jdecode('Other+PI+Claims'),jdecode(''),'/7357/index.html','true',[ 
		['PAGE','10003',jdecode('Accidents+At+Work'),jdecode(''),'/7357/10003.html','true',[],''],
		['PAGE','10030',jdecode('Tripping+%26+Slipping'),jdecode(''),'/7357/10030.html','true',[],''],
		['PAGE','10057',jdecode('Road+Traffic+Accidents'),jdecode(''),'/7357/10057.html','true',[],'']
	],''],
	['PAGE','27301',jdecode('Caselaw'),jdecode(''),'/27301.html','true',[],''],
	['PAGE','27501',jdecode('Dental+Publications'),jdecode(''),'/27501.html','true',[],''],
	['PAGE','28001',jdecode('Clients+Comments'),jdecode(''),'/28001.html','true',[],''],
	['PAGE','28501',jdecode('Dental+Terminology'),jdecode(''),'/28501.html','true',[],''],
	['PAGE','28801',jdecode('Periodontal+%28gum%29+disease'),jdecode(''),'/28801.html','true',[],''],
	['PAGE','28919',jdecode('Fractured+Instruments'),jdecode(''),'/28919.html','true',[],''],
	['PAGE','20503',jdecode('Link+To+PI%2B+Solicitors'),jdecode(''),'/20503.html','true',[],''],
	['PAGE','18103',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/18103.html','true',[],''],
	['PAGE','4739',jdecode('Contact'),jdecode(''),'/4739/index.html','true',[ 
		['PAGE','25708',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/4739/25708.html','false',[],'']
	],''],
	['PAGE','29101',jdecode('Sitemap'),jdecode(''),'/29101.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Stripes';
					                                                                    
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 */					                                                            
