/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5978',jdecode('Property+Details'),jdecode(''),'/5978/index.html','true',[ 
		['PAGE','6449',jdecode('Front+Views'),jdecode(''),'/5978/6449.html','true',[],''],
		['PAGE','6005',jdecode('Rear+decking+area'),jdecode(''),'/5978/6005.html','true',[],''],
		['PAGE','6032',jdecode('Internal+photos'),jdecode(''),'/5978/6032.html','true',[],'']
	],''],
	['PAGE','35260',jdecode('Availability+for+2007'),jdecode(''),'/35260.html','true',[],''],
	['PAGE','38360',jdecode('Hot+Deals'),jdecode(''),'/38360.html','true',[],''],
	['PAGE','19515',jdecode('Local+Beaches'),jdecode(''),'/19515.html','true',[],''],
	['PAGE','17521',jdecode('Views'),jdecode(''),'/17521.html','true',[],''],
	['PAGE','22515',jdecode('Links'),jdecode(''),'/22515.html','true',[],''],
	['PAGE','37660',jdecode('Visitors+Comments'),jdecode(''),'/37660/index.html','true',[ 
		['PAGE','22809',jdecode('Visitors+Book+2003'),jdecode(''),'/37660/22809.html','true',[],''],
		['PAGE','35660',jdecode('Visitors+Book+2004'),jdecode(''),'/37660/35660.html','true',[],''],
		['PAGE','52759',jdecode('Visitors+Book+2005'),jdecode(''),'/37660/52759.html','true',[],''],
		['PAGE','52790',jdecode('Visitors+Book+2006'),jdecode(''),'/37660/52790.html','true',[],'']
	],''],
	['PAGE','36187',jdecode('Photo+Galleries'),jdecode(''),'/36187/index.html','true',[ 
		['PAGE','36214',jdecode('Period+Cornwall+Postcards'),jdecode(''),'/36187/36214.html','true',[],''],
		['PAGE','36241',jdecode('Period+Cornwall+Photos'),jdecode(''),'/36187/36241.html','true',[],''],
		['PAGE','36268',jdecode('Visitors+Photos'),jdecode(''),'/36187/36268.html','true',[],'']
	],''],
	['PAGE','36560',jdecode('Feed+Back+Form'),jdecode(''),'/36560/index.html','true',[ 
		['PAGE','36660',jdecode('new+%28follow+up+page%29'),jdecode(''),'/36560/36660.html','false',[],'']
	],''],
	['PAGE','47060',jdecode('Guestbook'),jdecode(''),'/47060/index.html','true',[ 
		['PAGE','47061',jdecode('Read+Guestbook'),jdecode(''),'/47060/47061.html','true',[],'']
	],''],
	['PAGE','41060',jdecode('1960+%26+1970+Photo%26%23x27%3Bs'),jdecode(''),'/41060.html','true',[],''],
	['PAGE','49160',jdecode('Detailed+Route+Planer'),jdecode(''),'/49160.html','true',[],''],
	['PAGE','39060',jdecode('Directions'),jdecode(''),'/39060.html','true',[],''],
	['PAGE','46560',jdecode('Weblog'),jdecode(''),'/46560.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Neon';
					                                                                    
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 */					                                                            
