/* [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','124',jdecode('-Home'),jdecode(''),'/124.html','true',[],''],
	['PAGE','145',jdecode('-About+Us'),jdecode(''),'/145/index.html','true',[ 
		['PAGE','154',jdecode('Stanley+F.+Bronstein'),jdecode(''),'/145/154.html','true',[],''],
		['PAGE','172',jdecode('What+We+Don%26%23x27%3Bt+Do'),jdecode(''),'/145/172.html','true',[],'']
	],''],
	['PAGE','2936',jdecode('-Audio+Materials'),jdecode(''),'/2936/index.html','true',[ 
		['PAGE','3812',jdecode('10+Biggest+Mistakes'),jdecode(''),'/2936/3812.html','true',[],''],
		['PAGE','2151',jdecode('1031+Exchanges'),jdecode(''),'/2936/2151.html','true',[],''],
		['PAGE','7175',jdecode('Ownership+Choices'),jdecode(''),'/2936/7175.html','true',[],''],
		['PAGE','3551',jdecode('Why+You+Need+A+Lawyer'),jdecode(''),'/2936/3551.html','true',[],'']
	],''],
	['PAGE','181',jdecode('-Books+By+Mr.+Bronstein'),jdecode(''),'/181/index.html','true',[ 
		['PAGE','1845',jdecode('Books+Available+In+Print'),jdecode(''),'/181/1845.html','true',[],''],
		['PAGE','1854',jdecode('Books+In+Progress'),jdecode(''),'/181/1854.html','true',[],'']
	],''],
	['PAGE','190',jdecode('-Contact+Us'),jdecode(''),'/190/index.html','true',[ 
		['PAGE','2019',jdecode('-Contact+Us+%28follow+up+page%29'),jdecode(''),'/190/2019.html','false',[],'']
	],''],
	['PAGE','3333',jdecode('-How+To+Find+Us'),jdecode(''),'/3333.html','true',[],''],
	['PAGE','6525',jdecode('-Recent+Tax+Developments'),jdecode(''),'/6525.html','true',[],''],
	['PAGE','208',jdecode('-Success+Stories'),jdecode(''),'/208.html','true',[],''],
	['PAGE','226',jdecode('-Why+Hire+TheCPALawyer%3F'),jdecode(''),'/226.html','true',[],''],
	['PAGE','235',jdecode('1031+Exchange+Structuring'),jdecode(''),'/235.html','true',[],''],
	['PAGE','244',jdecode('Businesses'),jdecode(''),'/244.html','true',[],''],
	['PAGE','253',jdecode('Buy-Sell+Agreements'),jdecode(''),'/253.html','true',[],''],
	['PAGE','6966',jdecode('Conduit+Loans'),jdecode(''),'/6966.html','true',[],''],
	['PAGE','262',jdecode('Contracts'),jdecode(''),'/262.html','true',[],''],
	['PAGE','271',jdecode('Financing+Deals'),jdecode(''),'/271.html','true',[],''],
	['PAGE','280',jdecode('Leases'),jdecode(''),'/280.html','true',[],''],
	['PAGE','289',jdecode('LLCs+%26+Corporations'),jdecode(''),'/289/index.html','true',[ 
		['PAGE','2597',jdecode('LLCs'),jdecode(''),'/289/2597.html','true',[],''],
		['PAGE','2606',jdecode('Corporations'),jdecode(''),'/289/2606.html','true',[],''],
		['PAGE','2615',jdecode('Professional+LLCs'),jdecode(''),'/289/2615.html','true',[],''],
		['PAGE','2624',jdecode('Professional+Corporations'),jdecode(''),'/289/2624.html','true',[],''],
		['PAGE','2633',jdecode('Partnerships'),jdecode(''),'/289/2633.html','true',[],'']
	],''],
	['PAGE','6828',jdecode('Private+Placements'),jdecode(''),'/6828.html','true',[],''],
	['PAGE','298',jdecode('Real+Estate'),jdecode(''),'/298.html','true',[],''],
	['PAGE','307',jdecode('Tax+Planning'),jdecode(''),'/307.html','true',[],''],
	['PAGE','316',jdecode('Tax+Preparation'),jdecode(''),'/316.html','true',[],''],
	['PAGE','325',jdecode('TIC+Deal+Structuring'),jdecode(''),'/325.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='002F2F';
theSitetree.keyvisualId='1347';
theSitetree.keyvisualName='buero.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='298';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup'
,				paletteFamily: 	'002F2F'
,				keyvisualId: 	'1347'
,				keyvisualName: 	'buero.jpg'
,				fontsetId: 		'233'
,				graphicsetId: 	'298'
,				contentColor: 	'000000'
,				contentBGColor: 'FFFFFF'
,				a_color: 		'002F2F'
,				b_color: 		'666666'
,				c_color: 		'000000'
,				d_color: 		'FF0000'
,				e_color: 		'FF0000'
,				f_color: 		'FF0000'
 			  };					                                                                    
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 */					                                                            
