/* [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('Home+'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','76901',jdecode('Contact'),jdecode(''),'/76901.html','true',[],''],
	['PAGE','7101',jdecode('Danny%26%23x27%3Bs+Story'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','38501',jdecode('Educational+Links'),jdecode(''),'/38501.html','true',[],''],
	['PAGE','67801',jdecode('Food+For+Health'),jdecode(''),'/67801.html','true',[],''],
	['PAGE','37702',jdecode('Guestbook'),jdecode(''),'/37702/index.html','true',[ 
		['PAGE','37703',jdecode('Read+Guestbook'),jdecode(''),'/37702/37703.html','true',[],'']
	],''],
	['PAGE','70501',jdecode('Healing+Retreats'),jdecode(''),'/70501.html','true',[],''],
	['PAGE','81219',jdecode('Healthy+Pets'),jdecode(''),'/81219.html','true',[],''],
	['PAGE','80001',jdecode('Inspiration'),jdecode(''),'/80001.html','true',[],''],
	['PAGE','7128',jdecode('Modalities'),jdecode(''),'/7128.html','true',[],''],
	['PAGE','7209',jdecode('More+About+Danny'),jdecode(''),'/7209.html','true',[],''],
	['PAGE','63801',jdecode('Product+Links'),jdecode(''),'/63801.html','true',[],''],
	['PAGE','7155',jdecode('Profiles'),jdecode(''),'/7155.html','true',[],''],
	['PAGE','43316',jdecode('Recommended+Books'),jdecode(''),'/43316.html','true',[],''],
	['PAGE','77401',jdecode('Referral+Links+-+AZ'),jdecode(''),'/77401.html','true',[],''],
	['PAGE','60001',jdecode('Referral+Links+-+CA'),jdecode(''),'/60001.html','true',[],''],
	['PAGE','60805',jdecode('Referral+Links+-+CO'),jdecode(''),'/60805.html','true',[],''],
	['PAGE','7182',jdecode('Referral+Links+-+FL'),jdecode(''),'/7182.html','true',[],''],
	['PAGE','87613',jdecode('Referral+Links+-+ME'),jdecode(''),'/87613.html','true',[],''],
	['PAGE','102313',jdecode('Referral+Links+-+MN'),jdecode(''),'/102313.html','true',[],''],
	['PAGE','60836',jdecode('Referral+Links+-+WA'),jdecode(''),'/60836.html','true',[],''],
	['PAGE','95301',jdecode('Referral+Links+-+Canada'),jdecode(''),'/95301.html','true',[],''],
	['PAGE','84601',jdecode('Referral+Links+-+Mexico'),jdecode(''),'/84601.html','true',[],''],
	['PAGE','60401',jdecode('Referral+Links+-+Worldwide'),jdecode(''),'/60401.html','true',[],''],
	['PAGE','78901',jdecode('Special+Services'),jdecode(''),'/78901.html','true',[],''],
	['PAGE','41601',jdecode('Therapy+Programs'),jdecode(''),'/41601.html','true',[],''],
	['PAGE','39314',jdecode('With+Gratitude'),jdecode(''),'/39314.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
