/* [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+Us'),jdecode(''),'/53/index.html','true',[ 
		['PAGE','62',jdecode('The+Team'),jdecode(''),'/53/62.html','true',[],'']
	],''],
	['PAGE','71',jdecode('Core+Services'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','80',jdecode('Forensic+Valuation'),jdecode(''),'/71/80.html','true',[],''],
		['PAGE','89',jdecode('Commercial+Litigation'),jdecode(''),'/71/89.html','true',[],''],
		['PAGE','98',jdecode('Business+Appraisal'),jdecode(''),'/71/98.html','true',[],''],
		['PAGE','1302',jdecode('Fair+Value+Determination'),jdecode(''),'/71/1302.html','true',[],'']
	],''],
	['PAGE','107',jdecode('Special+Services'),jdecode(''),'/107/index.html','true',[ 
		['PAGE','116',jdecode('Divorce+Economics'),jdecode(''),'/107/116.html','true',[],''],
		['PAGE','125',jdecode('Forensic+Accounting'),jdecode(''),'/107/125.html','true',[],''],
		['PAGE','134',jdecode('Expert+Witness'),jdecode(''),'/107/134.html','true',[],'']
	],''],
	['PAGE','143',jdecode('Tips+%26+Tricks'),jdecode(''),'/143.html','true',[],''],
	['PAGE','152',jdecode('Contact+Us'),jdecode(''),'/152.html','true',[],''],
	['PAGE','1167',jdecode('Journal'),jdecode(''),'/1167.html','true',[],''],
	['PAGE','1176',jdecode('Guestbook'),jdecode(''),'/1176/index.html','true',[ 
		['PAGE','1175',jdecode('Read+Guestbook'),jdecode(''),'/1176/1175.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Filofax';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='522';
theSitetree.keyvisualName='buero1.jpg';
theSitetree.fontsetId='61';
theSitetree.graphicsetId='62';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Filofax'
,				paletteFamily: 	'003366'
,				keyvisualId: 	'522'
,				keyvisualName: 	'buero1.jpg'
,				fontsetId: 		'61'
,				graphicsetId: 	'62'
,				contentColor: 	'000000'
,				contentBGColor: 'FFFFFF'
,				a_color: 		'003366'
,				b_color: 		'66CCFF'
,				c_color: 		'000000'
,				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 */					                                                            
