/* [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','914',jdecode('Home'),jdecode(''),'/914.html','true',[],''],
	['PAGE','965',jdecode('About+us'),jdecode(''),'/965.html','true',[],''],
	['PAGE','986',jdecode('Mission%2C+Vision+%26+Goals'),jdecode(''),'/986.html','true',[],''],
	['PAGE','1049',jdecode('Current+Projects'),jdecode(''),'/1049/index.html','true',[ 
		['PAGE','14914',jdecode('Woodshop'),jdecode(''),'/1049/14914.html','true',[],''],
		['PAGE','14935',jdecode('Women%26%23x27%3Bs+Cooperative'),jdecode(''),'/1049/14935.html','true',[],'']
	],''],
	['PAGE','4014',jdecode('Education+Opportunities'),jdecode(''),'/4014.html','true',[],''],
	['PAGE','4035',jdecode('Future+plans'),jdecode(''),'/4035.html','true',[],''],
	['PAGE','1070',jdecode('How+you+can+help'),jdecode(''),'/1070.html','true',[],''],
	['PAGE','15914',jdecode('Products+for+Sale'),jdecode(''),'/15914/index.html','true',[ 
		['PAGE','15814',jdecode('Women%26%23x27%3Bs+Cooperative'),jdecode(''),'/15914/15814.html','true',[],''],
		['PAGE','16714',jdecode('Woodshop'),jdecode(''),'/15914/16714.html','true',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Americanlife';
theSitetree.paletteFamily='50529E';
theSitetree.keyvisualId='4236';
theSitetree.keyvisualName='kv_4236.jpg';
theSitetree.fontsetId='10674';
theSitetree.graphicsetId='11188';
theSitetree.contentColor='D1CFCF';
theSitetree.contentBGColor='7B7CB4';
var theTemplate={
				name: 			'Americanlife',
				paletteFamily: 	'50529E',
				keyvisualId: 	'4236',
				keyvisualName: 	'kv_4236.jpg',
				fontsetId: 		'10674',
				graphicsetId: 	'11188',
				contentColor: 	'D1CFCF',
				contentBGColor: '7B7CB4',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '15814',
internalId:  '10cef22ec19',
customField: 'g.11jnhs6c2.je3orllfvb.d4'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '16714',
internalId:  '10cef3dbe46',
customField: 'g.11jnj3o11.l1jc1p3nv7.d4'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INXZTX';
var companyName   = 'DouglaPrieta+Works';
					                                                                    
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 */					                                                            
