/* [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','27001',jdecode('News'),jdecode(''),'/27001.html','true',[],''],
	['PAGE','21019',jdecode('The+Playground'),jdecode(''),'/21019.html','true',[],''],
	['PAGE','20733',jdecode('Burning+Band'),jdecode(''),'/20733/index.html','true',[ 
		['PAGE','22305',jdecode('Burning+Band+%28follow+up+page%29'),jdecode(''),'/20733/22305.html','false',[],''],
		['PAGE','25801',jdecode('Gigs'),jdecode(''),'/20733/25801/index.html','true',[ 
			['PAGE','26002',jdecode('gigs+%28follow+up+page%29'),jdecode(''),'/20733/25801/26002.html','false',[],'']
		],'']
	],''],
	['PAGE','20701',jdecode('Amenities+%26+Dues'),jdecode(''),'/20701.html','true',[],''],
	['PAGE','22007',jdecode('Work-shift+sign-up'),jdecode(''),'/22007/index.html','true',[ 
		['PAGE','24811',jdecode('Workshift+sign-up+%28follow+up+page%29'),jdecode(''),'/22007/24811.html','false',[],''],
		['PAGE','27032',jdecode('gASSo+job+descriptions'),jdecode(''),'/22007/27032.html','true',[],''],
		['PAGE','27063',jdecode('Chairway+job+descriptions'),jdecode(''),'/22007/27063.html','true',[],''],
		['PAGE','27094',jdecode('Other+job+descriptions'),jdecode(''),'/22007/27094.html','true',[],'']
	],''],
	['PAGE','27125',jdecode('Next+Time+%3F%3F'),jdecode(''),'/27125.html','true',[],''],
	['PAGE','20504',jdecode('Join+the+Playground'),jdecode(''),'/20504/index.html','true',[ 
		['PAGE','20613',jdecode('Signup+for+Camping+%28follow+up+page%29'),jdecode(''),'/20504/20613.html','false',[],'']
	],''],
	['PAGE','36401',jdecode('Playground+People'),jdecode(''),'/36401.html','true',[],''],
	['PAGE','38401',jdecode('Camp+Maps'),jdecode(''),'/38401.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 */					                                                            

