/* [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','4506',jdecode('HOME'),jdecode(''),'/4506.html','true',[],''],
	['PAGE','4563',jdecode('S%DCDAFRIKA'),jdecode(''),'/4563/index.html','true',[ 
		['PAGE','4617',jdecode('Reisebericht+2002++%2F1'),jdecode(''),'/4563/4617.html','true',[],''],
		['PAGE','8907',jdecode('Reisebericht+2002++%2F2'),jdecode(''),'/4563/8907.html','true',[],''],
		['PAGE','89482',jdecode('Reisebericht+2003%2F1'),jdecode(''),'/4563/89482.html','true',[],''],
		['PAGE','124218',jdecode('Reisebericht+2003%2F2'),jdecode(''),'/4563/124218.html','true',[],''],
		['PAGE','126298',jdecode('Reisebericht+2004'),jdecode(''),'/4563/126298.html','true',[],''],
		['PAGE','85469',jdecode('Allgemeines'),jdecode(''),'/4563/85469.html','true',[],''],
		['PAGE','4590',jdecode('Links+-+S%FCdafrika'),jdecode(''),'/4563/4590.html','true',[],''],
		['PAGE','84669',jdecode('Fotos'),jdecode(''),'/4563/84669.html','true',[],'']
	],''],
	['PAGE','50731',jdecode('AUSTRALIEN'),jdecode(''),'/50731/index.html','true',[ 
		['PAGE','50758',jdecode('Reisebericht+1992'),jdecode(''),'/50731/50758.html','true',[],''],
		['PAGE','64629',jdecode('Reisebericht+1999'),jdecode(''),'/50731/64629.html','true',[],''],
		['PAGE','64656',jdecode('Reisebericht+2001'),jdecode(''),'/50731/64656.html','true',[],''],
		['PAGE','50785',jdecode('Links+-+Australien'),jdecode(''),'/50731/50785.html','true',[],''],
		['PAGE','84941',jdecode('Fotos'),jdecode(''),'/50731/84941.html','true',[],'']
	],''],
	['PAGE','124904',jdecode('VIDEO+%3A+Elephant+plains'),jdecode(''),'/124904.html','true',[],''],
	['PAGE','4671',jdecode('FOTOALBEN'),jdecode(''),'/4671/index.html','true',[ 
		['PAGE','5978',jdecode('Australien+'),jdecode(''),'/4671/5978.html','true',[],''],
		['PAGE','10147',jdecode('S%FCdafrika+2002'),jdecode(''),'/4671/10147.html','true',[],''],
		['PAGE','124368',jdecode('S%FCdafrika+2003'),jdecode(''),'/4671/124368.html','true',[],''],
		['PAGE','126432',jdecode('S%FCdafrika+2004'),jdecode(''),'/4671/126432.html','true',[],'']
	],''],
	['PAGE','89715',jdecode('REISEPL%C4NE'),jdecode(''),'/89715.html','true',[],''],
	['PAGE','6903',jdecode('LINKSAMMLUNG'),jdecode(''),'/6903.html','true',[],''],
	['PAGE','82169',jdecode('KONTAKT'),jdecode(''),'/82169.html','true',[],''],
	['PAGE','83669',jdecode('%DCBER+MICH'),jdecode(''),'/83669.html','true',[],''],
	['PAGE','83696',jdecode('DISCLAIMER'),jdecode(''),'/83696.html','true',[],''],
	['PAGE','5602',jdecode('G%C4STEBUCH'),jdecode(''),'/5602/index.html','true',[ 
		['PAGE','5603',jdecode('Eintr%E4ge'),jdecode(''),'/5602/5603.html','true',[],'']
	],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Stripes';
					                                                                    
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 */					                                                            

