/* [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','1501',jdecode('Home'),jdecode(''),'/1501.html','true',[],''],
	['PAGE','6901',jdecode('Web+Services'),jdecode(''),'/6901/index.html','true',[ 
		['PAGE','7701',jdecode('Web+Services+%28follow+up+page%29'),jdecode(''),'/6901/7701.html','false',[],'']
	],''],
	['PAGE','6922',jdecode('Writing+Services'),jdecode(''),'/6922/index.html','true',[ 
		['PAGE','7901',jdecode('Writing+Services+%28follow+up+page%29'),jdecode(''),'/6922/7901.html','false',[],'']
	],''],
	['PAGE','6943',jdecode('Instruction+Services'),jdecode(''),'/6943/index.html','true',[ 
		['PAGE','8101',jdecode('Instruction+Services+%28follow+up+page%29'),jdecode(''),'/6943/8101.html','false',[],'']
	],''],
	['PAGE','5301',jdecode('About+Dave'),jdecode(''),'/5301/index.html','true',[ 
		['PAGE','6501',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/5301/6501.html','false',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='718DF8';
theSitetree.keyvisualId='9693';
theSitetree.keyvisualName='kv_9693.gif';
theSitetree.fontsetId='10659';
theSitetree.graphicsetId='11186';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var theTemplate={
				name: 			'Dispose',
				paletteFamily: 	'718DF8',
				keyvisualId: 	'9693',
				keyvisualName: 	'kv_9693.gif',
				fontsetId: 		'10659',
				graphicsetId: 	'11186',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6901',
internalId:  'aaff10in2gjz1189993cbfa',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6501',
internalId:  'aaff10in2gjz118990c9084',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7701',
internalId:  'aaff10in2gjz1189993cbfa',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6922',
internalId:  'aaff10in2gjz11899aa4af0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7901',
internalId:  'aaff10in2gjz11899aa4af0',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6943',
internalId:  'aaff10in2gjz11899cc8377',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8101',
internalId:  'aaff10in2gjz11899cc8377',
customField: 'followUp'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10IN2GJZ';
var companyName   = '+++++DAVE+WHITE+++++++++++++++++the-write-thing.com';
var htmlTitle	  = 'Dave+White+-+Web+Development++Design+-+the-write-thing.com';
var metaKeywords  = 'dave+white%2C+web+design%2C+web+development%2C+writer%2C+instructor%2C+editor';
var metaContents  = 'Dave+White+is+a+freelance+web+developer+and+designer%2C+writer+and+instructor%2C+specializing+in+affordable+content+development+and+design+for+associations%2C+organizations+and+individual+professionals.';
					                                                                    
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 */					                                                            
