/* [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('Our+Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','17701',jdecode('Us%2C+Our+Family+%26+Friends'),jdecode(''),'/17701.html','true',[],''],
	['PAGE','112065',jdecode('Our+United+States'),jdecode(''),'/112065.html','true',[],''],
	['PAGE','22958',jdecode('2004+-+Chile'),jdecode(''),'/22958.html','true',[],''],
	['PAGE','29301',jdecode('Baja+-+Gulf+of+CA'),jdecode(''),'/29301.html','true',[],''],
	['PAGE','30901',jdecode('QLD%2FSouth+Pacific+Islands'),jdecode(''),'/30901.html','true',[],''],
	['PAGE','42601',jdecode('South+Africa+'),jdecode(''),'/42601.html','true',[],''],
	['PAGE','53401',jdecode('Botswana%2C+Namibia+%26+Zimbabwe'),jdecode(''),'/53401.html','true',[],''],
	['PAGE','59394',jdecode('2005+-Trinidad+%26+Tobago'),jdecode(''),'/59394.html','true',[],''],
	['PAGE','59425',jdecode('Michigan+%26+Ontario'),jdecode(''),'/59425.html','true',[],''],
	['PAGE','66701',jdecode('Yosemite+NP'),jdecode(''),'/66701.html','true',[],''],
	['PAGE','77301',jdecode('Madagascar'),jdecode(''),'/77301.html','true',[],''],
	['PAGE','81901',jdecode('Zambia%2C+Botswana+%26+Namibia'),jdecode(''),'/81901.html','true',[],''],
	['PAGE','81932',jdecode('Italy'),jdecode(''),'/81932.html','true',[],''],
	['PAGE','88916',jdecode('2006+-+London%2C+England'),jdecode(''),'/88916.html','true',[],''],
	['PAGE','91304',jdecode('Cameroon+to+Egypt'),jdecode(''),'/91304.html','true',[],''],
	['PAGE','117592',jdecode('Around+the+World+'),jdecode(''),'/117592.html','true',[],''],
	['PAGE','121509',jdecode('2007+-+China'),jdecode(''),'/121509.html','true',[],''],
	['PAGE','125611',jdecode('Australia+%26+PNG'),jdecode(''),'/125611.html','true',[],''],
	['PAGE','137427',jdecode('2008+-+Antarctica%3B+Midwest%3B+%2B'),jdecode(''),'/137427.html','true',[],''],
	['PAGE','137458',jdecode('2009+-+Mexico'),jdecode(''),'/137458.html','true',[],''],
	['PAGE','137489',jdecode('5+Stans%2C+Russia+%26+Germany'),jdecode(''),'/137489.html','true',[],''],
	['PAGE','137811',jdecode('2010'),jdecode(''),'/137811.html','true',[],''],
	['PAGE','16862',jdecode('Guestbook'),jdecode(''),'/16862/index.html','true',[ 
		['PAGE','16863',jdecode('Read+Guestbook'),jdecode(''),'/16862/16863.html','true',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Picture';
					                                                                    
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 */					                                                            
