/* [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','4436',jdecode('True%3F'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','177677',jdecode('Reason+...'),jdecode(''),'/177677.html','true',[],''],
	['PAGE','64301',jdecode('Rescue+Mission...'),jdecode(''),'/64301.html','true',[],''],
	['PAGE','177377',jdecode('What+If+%3F'),jdecode(''),'/177377.html','true',[],''],
	['PAGE','95026',jdecode('News+%26+Ideas...'),jdecode(''),'/95026.html','true',[],''],
	['PAGE','93401',jdecode('Perception+...'),jdecode(''),'/93401.html','true',[],''],
	['PAGE','64701',jdecode('Science+says...'),jdecode(''),'/64701.html','true',[],''],
	['PAGE','129553',jdecode('Peoples+Lives%21'),jdecode(''),'/129553.html','true',[],''],
	['PAGE','127853',jdecode('Discoveries%21'),jdecode(''),'/127853.html','true',[],''],
	['PAGE','129153',jdecode('Predictions%21'),jdecode(''),'/129153.html','true',[],''],
	['PAGE','64333',jdecode('Free+DVD%21+Plus.......'),jdecode(''),'/64333.html','true',[],''],
	['PAGE','91625',jdecode('Email+Us%21'),jdecode(''),'/91625.html','true',[],''],
	['PAGE','92522',jdecode('Have+Your+Say%21'),jdecode(''),'/92522.html','true',[],''],
	['PAGE','92523',jdecode('Read+Comments'),jdecode(''),'/92523.html','true',[],''],
	['PAGE','177177',jdecode('Soapbox+Chat%21'),jdecode(''),'/177177.html','true',[],''],
	['PAGE','94626',jdecode('Believers+Pages'),jdecode(''),'/94626.html','true',[],''],
	['PAGE','96584',jdecode('*NEW%21%21*++Textify%21'),jdecode(''),'/96584.html','true',[],''],
	['PAGE','95726',jdecode('Believers+Tool+Bag'),jdecode(''),'/95726.html','true',[],''],
	['PAGE','95445',jdecode('Believers+Helps'),jdecode(''),'/95445.html','true',[],''],
	['PAGE','129653',jdecode('Help+us%21'),jdecode(''),'/129653.html','true',[],''],
	['PAGE','95326',jdecode('Believers+Links'),jdecode(''),'/95326.html','true',[],''],
	['PAGE','127757',jdecode('Who+Are+We%3F'),jdecode(''),'/127757.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Enjoy';
					                                                                    
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 */					                                                            
