/* [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','4613',jdecode('Gospel+Frontiers'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','4697',jdecode('KWM'),jdecode(''),'/4697.html','true',[],''],
	['PAGE','79889',jdecode('Garvin+Arthur'),jdecode(''),'/79889.html','true',[],''],
	['PAGE','60101',jdecode('Madeleine+Kerzner'),jdecode(''),'/60101.html','true',[],''],
	['PAGE','35528',jdecode('Karen+Jules'),jdecode(''),'/35528.html','true',[],''],
	['PAGE','34601',jdecode('Featured+Artists'),jdecode(''),'/34601.html','true',[],''],
	['PAGE','7802',jdecode('Mr+%26%23x27%3BO%26%23x27%3B+aka+Willie+Odom'),jdecode(''),'/7802.html','true',[],''],
	['PAGE','7829',jdecode('Events'),jdecode(''),'/7829.html','true',[],''],
	['PAGE','46101',jdecode('SOS+Vocal+Training'),jdecode(''),'/46101.html','true',[],''],
	['PAGE','4778',jdecode('UK+Gospel+Indies'),jdecode(''),'/4778.html','true',[],''],
	['PAGE','8902',jdecode('Gospel+Music'),jdecode(''),'/8902/index.html','true',[ 
		['PAGE','48406',jdecode('Gospel+Music+%28follow+up+page%29'),jdecode(''),'/8902/48406.html','false',[],'']
	],''],
	['PAGE','4724',jdecode('Praise+%26+Worship+Music'),jdecode(''),'/4724.html','true',[],''],
	['PAGE','4886',jdecode('Management+Services'),jdecode(''),'/4886/index.html','true',[ 
		['PAGE','29202',jdecode('Reviews+%28follow+up+page%29'),jdecode(''),'/4886/29202.html','false',[],'']
	],''],
	['PAGE','4913',jdecode('Christian+Songwriters'),jdecode(''),'/4913.html','true',[],''],
	['PAGE','75588',jdecode('Copyrighting'),jdecode(''),'/75588.html','true',[],''],
	['PAGE','34701',jdecode('UK+Artists'),jdecode(''),'/34701.html','true',[],''],
	['PAGE','6802',jdecode('Be+Inspired'),jdecode(''),'/6802.html','true',[],''],
	['PAGE','4751',jdecode('UK+Christian+Music'),jdecode(''),'/4751.html','true',[],''],
	['PAGE','4940',jdecode('Contact+Details'),jdecode(''),'/4940.html','true',[],''],
	['PAGE','34503',jdecode('Guestbook'),jdecode(''),'/34503/index.html','true',[ 
		['PAGE','34504',jdecode('Read+Guestbook'),jdecode(''),'/34503/34504.html','true',[],'']
	],''],
	['PAGE','35701',jdecode('Gospel+Links'),jdecode(''),'/35701.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            

