/* [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','7155',jdecode('Mission'),jdecode(''),'/7155.html','true',[],''],
	['PAGE','7209',jdecode('Upcoming+Events'),jdecode(''),'/7209/index.html','true',[ 
		['PAGE','30458',jdecode('2010+Woodcarvers+Event'),jdecode(''),'/7209/30458.html','true',[],'']
	],''],
	['PAGE','25727',jdecode('Past+Events'),jdecode(''),'/25727/index.html','true',[ 
		['PAGE','28730',jdecode('2009+Holiday+Card+Event'),jdecode(''),'/25727/28730.html','true',[],''],
		['PAGE','28827',jdecode('2009+Woodcarver%26%23x27%3Bs+Event'),jdecode(''),'/25727/28827.html','true',[],''],
		['PAGE','25864',jdecode('2008+Woodcarvers+Event'),jdecode(''),'/25727/25864.html','true',[],''],
		['PAGE','21606',jdecode('2007+Holiday+Card+Collection'),jdecode(''),'/25727/21606.html','true',[],''],
		['PAGE','25127',jdecode('2008+Valentine%26%23x27%3Bs+Day+Project'),jdecode(''),'/25727/25127.html','true',[],''],
		['PAGE','26427',jdecode('Girl+Scout+Pillow-A-Thon'),jdecode(''),'/25727/26427.html','true',[],''],
		['PAGE','26527',jdecode('Trim+a+Tree+for+the+Troops+'),jdecode(''),'/25727/26527.html','true',[],''],
		['PAGE','26558',jdecode('OBOC+Project-2006'),jdecode(''),'/25727/26558.html','true',[],''],
		['PAGE','29827',jdecode('2010+Valentines+Day+Event'),jdecode(''),'/25727/29827.html','true',[],''],
		['PAGE','30032',jdecode('2010+York+Bldrs+Assn+Show'),jdecode(''),'/25727/30032.html','true',[],'']
	],''],
	['PAGE','26727',jdecode('Community+Support'),jdecode(''),'/26727/index.html','true',[ 
		['PAGE','26851',jdecode('Dentsply+%22Dunks%22+Employees+'),jdecode(''),'/26727/26851.html','true',[],''],
		['PAGE','26913',jdecode('Harley+HOG+Poker+Run'),jdecode(''),'/26727/26913.html','true',[],'']
	],''],
	['PAGE','26758',jdecode('Kid%26%23x27%3Bs+Support'),jdecode(''),'/26758/index.html','true',[ 
		['PAGE','26789',jdecode('Boy+Donates+B-day+Gifts'),jdecode(''),'/26758/26789.html','true',[],''],
		['PAGE','26820',jdecode('Girl+Scouts+Donate+Cookies'),jdecode(''),'/26758/26820.html','true',[],''],
		['PAGE','26882',jdecode('Cub+Scouts+Items+Collection'),jdecode(''),'/26758/26882.html','true',[],'']
	],''],
	['PAGE','17601',jdecode('Event+Pictures'),jdecode(''),'/17601.html','true',[],''],
	['PAGE','10602',jdecode('Pictures+From+Our+Troops'),jdecode(''),'/10602/index.html','true',[ 
		['PAGE','22827',jdecode('National+Guard'),jdecode(''),'/10602/22827.html','true',[],''],
		['PAGE','20494',jdecode('Marines'),jdecode(''),'/10602/20494.html','true',[],'']
	],''],
	['PAGE','15201',jdecode('Letters+From+Our+Troops'),jdecode(''),'/15201/index.html','true',[ 
		['PAGE','17301',jdecode('El+Serrano+Event'),jdecode(''),'/15201/17301.html','true',[],'']
	],''],
	['PAGE','9228',jdecode('Support+Group+Info'),jdecode(''),'/9228.html','true',[],''],
	['PAGE','9201',jdecode('Donations'),jdecode(''),'/9201/index.html','true',[ 
		['PAGE','10501',jdecode('Cash'),jdecode(''),'/9201/10501.html','true',[],''],
		['PAGE','10401',jdecode('Suggested+Items'),jdecode(''),'/9201/10401.html','true',[],'']
	],''],
	['PAGE','9255',jdecode('Other+Links'),jdecode(''),'/9255.html','true',[],''],
	['PAGE','10301',jdecode('Major+Sponsors'),jdecode(''),'/10301.html','true',[],''],
	['PAGE','9502',jdecode('Guestbook'),jdecode(''),'/9502/index.html','true',[ 
		['PAGE','9503',jdecode('Read+Guestbook'),jdecode(''),'/9502/9503.html','true',[],'']
	],''],
	['PAGE','9309',jdecode('About+us'),jdecode(''),'/9309/index.html','true',[ 
		['PAGE','9747',jdecode('Contact+Us'),jdecode(''),'/9309/9747.html','true',[],''],
		['PAGE','9602',jdecode('How+to+find+us'),jdecode(''),'/9309/9602.html','true',[],''],
		['PAGE','11501',jdecode('Frequently+Asked+Questions'),jdecode(''),'/9309/11501.html','true',[],''],
		['PAGE','10201',jdecode('Privacy+Policy'),jdecode(''),'/9309/10201.html','true',[],'']
	],''],
	['PAGE','12802',jdecode('Email'),jdecode(''),'/12802.html','true',[],''],
	['PAGE','23527',jdecode('MotoMail--Keep+In+Touch'),jdecode(''),'/23527.html','true',[],'']];
var siteelementCount=43;
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 */					                                                            
