/* [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','8400',jdecode('Adjusting+Services'),jdecode(''),'/8400/index.html','true',[ 
		['PAGE','20404',jdecode('+++++%3E+Property'),jdecode(''),'/8400/20404.html','true',[],''],
		['PAGE','20435',jdecode('+++++%3E+Casualty'),jdecode(''),'/8400/20435.html','true',[],''],
		['PAGE','20466',jdecode('+++++%3E+Appraisals'),jdecode(''),'/8400/20466.html','true',[],''],
		['PAGE','131712',jdecode('Online+Assignment+Forms'),jdecode(''),'/8400/131712.html','true',[],''],
		['PAGE','96879',jdecode('Adj.Territory%2FAreas+Served'),jdecode(''),'/8400/96879.html','true',[],''],
		['PAGE','23301',jdecode('Adj.+Professional+Affiliations'),jdecode(''),'/8400/23301.html','true',[],'']
	],''],
	['PAGE','8427',jdecode('Expert+Services'),jdecode(''),'/8427/index.html','true',[ 
		['PAGE','13563',jdecode('+++++%3E+Accident++Reconstruction'),jdecode(''),'/8427/13563.html','true',[],''],
		['PAGE','15032',jdecode('+++++%3E+Automotive'),jdecode(''),'/8427/15032.html','true',[],''],
		['PAGE','13601',jdecode('+++++%3E+Mechanical'),jdecode(''),'/8427/13601.html','true',[],''],
		['PAGE','15094',jdecode('+++++%3E+Safety+'),jdecode(''),'/8427/15094.html','true',[],''],
		['PAGE','15063',jdecode('+++++%3E+Highway+'),jdecode(''),'/8427/15063.html','true',[],''],
		['PAGE','95364',jdecode('Code+References'),jdecode(''),'/8427/95364.html','true',[],''],
		['PAGE','23332',jdecode('Professional+Affiliations'),jdecode(''),'/8427/23332.html','true',[],'']
	],''],
	['PAGE','178353',jdecode('Email%3APhotos%3AAttachments%2B'),jdecode(''),'/178353.html','true',[],''],
	['PAGE','38013',jdecode('Additional+Information'),jdecode(''),'/38013/index.html','true',[ 
		['PAGE','113212',jdecode('Overview'),jdecode(''),'/38013/113212.html','true',[],''],
		['PAGE','100691',jdecode('Email%3APhoto%3AAttachments%2B'),jdecode(''),'/38013/100691.html','true',[],''],
		['PAGE','35701',jdecode('ADC+Directory'),jdecode(''),'/38013/35701.html','true',[],''],
		['PAGE','177073',jdecode('ADC+Contact+Form'),jdecode(''),'/38013/177073.html','true',[],''],
		['PAGE','101695',jdecode('Directions'),jdecode(''),'/38013/101695.html','true',[],''],
		['PAGE','37301',jdecode('Brochure+Request'),jdecode(''),'/38013/37301.html','true',[],''],
		['PAGE','49801',jdecode('Additional+Links'),jdecode(''),'/38013/49801.html','true',[],''],
		['PAGE','170691',jdecode('Career+Opportunities'),jdecode(''),'/38013/170691.html','true',[],''],
		['PAGE','135634',jdecode('Legal'),jdecode(''),'/38013/135634.html','true',[],'']
	],''],
	['PAGE','52001',jdecode('Partial+Client+List'),jdecode(''),'/52001/index.html','true',[ 
		['PAGE','52142',jdecode('Client+List+-+Insurance+'),jdecode(''),'/52001/52142.html','true',[],''],
		['PAGE','52173',jdecode('Client+List+-+Attorney+Firms'),jdecode(''),'/52001/52173.html','true',[],''],
		['PAGE','52232',jdecode('Client+List+-+Automotive'),jdecode(''),'/52001/52232.html','true',[],'']
	],''],
	['PAGE','130212',jdecode('Sitemap'),jdecode(''),'/130212.html','true',[],'']];
var siteelementCount=32;
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 */					                                                            
