/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','53',jdecode('About+NEPC'),jdecode(''),'/53.html','true',[],''],
	['PAGE','62',jdecode('Practice+Areas'),jdecode(''),'/62/index.html','true',[ 
		['PAGE','1498',jdecode('Environmental'),jdecode(''),'/62/1498.html','true',[],''],
		['PAGE','1507',jdecode('Site+Design'),jdecode(''),'/62/1507.html','true',[],''],
		['PAGE','1516',jdecode('Structural'),jdecode(''),'/62/1516.html','true',[],''],
		['PAGE','1525',jdecode('MEP'),jdecode(''),'/62/1525.html','true',[],''],
		['PAGE','1905',jdecode('Forensic'),jdecode(''),'/62/1905.html','true',[],''],
		['PAGE','1534',jdecode('Electronics'),jdecode(''),'/62/1534.html','true',[],''],
		['PAGE','1543',jdecode('CM+%2F+Inspection'),jdecode(''),'/62/1543.html','true',[],''],
		['PAGE','1662',jdecode('Training'),jdecode(''),'/62/1662.html','true',[],''],
		['PAGE','1552',jdecode('Scanning+'),jdecode(''),'/62/1552.html','true',[],''],
		['PAGE','1561',jdecode('Plotting'),jdecode(''),'/62/1561.html','true',[],'']
	],''],
	['PAGE','71',jdecode('Continuing+Ed'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','1737',jdecode('Live+Courses'),jdecode(''),'/71/1737.html','true',[],''],
		['PAGE','1746',jdecode('Self+Study'),jdecode(''),'/71/1746.html','true',[],''],
		['PAGE','1755',jdecode('Forthcoming'),jdecode(''),'/71/1755.html','true',[],''],
		['PAGE','1764',jdecode('State+Approvals'),jdecode(''),'/71/1764.html','true',[],''],
		['PAGE','2472',jdecode('State+Req%26%23x27%3Bts'),jdecode(''),'/71/2472.html','true',[],''],
		['PAGE','2343',jdecode('Register+for+CPC'),jdecode(''),'/71/2343.html','true',[],'']
	],''],
	['PAGE','80',jdecode('Tech+Reviews'),jdecode(''),'/80.html','true',[],''],
	['PAGE','143',jdecode('Contact'),jdecode(''),'/143.html','true',[],''],
	['PAGE','152',jdecode('Awards'),jdecode(''),'/152.html','true',[],''],
	['PAGE','134',jdecode('List+of+links'),jdecode(''),'/134.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='936251';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10554';
theSitetree.graphicsetId='10450';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Akropolis'
,				paletteFamily: 	'936251'
,				keyvisualId: 	'-1'
,				keyvisualName: 	'keyv.jpg'
,				fontsetId: 		'10554'
,				graphicsetId: 	'10450'
,				contentColor: 	'FFFFFF'
,				contentBGColor: 'FFFFFF'
,				a_color: 		'936251'
,				b_color: 		'FFFFFF'
,				c_color: 		'FFFFFF'
,				d_color: 		'FFFFFF'
,				e_color: 		'FFFFFF'
,				f_color: 		'FFFFFF'
 			  };					                                                                    
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 */					                                                            
