/* [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/index.html','true',[ 
		['PAGE','13601',jdecode('About+us'),jdecode(''),'/4436/13601.html','true',[],''],
		['PAGE','8481',jdecode('Contacts'),jdecode(''),'/4436/8481.html','true',[],''],
		['PAGE','91855',jdecode('Bylaws'),jdecode(''),'/4436/91855.html','true',[],''],
		['PAGE','53761',jdecode('FAQs'),jdecode(''),'/4436/53761.html','true',[],''],
		['PAGE','53999',jdecode('FAQs+%28follow+up+page%29'),jdecode(''),'/4436/53999.html','false',[],'']
	],''],
	['PAGE','13501',jdecode('Conferences'),jdecode(''),'/13501/index.html','true',[ 
		['PAGE','115022',jdecode('2011+NAP+Conference'),jdecode(''),'/13501/115022.html','true',[],''],
		['PAGE','108014',jdecode('2010+NAP+Conference'),jdecode(''),'/13501/108014.html','true',[],''],
		['PAGE','103186',jdecode('2009+NAP+Conference'),jdecode(''),'/13501/103186.html','true',[],''],
		['PAGE','85386',jdecode('2007+NAP+Conference'),jdecode(''),'/13501/85386.html','true',[],''],
		['PAGE','80855',jdecode('2006+NAP+Conference'),jdecode(''),'/13501/80855.html','true',[],''],
		['PAGE','78555',jdecode('Affiliate+Conferences'),jdecode(''),'/13501/78555.html','true',[],'']
	],''],
	['PAGE','13709',jdecode('Membership'),jdecode(''),'/13709/index.html','true',[ 
		['PAGE','26202',jdecode('Membership+%28follow+up+page%29'),jdecode(''),'/13709/26202.html','false',[],'']
	],''],
	['PAGE','102867',jdecode('Code+of+Ethics'),jdecode(''),'/102867.html','true',[],''],
	['PAGE','8427',jdecode('Certification'),jdecode(''),'/8427.html','true',[],''],
	['PAGE','29601',jdecode('Listservs'),jdecode(''),'/29601/index.html','true',[ 
		['PAGE','94955',jdecode('NAP+Test+Collaboration+Group'),jdecode(''),'/29601/94955.html','true',[],'']
	],''],
	['PAGE','50201',jdecode('Medicare+Reimbursement'),jdecode(''),'/50201.html','true',[],''],
	['PAGE','84655',jdecode('NY+State+Psychometrists'),jdecode(''),'/84655.html','true',[],''],
	['PAGE','24701',jdecode('Employment'),jdecode(''),'/24701/index.html','true',[ 
		['PAGE','24902',jdecode('Employment+%28follow+up+page%29'),jdecode(''),'/24701/24902.html','false',[],''],
		['PAGE','116717',jdecode('Job+Postings'),jdecode(''),'/24701/116717.html','true',[],'']
	],''],
	['PAGE','97267',jdecode('Preferred+Job+Description'),jdecode(''),'/97267.html','true',[],''],
	['PAGE','49501',jdecode('Use+of+Psychometrists'),jdecode(''),'/49501.html','true',[],''],
	['PAGE','54564',jdecode('What+is+a+Psychometrist%3F'),jdecode(''),'/54564.html','true',[],''],
	['PAGE','73155',jdecode('CEUs'),jdecode(''),'/73155.html','true',[],''],
	['PAGE','72106',jdecode('Members+Only'),jdecode(''),'/72106.html','true',[],''],
	['PAGE','103908',jdecode('Affiliate+Links'),jdecode(''),'/103908.html','true',[],''],
	['PAGE','82555',jdecode('NAP+Brochure'),jdecode(''),'/82555.html','true',[],''],
	['PAGE','18301',jdecode('Resources'),jdecode(''),'/18301.html','true',[],''],
	['PAGE','99267',jdecode('Testing+Issues'),jdecode(''),'/99267.html','true',[],''],
	['PAGE','102067',jdecode('Training+Certificate'),jdecode(''),'/102067.html','true',[],''],
	['PAGE','109109',jdecode('Psychometrist+Publications'),jdecode(''),'/109109.html','true',[],''],
	['PAGE','18701',jdecode('Other'),jdecode(''),'/18701/index.html','true',[ 
		['PAGE','27802',jdecode('Quiz'),jdecode(''),'/18701/27802.html','true',[],'']
	],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            

