/* [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(''),'/index.html','true',[],''],
	['PAGE','17510',jdecode('News'),jdecode(''),'/17510/index.html','true',[ 
		['PAGE','17537',jdecode('Meeting+Minutes'),jdecode(''),'/17510/17537.html','true',[],''],
		['PAGE','17564',jdecode('Thursday+Announcements'),jdecode(''),'/17510/17564.html','true',[],''],
		['PAGE','25816',jdecode('PTA+Buzz+Enews'),jdecode(''),'/17510/25816.html','true',[],'']
	],''],
	['PAGE','17618',jdecode('Committees+and+Activities'),jdecode(''),'/17618/index.html','true',[ 
		['PAGE','22014',jdecode('Committees+and+Activities+%28follow+up+page%29'),jdecode(''),'/17618/22014.html','false',[],''],
		['PAGE','17672',jdecode('Reflections'),jdecode(''),'/17618/17672.html','true',[],''],
		['PAGE','17699',jdecode('Rebates'),jdecode(''),'/17618/17699.html','true',[],''],
		['PAGE','17726',jdecode('WKMSLiason'),jdecode(''),'/17618/17726.html','true',[],'']
	],''],
	['PAGE','12910',jdecode('About+your+PTA'),jdecode(''),'/12910/index.html','true',[ 
		['PAGE','12991',jdecode('Accomplishments'),jdecode(''),'/12910/12991.html','true',[],''],
		['PAGE','13018',jdecode('Becoming+a+member'),jdecode(''),'/12910/13018.html','true',[],''],
		['PAGE','12937',jdecode('Bylaws'),jdecode(''),'/12910/12937.html','true',[],''],
		['PAGE','13045',jdecode('Budget'),jdecode(''),'/12910/13045.html','true',[],'']
	],''],
	['PAGE','17789',jdecode('Links'),jdecode(''),'/17789.html','true',[],''],
	['PAGE','18610',jdecode('Parents+Place'),jdecode(''),'/18610.html','true',[],''],
	['PAGE','25117',jdecode('Guestbook'),jdecode(''),'/25117/index.html','true',[ 
		['PAGE','25118',jdecode('Read+Guestbook'),jdecode(''),'/25117/25118.html','true',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Profile';
					                                                                    
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 */					                                                            
