/* [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','27301',jdecode('About+us'),jdecode(''),'/27301.html','true',[],''],
	['PAGE','27322',jdecode('Projects'),jdecode(''),'/27322.html','true',[],''],
	['PAGE','8264',jdecode('Store+Front'),jdecode(''),'/8264.html','true',[],''],
	['PAGE','28401',jdecode('+Photographs'),jdecode(''),'/28401.html','true',[],''],
	['PAGE','6901',jdecode('Links'),jdecode(''),'/6901.html','true',[],''],
	['PAGE','8285',jdecode('Contact+Us'),jdecode(''),'/8285.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Liveliness';
theSitetree.paletteFamily='D74343';
theSitetree.keyvisualId='3268';
theSitetree.keyvisualName='kv_3268.jpg';
theSitetree.fontsetId='10693';
theSitetree.graphicsetId='10731';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Liveliness',
				paletteFamily: 	'D74343',
				keyvisualId: 	'3268',
				keyvisualName: 	'kv_3268.jpg',
				fontsetId: 		'10693',
				graphicsetId: 	'10731',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D74343',
				e_color: 		'BCBCBC',
				f_color: 		'737373',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, 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:  '11609647',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '28401',
internalId:  '11e0e738e83',
customField: 'g.13o76s1e7.3bb4cvamtt2.f0'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INZMTV';
var companyName   = 'Interfith+Action+International';
var htmlTitle	  = 'INTERFAIH+ACTION';
var metaKeywords  = 'Guatemala+Maya+Mayan+Methodist+UMC+Mission+mission++Photos+Gifts++good+works+United+Methodist+mission+project+beads+jewelry+handmade+handcrafted+purses+wallets+jackets+belts+Chonitas+Chonita+community+development';
var metaContents  = 'Interfaith+Action+International+is+a+501%28c%293+charitable+organization+whos+mission+is+to+help+people+in+developing+and+undeveloped+nations+through+their+own+programs+to+achieve+health%2C+education+and+a+higher+standard+of+living%2C+to+become+self+empowered.+';
					                                                                    
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 */					                                                            

