/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','4801',jdecode('About+us'),jdecode(''),'/4801/index.html','true',[ 
		['PAGE','4822',jdecode('Background'),jdecode(''),'/4801/4822.html','true',[],''],
		['PAGE','4843',jdecode('Mission'),jdecode(''),'/4801/4843.html','true',[],'']
	],''],
	['PAGE','4864',jdecode('Areas+of+Practice'),jdecode(''),'/4864/index.html','true',[ 
		['PAGE','4885',jdecode('Criminal+Defense'),jdecode(''),'/4864/4885.html','true',[],''],
		['PAGE','4906',jdecode('Civil+Litigation'),jdecode(''),'/4864/4906.html','true',[],'']
	],''],
	['PAGE','4927',jdecode('Press+and+Media'),jdecode(''),'/4927.html','true',[],''],
	['PAGE','4948',jdecode('Contact'),jdecode(''),'/4948.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Atmosphere';
theSitetree.paletteFamily='003333';
theSitetree.keyvisualId='109';
theSitetree.keyvisualName='gericht.jpg';
theSitetree.fontsetId='12';
theSitetree.graphicsetId='5';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Atmosphere',
				paletteFamily: 	'003333',
				keyvisualId: 	'109',
				keyvisualName: 	'gericht.jpg',
				fontsetId: 		'12',
				graphicsetId: 	'5',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003333',
				b_color: 		'669999',
				c_color: 		'000000',
				d_color: 		'',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '11996182',
customField: '1501'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INZ5CS';
var companyName   = 'Law+Offices+of+Lee+McMillian';
var htmlTitle	  = 'LeeMcMillian.com';
var metaKeywords  = 'law%2C+lawyer%2C+attorney%2C+abogado%2C+licenciado%2C+advocate%2C+trial%2C+appeal%2C+appellate%2C+Lee%2C+Lee+McMillian%2C+McMillion%2C+MacMillan%2C+McMillan%2C+MacMillan%2C+McMillon%2C+Mellon%2C+Lee+Mellon%2C+Leemac%2C+Texas%2C+New+Mexico%2C+Federal%2C+criminal+defense%2C++right+to+remain+silent%2C++friends+dont+let+friends+plead+guilty%2C++discrete+criminal+defense%2C++zealous+advocacy%2C+crime%2C+crimes%2C+criminal%2C+offense%2C+offenses%2C+murder%2C+homicide%2C+capital%2C+manslaughter%2C+white%2C+collar%2C+white+collar%2C+embezzle%2C+embezzlement%2C+internet%2C+internet+crime%2C+drug%2C+drugs%2C+controlled+substance%2C+traffick%2C+trafficking%2C+driving%2C+DWI%2C+DUI%2C+driving+while+intoxicated%2C+driving+while+impaired%2C+impaired%2C+under+the+influence%2C+vehicle%2C+vehicular%2C+vehicular+homicide%2C+search%2C+search+and+seizure%2C+illegal+search%2C+weapon%2C+weapons%2C+firearm%2C+firearms%2C+gun%2C+guns%2C+use%2C+display%2C+negligent%2C+negligent+homicide%2C+administrative%2C+administrative+offenses%2C+license%2C+drivers+license%2C+license+to+drive%2C+license+suspension%2C+revoke%2C+revocation%2C+license+revocation%2C+corporate%2C+corporate+services%2C+civil%2C+civil+litigation%2C+juvenile%2C+juveniles%2C+pilot%2C+pilots+license%2C+FAA%2C+DEA%2C+FBI%2C+BATF%2C+ATF+';
var metaContents  = 'Texas+Criminal+Defense+Lawyer%2C++New+Mexico+Criminal+Defense+Lawyer%2C+Civil+Litigation+';
					                                                                    
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 */					                                                            

