/* [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','6002',jdecode('Guestbook'),jdecode(''),'/6002/index.html','true',[ 
		['PAGE','6003',jdecode('Read+Guestbook'),jdecode(''),'/6002/6003.html','true',[],'']
	],''],
	['PAGE','34828',jdecode('Deer+in+Landscapes'),jdecode(''),'/34828.html','true',[],''],
	['PAGE','22028',jdecode('Mammals+1'),jdecode(''),'/22028.html','true',[],''],
	['PAGE','26428',jdecode('Mammals+2'),jdecode(''),'/26428.html','true',[],''],
	['PAGE','21228',jdecode('Parks+%26+Gardens'),jdecode(''),'/21228.html','true',[],''],
	['PAGE','22428',jdecode('Sea-Cliffs+%26+Rocks'),jdecode(''),'/22428.html','true',[],''],
	['PAGE','37228',jdecode('Seashore'),jdecode(''),'/37228.html','true',[],''],
	['PAGE','22459',jdecode('Salt+Marsh+%26+Estuary'),jdecode(''),'/22459.html','true',[],''],
	['PAGE','23328',jdecode('Broad-leaved+Woods'),jdecode(''),'/23328.html','true',[],''],
	['PAGE','37428',jdecode('Coniferous+Woods'),jdecode(''),'/37428.html','true',[],''],
	['PAGE','27328',jdecode('Heathland'),jdecode(''),'/27328.html','true',[],''],
	['PAGE','32328',jdecode('Mountain+%26+Moorland+'),jdecode(''),'/32328.html','true',[],''],
	['PAGE','29428',jdecode('Farmland+Birds'),jdecode(''),'/29428.html','true',[],''],
	['PAGE','34353',jdecode('Rivers+%26+Lakes'),jdecode(''),'/34353.html','true',[],''],
	['PAGE','37028',jdecode('Towns'),jdecode(''),'/37028.html','true',[],''],
	['PAGE','47821',jdecode('Fish'),jdecode(''),'/47821.html','true',[],''],
	['PAGE','30328',jdecode('Wild+Flowers'),jdecode(''),'/30328.html','true',[],''],
	['PAGE','52084',jdecode('Fungi'),jdecode(''),'/52084.html','true',[],''],
	['PAGE','33428',jdecode('Dragonflies'),jdecode(''),'/33428.html','true',[],''],
	['PAGE','49387',jdecode('Butterflies+%26+Moths'),jdecode(''),'/49387.html','true',[],''],
	['PAGE','50087',jdecode('Insects'),jdecode(''),'/50087.html','true',[],''],
	['PAGE','50118',jdecode('Reptiles+%26+Amphib.'),jdecode(''),'/50118.html','true',[],''],
	['PAGE','30928',jdecode('Landscapes'),jdecode(''),'/30928.html','true',[],''],
	['PAGE','56711',jdecode('Landscapes+2'),jdecode(''),'/56711.html','true',[],''],
	['PAGE','14330',jdecode('Links'),jdecode(''),'/14330.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Zoe';
					                                                                    
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 */					                                                            
