/* [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','13701',jdecode('%22The+Registrar%22'),jdecode(''),'/13701/index.html','true',[ 
		['PAGE','13728',jdecode('President+Letter'),jdecode(''),'/13701/13728.html','true',[],''],
		['PAGE','13755',jdecode('NCRA+Liaison+'),jdecode(''),'/13701/13755.html','true',[],''],
		['PAGE','13782',jdecode('COC+Updates'),jdecode(''),'/13701/13782.html','true',[],''],
		['PAGE','14338',jdecode('Job+Opportunities'),jdecode(''),'/13701/14338.html','true',[],''],
		['PAGE','90901',jdecode('Other+%2F+Misc'),jdecode(''),'/13701/90901.html','true',[],'']
	],''],
	['PAGE','89801',jdecode('Officer+%2F+Committee+Reports'),jdecode(''),'/89801/index.html','true',[ 
		['PAGE','89863',jdecode('Secretary'),jdecode(''),'/89801/89863.html','true',[],''],
		['PAGE','95201',jdecode('Exec+Meeting+Minutes'),jdecode(''),'/89801/95201.html','true',[],''],
		['PAGE','100438',jdecode('Membership'),jdecode(''),'/89801/100438.html','true',[],''],
		['PAGE','91501',jdecode('Bylaws+%2F+Job+Descriptions'),jdecode(''),'/89801/91501.html','true',[],'']
	],''],
	['PAGE','101735',jdecode('NCRA%2FNAACCR+Updates'),jdecode(''),'/101735.html','true',[],''],
	['PAGE','98120',jdecode('WCRS+-+Updates'),jdecode(''),'/98120.html','true',[],''],
	['PAGE','7209',jdecode('Board+of+Directors'),jdecode(''),'/7209.html','true',[],''],
	['PAGE','13501',jdecode('Membership+App'),jdecode(''),'/13501.html','true',[],''],
	['PAGE','90301',jdecode('Contact+Us'),jdecode(''),'/90301.html','true',[],''],
	['PAGE','98354',jdecode('Educational+Opportunities'),jdecode(''),'/98354.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Layers';
					                                                                    
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 */					                                                            
