/* [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('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','6901',jdecode('History+%26+Purpose'),jdecode(''),'/6901.html','true',[],''],
	['PAGE','6928',jdecode('Staff+%26+Services'),jdecode(''),'/6928/index.html','true',[ 
		['PAGE','6955',jdecode('Hours'),jdecode(''),'/6928/6955.html','true',[],''],
		['PAGE','6982',jdecode('Fees'),jdecode(''),'/6928/6982.html','true',[],''],
		['PAGE','10522',jdecode('Confidentiality'),jdecode(''),'/6928/10522.html','true',[],'']
	],''],
	['PAGE','13155',jdecode('What+You+Can+Expect'),jdecode(''),'/13155.html','true',[],''],
	['PAGE','7009',jdecode('Contacting+Evergreen'),jdecode(''),'/7009.html','true',[],''],
	['PAGE','13322',jdecode('Upward++%28Article%29'),jdecode(''),'/13322.html','true',[],''],
	['PAGE','10722',jdecode('Seedlings+%28Other+Stuff%29'),jdecode(''),'/10722/index.html','true',[ 
		['PAGE','39135',jdecode('Resources'),jdecode(''),'/10722/39135.html','true',[],''],
		['PAGE','39104',jdecode('Links+%26+Quotes'),jdecode(''),'/10722/39104.html','true',[],''],
		['PAGE','15922',jdecode('Rustlings'),jdecode(''),'/10722/15922.html','true',[],''],
		['PAGE','16031',jdecode('Echoes+%28follow+up+page%29'),jdecode(''),'/10722/16031.html','false',[],'']
	],''],
	['PAGE','43515',jdecode('Weather'),jdecode(''),'/43515.html','true',[],''],
	['PAGE','43557',jdecode('World'),jdecode(''),'/43557.html','true',[],''],
	['PAGE','43629',jdecode('National'),jdecode(''),'/43629.html','true',[],''],
	['PAGE','43593',jdecode('College+Sports'),jdecode(''),'/43593.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Stone';
					                                                                    
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 */					                                                            

