/* [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('Home+%26+Contact'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','4670',jdecode('About+us'),jdecode(''),'/4670/index.html','true',[ 
		['PAGE','4697',jdecode('David'),jdecode(''),'/4670/4697.html','true',[],''],
		['PAGE','4724',jdecode('Grete'),jdecode(''),'/4670/4724.html','true',[],''],
		['PAGE','148169',jdecode('Family'),jdecode(''),'/4670/148169.html','true',[],''],
		['PAGE','120128',jdecode('Dressing+up'),jdecode(''),'/4670/120128.html','true',[],''],
		['PAGE','120097',jdecode('Latest+News'),jdecode(''),'/4670/120097.html','true',[],''],
		['PAGE','119951',jdecode('Plans+and+Dreams'),jdecode(''),'/4670/119951.html','true',[],'']
	],''],
	['PAGE','4751',jdecode('Travel'),jdecode(''),'/4751/index.html','true',[ 
		['PAGE','114614',jdecode('1976+-+1983'),jdecode(''),'/4751/114614.html','true',[],''],
		['PAGE','115014',jdecode('1984+-+1987'),jdecode(''),'/4751/115014.html','true',[],''],
		['PAGE','115003',jdecode('1988+-+1990'),jdecode(''),'/4751/115003.html','true',[],''],
		['PAGE','115752',jdecode('1991+-+1992+'),jdecode(''),'/4751/115752.html','true',[],''],
		['PAGE','116669',jdecode('1993+-+1994'),jdecode(''),'/4751/116669.html','true',[],''],
		['PAGE','117369',jdecode('1995+-+1996'),jdecode(''),'/4751/117369.html','true',[],''],
		['PAGE','118201',jdecode('1997+-+1998'),jdecode(''),'/4751/118201.html','true',[],''],
		['PAGE','118669',jdecode('1999+-+2000'),jdecode(''),'/4751/118669.html','true',[],''],
		['PAGE','119034',jdecode('2001+-+2002'),jdecode(''),'/4751/119034.html','true',[],''],
		['PAGE','119065',jdecode('2003+-+2004'),jdecode(''),'/4751/119065.html','true',[],''],
		['PAGE','119096',jdecode('2005+-+2006'),jdecode(''),'/4751/119096.html','true',[],''],
		['PAGE','165069',jdecode('2007+-+2008'),jdecode(''),'/4751/165069.html','true',[],''],
		['PAGE','171973',jdecode('2009+-+2010'),jdecode(''),'/4751/171973.html','true',[],''],
		['PAGE','164669',jdecode('Travel+Advice'),jdecode(''),'/4751/164669.html','true',[],'']
	],''],
	['PAGE','4778',jdecode('Hobbies'),jdecode(''),'/4778/index.html','true',[ 
		['PAGE','118069',jdecode('Sports+and+Activities'),jdecode(''),'/4778/118069.html','true',[],''],
		['PAGE','27205',jdecode('Bristol+Zoo'),jdecode(''),'/4778/27205.html','true',[],''],
		['PAGE','26626',jdecode('Birds'),jdecode(''),'/4778/26626.html','true',[],''],
		['PAGE','27232',jdecode('Butterflies'),jdecode(''),'/4778/27232.html','true',[],''],
		['PAGE','97215',jdecode('Days+out'),jdecode(''),'/4778/97215.html','true',[],''],
		['PAGE','120314',jdecode('Snorkelling'),jdecode(''),'/4778/120314.html','true',[],''],
		['PAGE','129895',jdecode('Arts+and+Crafts'),jdecode(''),'/4778/129895.html','true',[],''],
		['PAGE','129926',jdecode('Food%2C+Wine+%26+Cooking'),jdecode(''),'/4778/129926.html','true',[],''],
		['PAGE','26653',jdecode('Penguins'),jdecode(''),'/4778/26653.html','true',[],''],
		['PAGE','26680',jdecode('Lizards'),jdecode(''),'/4778/26680.html','true',[],''],
		['PAGE','163269',jdecode('Quotes'),jdecode(''),'/4778/163269.html','true',[],'']
	],''],
	['PAGE','120345',jdecode('Precious+memories'),jdecode(''),'/120345/index.html','true',[ 
		['PAGE','150669',jdecode('The+journey+to+Shanklands'),jdecode(''),'/120345/150669.html','true',[],''],
		['PAGE','151027',jdecode('Death+of+a+warehouse'),jdecode(''),'/120345/151027.html','true',[],''],
		['PAGE','165469',jdecode('Chehel+Sotun+Palace'),jdecode(''),'/120345/165469.html','true',[],'']
	],''],
	['PAGE','120159',jdecode('Lists+and+Statistics'),jdecode(''),'/120159/index.html','true',[ 
		['PAGE','120221',jdecode('Hotels'),jdecode(''),'/120159/120221.html','true',[],''],
		['PAGE','120252',jdecode('Transport'),jdecode(''),'/120159/120252.html','true',[],''],
		['PAGE','120283',jdecode('Riding'),jdecode(''),'/120159/120283.html','true',[],''],
		['PAGE','120376',jdecode('Animals'),jdecode(''),'/120159/120376.html','true',[],''],
		['PAGE','158369',jdecode('Countries'),jdecode(''),'/120159/158369.html','true',[],'']
	],''],
	['PAGE','144369',jdecode('Links'),jdecode(''),'/144369.html','true',[],''],
	['PAGE','82302',jdecode('Guestbook'),jdecode(''),'/82302/index.html','true',[ 
		['PAGE','82303',jdecode('Read+Guestbook'),jdecode(''),'/82302/82303.html','true',[],'']
	],'']];
var siteelementCount=48;
theSitetree.topTemplateName='Fotoalbum';
					                                                                    
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 */					                                                            
