/* [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','4466',jdecode('Home'),jdecode(''),'/4466/index.html','true',[ 
		['PAGE','47706',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/4466/47706.html','false',[],'']
	],''],
	['PAGE','18461',jdecode('About+Normandy'),jdecode(''),'/18461.html','true',[],''],
	['PAGE','23961',jdecode('House+Buying+Tips'),jdecode(''),'/23961/index.html','true',[ 
		['PAGE','18330',jdecode('Are+you+selling+a+House%3F'),jdecode(''),'/23961/18330.html','true',[],''],
		['PAGE','33453',jdecode('French+Estate+Agents+Terminology'),jdecode(''),'/23961/33453.html','true',[],''],
		['PAGE','46376',jdecode('Where+not+to+buy+-+high+voltage+line'),jdecode(''),'/23961/46376.html','true',[],'']
	],''],
	['PAGE','37022',jdecode('Legal+and+Financial'),jdecode(''),'/37022/index.html','true',[ 
		['PAGE','37061',jdecode('Legal+Issues'),jdecode(''),'/37022/37061.html','true',[],''],
		['PAGE','37092',jdecode('Financial+Issues'),jdecode(''),'/37022/37092.html','true',[],''],
		['PAGE','42422',jdecode('Currency+Conversion+-+Moneycorp'),jdecode(''),'/37022/42422.html','true',[],'']
	],''],
	['PAGE','27496',jdecode('Learn+French'),jdecode(''),'/27496/index.html','true',[ 
		['PAGE','29771',jdecode('French+Language+Tips'),jdecode(''),'/27496/29771.html','true',[],'']
	],''],
	['PAGE','26161',jdecode('Publications'),jdecode(''),'/26161/index.html','true',[ 
		['PAGE','48897',jdecode('Find+your+Feet+in+Normandy+Book'),jdecode(''),'/26161/48897.html','true',[],'']
	],''],
	['PAGE','25061',jdecode('Travelling+to+France'),jdecode(''),'/25061/index.html','true',[ 
		['PAGE','43830',jdecode('Maps'),jdecode(''),'/25061/43830.html','true',[],''],
		['PAGE','25373',jdecode('Holiday+Accommodation'),jdecode(''),'/25061/25373.html','true',[],'']
	],''],
	['PAGE','37453',jdecode('What+to+Do+and+See'),jdecode(''),'/37453/index.html','true',[ 
		['PAGE','36522',jdecode('What+to+Visit'),jdecode(''),'/37453/36522.html','true',[],''],
		['PAGE','37422',jdecode('What%26%23x27%3Bs+coming+up'),jdecode(''),'/37453/37422.html','true',[],'']
	],''],
	['PAGE','26391',jdecode('French+living'),jdecode(''),'/26391/index.html','true',[ 
		['PAGE','32940',jdecode('Computers%2C+Email+and+all+things+techie%21'),jdecode(''),'/26391/32940.html','true',[],''],
		['PAGE','32799',jdecode('Health'),jdecode(''),'/26391/32799.html','true',[],''],
		['PAGE','26423',jdecode('La+Manche+What%26%23x27%3Bs+On'),jdecode(''),'/26391/26423.html','true',[],''],
		['PAGE','26461',jdecode('French+Road+Safety'),jdecode(''),'/26391/26461.html','true',[],''],
		['PAGE','49321',jdecode('UFC+Que+Choisir'),jdecode(''),'/26391/49321.html','true',[],''],
		['PAGE','33957',jdecode('Papers+you+must+keep'),jdecode(''),'/26391/33957.html','true',[],''],
		['PAGE','35359',jdecode('Contracts%2C+Goods+and+Services'),jdecode(''),'/26391/35359.html','true',[],''],
		['PAGE','47382',jdecode('The+Normandy+Advertiser'),jdecode(''),'/26391/47382.html','true',[],'']
	],''],
	['PAGE','46884',jdecode('Returning+to+the+UK'),jdecode(''),'/46884.html','true',[],''],
	['PAGE','27861',jdecode('Links'),jdecode(''),'/27861.html','true',[],''],
	['PAGE','35853',jdecode('Clubs+and+Services'),jdecode(''),'/35853.html','true',[],''],
	['PAGE','27466',jdecode('Payments+%26+Terms'),jdecode(''),'/27466/index.html','true',[ 
		['PAGE','28561',jdecode('PWT+Schedule+of+Charges'),jdecode(''),'/27466/28561.html','true',[],''],
		['PAGE','28591',jdecode('Terms+and+Conditions'),jdecode(''),'/27466/28591.html','true',[],''],
		['PAGE','32732',jdecode('Payment+Methods'),jdecode(''),'/27466/32732.html','true',[],'']
	],''],
	['PAGE','32440',jdecode('Contact+Details'),jdecode(''),'/32440/index.html','true',[ 
		['PAGE','26361',jdecode('About+Us'),jdecode(''),'/32440/26361.html','true',[],'']
	],''],
	['PAGE','41222',jdecode('Ldlines'),jdecode(''),'/41222.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            
