/* [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','54',jdecode('Home'),jdecode(''),'/54.html','true',[],''],
	['PAGE','3560',jdecode('About+us'),jdecode(''),'/3560/index.html','true',[ 
		['PAGE','3569',jdecode('Church+History'),jdecode(''),'/3560/3569.html','true',[],''],
		['PAGE','3578',jdecode('About+the+Pastor'),jdecode(''),'/3560/3578.html','true',[],''],
		['PAGE','3587',jdecode('Tenants+of+Faith'),jdecode(''),'/3560/3587.html','true',[],''],
		['PAGE','3596',jdecode('Church+Ministries'),jdecode(''),'/3560/3596.html','true',[],'']
	],''],
	['PAGE','3605',jdecode('Church+Services'),jdecode(''),'/3605.html','true',[],''],
	['PAGE','3614',jdecode('Calendar+of+Events'),jdecode(''),'/3614/index.html','true',[ 
		['PAGE','4773',jdecode('Announcements'),jdecode(''),'/3614/4773.html','true',[],'']
	],''],
	['PAGE','3378',jdecode('Spiritual+Building'),jdecode(''),'/3378/index.html','true',[ 
		['PAGE','3387',jdecode('Sermon+Broadcasts'),jdecode(''),'/3378/3387.html','true',[],''],
		['PAGE','3623',jdecode('Online+Store'),jdecode(''),'/3378/3623.html','true',[],''],
		['PAGE','3396',jdecode('Bible+Helps'),jdecode(''),'/3378/3396.html','true',[],''],
		['PAGE','3405',jdecode('Prayer+Requests'),jdecode(''),'/3378/3405.html','true',[],'']
	],''],
	['PAGE','3632',jdecode('Contact+Us'),jdecode(''),'/3632.html','true',[],''],
	['PAGE','3650',jdecode('Office+Suites'),jdecode(''),'/3650.html','true',[],''],
	['PAGE','3659',jdecode('Donations'),jdecode(''),'/3659.html','true',[],''],
	['PAGE','1353',jdecode('Photo+Album'),jdecode(''),'/1353.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='db7a7a';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='329';
theSitetree.graphicsetId='386';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus'
,				paletteFamily: 	'db7a7a'
,				keyvisualId: 	'2054'
,				keyvisualName: 	'blanko.jpg'
,				fontsetId: 		'329'
,				graphicsetId: 	'386'
,				contentColor: 	'000000'
,				contentBGColor: 'FFFFFF'
,				a_color: 		'db7a7a'
,				b_color: 		'FFFFFF'
,				c_color: 		'FFFFFF'
,				d_color: 		'FFFFFF'
,				e_color: 		'FFFFFF'
,				f_color: 		'FFFFFF'
 			  };					                                                                    
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 */					                                                            

