/* [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','4597',jdecode('About+Us'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','210318',jdecode('La+Hantraye+B%26B'),jdecode(''),'/210318.html','true',[],''],
	['PAGE','211215',jdecode('A+Place+in+the+snow%21'),jdecode(''),'/211215.html','true',[],''],
	['PAGE','45305',jdecode('Map+%26+House+Details'),jdecode(''),'/45305/index.html','true',[ 
		['PAGE','4762',jdecode('La+Hantraye+-+Primev%E8ra+'),jdecode(''),'/45305/4762.html','true',[],''],
		['PAGE','53601',jdecode('La+Hantraye+-+Ch%E2taigne+'),jdecode(''),'/45305/53601.html','true',[],''],
		['PAGE','4708',jdecode('Le+Manchion'),jdecode(''),'/45305/4708.html','true',[],''],
		['PAGE','56407',jdecode('Details+of+rooms'),jdecode(''),'/45305/56407.html','true',[],'']
	],''],
	['PAGE','5201',jdecode('Pricing'),jdecode(''),'/5201.html','true',[],''],
	['PAGE','65915',jdecode('Availability'),jdecode(''),'/65915.html','true',[],''],
	['PAGE','31214',jdecode('Booking+%26+Enquiries'),jdecode(''),'/31214/index.html','true',[ 
		['PAGE','44263',jdecode('Pricing+%28follow+up+page%29'),jdecode(''),'/31214/44263.html','false',[],'']
	],''],
	['PAGE','67816',jdecode('Useful+web+links'),jdecode(''),'/67816.html','true',[],''],
	['PAGE','72717',jdecode('Scrapbook'),jdecode(''),'/72717/index.html','true',[ 
		['PAGE','72816',jdecode('Le+Manchion'),jdecode(''),'/72717/72816.html','true',[],''],
		['PAGE','72851',jdecode('Primev%E8ra'),jdecode(''),'/72717/72851.html','true',[],''],
		['PAGE','72886',jdecode('Ch%E2taigne'),jdecode(''),'/72717/72886.html','true',[],'']
	],''],
	['PAGE','215429',jdecode('Bonnecine+-+the+work+starts'),jdecode(''),'/215429.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Deepcolor';
					                                                                    
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 */					                                                            
