/* [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('Dorset+Link+Home'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','60460',jdecode('Attractions'),jdecode(''),'/4436/60460.html','true',[],''],
		['PAGE','30705',jdecode('News'),jdecode(''),'/4436/30705.html','true',[],''],
		['PAGE','30674',jdecode('Weather'),jdecode(''),'/4436/30674.html','true',[],''],
		['PAGE','30767',jdecode('TV++%26+Radio'),jdecode(''),'/4436/30767.html','true',[],''],
		['PAGE','30736',jdecode('Music'),jdecode(''),'/4436/30736.html','true',[],''],
		['PAGE','25624',jdecode('Tourist+Information+'),jdecode(''),'/4436/25624.html','true',[],''],
		['PAGE','75706',jdecode('Travel'),jdecode(''),'/4436/75706.html','true',[],'']
	],''],
	['PAGE','16126',jdecode('Community+Info'),jdecode(''),'/16126/index.html','true',[ 
		['PAGE','61284',jdecode('Police'),jdecode(''),'/16126/61284.html','true',[],''],
		['PAGE','61315',jdecode('Community+'),jdecode(''),'/16126/61315.html','true',[],''],
		['PAGE','61346',jdecode('Doctors'),jdecode(''),'/16126/61346.html','true',[],''],
		['PAGE','61377',jdecode('Councils'),jdecode(''),'/16126/61377.html','true',[],''],
		['PAGE','61408',jdecode('Hospitals'),jdecode(''),'/16126/61408.html','true',[],'']
	],''],
	['PAGE','59092',jdecode('Computers'),jdecode(''),'/59092/index.html','true',[ 
		['PAGE','85032',jdecode('Internet+Cafe'),jdecode(''),'/59092/85032.html','true',[],''],
		['PAGE','85063',jdecode('Games'),jdecode(''),'/59092/85063.html','true',[],''],
		['PAGE','85094',jdecode('Maintenance'),jdecode(''),'/59092/85094.html','true',[],''],
		['PAGE','67984',jdecode('Search+Eng'),jdecode(''),'/59092/67984.html','true',[],''],
		['PAGE','85125',jdecode('Web+Design'),jdecode(''),'/59092/85125.html','true',[],'']
	],''],
	['PAGE','16180',jdecode('Education'),jdecode(''),'/16180/index.html','true',[ 
		['PAGE','68884',jdecode('Adult+'),jdecode(''),'/16180/68884.html','true',[],''],
		['PAGE','68915',jdecode('Colleges'),jdecode(''),'/16180/68915.html','true',[],''],
		['PAGE','68946',jdecode('Infant'),jdecode(''),'/16180/68946.html','true',[],''],
		['PAGE','69284',jdecode('Junior'),jdecode(''),'/16180/69284.html','true',[],''],
		['PAGE','69315',jdecode('Primary'),jdecode(''),'/16180/69315.html','true',[],''],
		['PAGE','69346',jdecode('Secondary'),jdecode(''),'/16180/69346.html','true',[],'']
	],''],
	['PAGE','16207',jdecode('Employment'),jdecode(''),'/16207/index.html','true',[ 
		['PAGE','84815',jdecode('Job+Centres'),jdecode(''),'/16207/84815.html','true',[],''],
		['PAGE','84784',jdecode('Personnel'),jdecode(''),'/16207/84784.html','true',[],''],
		['PAGE','84846',jdecode('Training'),jdecode(''),'/16207/84846.html','true',[],'']
	],''],
	['PAGE','25655',jdecode('Entertainment+'),jdecode(''),'/25655/index.html','true',[ 
		['PAGE','25810',jdecode('Art+Galleries+'),jdecode(''),'/25655/25810.html','true',[],''],
		['PAGE','25686',jdecode('Cinemas'),jdecode(''),'/25655/25686.html','true',[],''],
		['PAGE','25748',jdecode('Night+Clubs'),jdecode(''),'/25655/25748.html','true',[],''],
		['PAGE','25717',jdecode('Dorset+Pubs'),jdecode(''),'/25655/25717.html','true',[],''],
		['PAGE','25779',jdecode('Restaurants'),jdecode(''),'/25655/25779.html','true',[],'']
	],''],
	['PAGE','16234',jdecode('Financial+%26+Legal'),jdecode(''),'/16234/index.html','true',[ 
		['PAGE','78115',jdecode('Accountants'),jdecode(''),'/16234/78115.html','true',[],''],
		['PAGE','78146',jdecode('Banks'),jdecode(''),'/16234/78146.html','true',[],''],
		['PAGE','78177',jdecode('Building+Soci'),jdecode(''),'/16234/78177.html','true',[],''],
		['PAGE','78208',jdecode('Financial+Adv'),jdecode(''),'/16234/78208.html','true',[],''],
		['PAGE','78239',jdecode('Insurance'),jdecode(''),'/16234/78239.html','true',[],''],
		['PAGE','78270',jdecode('Mortgages+'),jdecode(''),'/16234/78270.html','true',[],'']
	],''],
	['PAGE','78084',jdecode('Garden'),jdecode(''),'/78084/index.html','true',[ 
		['PAGE','78332',jdecode('Fencing'),jdecode(''),'/78084/78332.html','true',[],''],
		['PAGE','78363',jdecode('Florists'),jdecode(''),'/78084/78363.html','true',[],''],
		['PAGE','78301',jdecode('Garden+Centres'),jdecode(''),'/78084/78301.html','true',[],''],
		['PAGE','78425',jdecode('Garden+Tools'),jdecode(''),'/78084/78425.html','true',[],''],
		['PAGE','78394',jdecode('Paving'),jdecode(''),'/78084/78394.html','true',[],'']
	],''],
	['PAGE','25562',jdecode('Health+%26+Beauty'),jdecode(''),'/25562/index.html','true',[ 
		['PAGE','84908',jdecode('Barbers'),jdecode(''),'/25562/84908.html','true',[],''],
		['PAGE','84877',jdecode('Hairdressers'),jdecode(''),'/25562/84877.html','true',[],''],
		['PAGE','85001',jdecode('Nail+Tech'),jdecode(''),'/25562/85001.html','true',[],''],
		['PAGE','84939',jdecode('Tanning'),jdecode(''),'/25562/84939.html','true',[],''],
		['PAGE','84970',jdecode('Tattooists'),jdecode(''),'/25562/84970.html','true',[],'']
	],''],
	['PAGE','60615',jdecode('Your+Home+'),jdecode(''),'/60615/index.html','true',[ 
		['PAGE','78456',jdecode('Architects'),jdecode(''),'/60615/78456.html','true',[],''],
		['PAGE','78487',jdecode('Builders'),jdecode(''),'/60615/78487.html','true',[],''],
		['PAGE','66346',jdecode('DIY'),jdecode(''),'/60615/66346.html','true',[],''],
		['PAGE','78518',jdecode('Electricians'),jdecode(''),'/60615/78518.html','true',[],''],
		['PAGE','63784',jdecode('Estate+Agents'),jdecode(''),'/60615/63784.html','true',[],''],
		['PAGE','78580',jdecode('Painters'),jdecode(''),'/60615/78580.html','true',[],''],
		['PAGE','78549',jdecode('Plumbers'),jdecode(''),'/60615/78549.html','true',[],'']
	],''],
	['PAGE','25593',jdecode('Motors'),jdecode(''),'/25593/index.html','true',[ 
		['PAGE','78673',jdecode('Car+Dealers+'),jdecode(''),'/25593/78673.html','true',[],''],
		['PAGE','78611',jdecode('Driving+Schools'),jdecode(''),'/25593/78611.html','true',[],''],
		['PAGE','78704',jdecode('Garages'),jdecode(''),'/25593/78704.html','true',[],''],
		['PAGE','78642',jdecode('Tyre+Dealers'),jdecode(''),'/25593/78642.html','true',[],''],
		['PAGE','114929',jdecode('Car+Clubs'),jdecode(''),'/25593/114929.html','true',[],'']
	],''],
	['PAGE','66284',jdecode('Shopping'),jdecode(''),'/66284/index.html','true',[ 
		['PAGE','66470',jdecode('DVD+%26+CD'),jdecode(''),'/66284/66470.html','true',[],''],
		['PAGE','66377',jdecode('Electrical'),jdecode(''),'/66284/66377.html','true',[],''],
		['PAGE','66408',jdecode('Food'),jdecode(''),'/66284/66408.html','true',[],''],
		['PAGE','66439',jdecode('Furniture'),jdecode(''),'/66284/66439.html','true',[],''],
		['PAGE','66315',jdecode('Mens+'),jdecode(''),'/66284/66315.html','true',[],''],
		['PAGE','67200',jdecode('Womens'),jdecode(''),'/66284/67200.html','true',[],'']
	],''],
	['PAGE','16153',jdecode('Sport+%26+Leisure'),jdecode(''),'/16153/index.html','true',[ 
		['PAGE','74178',jdecode('Cricket'),jdecode(''),'/16153/74178.html','true',[],''],
		['PAGE','74084',jdecode('Football'),jdecode(''),'/16153/74084.html','true',[],''],
		['PAGE','74116',jdecode('Leisure+Ctr'),jdecode(''),'/16153/74116.html','true',[],''],
		['PAGE','74147',jdecode('Rugby'),jdecode(''),'/16153/74147.html','true',[],'']
	],''],
	['PAGE','95097',jdecode('Dorset+Holiday'),jdecode(''),'/95097/index.html','true',[ 
		['PAGE','95128',jdecode('Caravan+Sites'),jdecode(''),'/95097/95128.html','true',[],''],
		['PAGE','95190',jdecode('Dorset+B%26B'),jdecode(''),'/95097/95190.html','true',[],''],
		['PAGE','95221',jdecode('Cottages'),jdecode(''),'/95097/95221.html','true',[],''],
		['PAGE','95159',jdecode('Dorset+Hotels'),jdecode(''),'/95097/95159.html','true',[],'']
	],''],
	['PAGE','59484',jdecode('Link+to+Us'),jdecode(''),'/59484.html','true',[],''],
	['PAGE','72584',jdecode('Add+Website'),jdecode(''),'/72584/index.html','true',[ 
		['PAGE','73935',jdecode('Add+Website+%28follow+up+page%29'),jdecode(''),'/72584/73935.html','false',[],''],
		['PAGE','96697',jdecode('Adverts'),jdecode(''),'/72584/96697.html','true',[],'']
	],''],
	['PAGE','89284',jdecode('Webcams'),jdecode(''),'/89284.html','true',[],''],
	['PAGE','112802',jdecode('Dorset+Pictures'),jdecode(''),'/112802/index.html','true',[ 
		['PAGE','112729',jdecode('Bournemouth'),jdecode(''),'/112802/112729.html','true',[],''],
		['PAGE','4501',jdecode('Dorchester'),jdecode(''),'/112802/4501.html','true',[],''],
		['PAGE','112694',jdecode('Poole'),jdecode(''),'/112802/112694.html','true',[],''],
		['PAGE','112764',jdecode('Purbeck'),jdecode(''),'/112802/112764.html','true',[],''],
		['PAGE','112659',jdecode('Weymouth'),jdecode(''),'/112802/112659.html','true',[],'']
	],'']];
var siteelementCount=98;
theSitetree.topTemplateName='Inspiration';
					                                                                    
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 */					                                                            
