/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','4612',jdecode('%DCber+uns'),jdecode(''),'/4612.html','true',[],''],
	['PAGE','74192',jdecode('Kontakt'),jdecode(''),'/74192.html','true',[],''],
	['PAGE','110409',jdecode('Bruno+%26+Gonzales'),jdecode(''),'/110409.html','true',[],''],
	['PAGE','4666',jdecode('Unsere+R%E4der'),jdecode(''),'/4666.html','true',[],''],
	['PAGE','124820',jdecode('Gefahrene+Km'),jdecode(''),'/124820.html','true',[],''],
	['PAGE','102369',jdecode('Sponsoren'),jdecode(''),'/102369/index.html','true',[ 
		['PAGE','58591',jdecode('Sponsoren+2007'),jdecode(''),'/102369/58591.html','true',[],''],
		['PAGE','102400',jdecode('Sponsoren+2009'),jdecode(''),'/102369/102400.html','true',[],''],
		['PAGE','119234',jdecode('Sponsoren+2010'),jdecode(''),'/102369/119234.html','true',[],'']
	],''],
	['PAGE','24666',jdecode('Radreisen%2F%DCbersicht'),jdecode(''),'/24666.html','true',[],''],
	['PAGE','4693',jdecode('2002++Rhein%2FMosel'),jdecode(''),'/4693.html','true',[],''],
	['PAGE','4720',jdecode('2003++Budapest'),jdecode(''),'/4720.html','true',[],''],
	['PAGE','33981',jdecode('2003++Flu%DFtour'),jdecode(''),'/33981.html','true',[],''],
	['PAGE','28266',jdecode('2004++W%F6rth'),jdecode(''),'/28266.html','true',[],''],
	['PAGE','28293',jdecode('2004++Plittersdorf'),jdecode(''),'/28293.html','true',[],''],
	['PAGE','37219',jdecode('2005++Plattensee'),jdecode(''),'/37219.html','true',[],''],
	['PAGE','44565',jdecode('2006++Linz%28A%29'),jdecode(''),'/44565.html','true',[],''],
	['PAGE','47194',jdecode('2006++Bodensee'),jdecode(''),'/47194.html','true',[],''],
	['PAGE','50291',jdecode('2007++Rum%E4nien'),jdecode(''),'/50291.html','true',[],''],
	['PAGE','78992',jdecode('2009+++K%F6ln+-+Passau'),jdecode(''),'/78992.html','true',[],''],
	['PAGE','115434',jdecode('2009++Passau-Linz'),jdecode(''),'/115434.html','true',[],''],
	['PAGE','118237',jdecode('2009+K%F6ln-Bodensee'),jdecode(''),'/118237.html','true',[],''],
	['PAGE','121443',jdecode('2010+K%F6ln-Esztergom'),jdecode(''),'/121443.html','true',[],''],
	['PAGE','56991',jdecode('Busreisen'),jdecode(''),'/56991/index.html','true',[ 
		['PAGE','59022',jdecode('K%F6ln+-+Ungarn'),jdecode(''),'/56991/59022.html','true',[],''],
		['PAGE','59180',jdecode('K%F6ln+-+Gardasee'),jdecode(''),'/56991/59180.html','true',[],'']
	],''],
	['PAGE','12034',jdecode('Links'),jdecode(''),'/12034.html','true',[],''],
	['PAGE','9929',jdecode('Fotos'),jdecode(''),'/9929.html','true',[],''],
	['PAGE','10933',jdecode('G%E4stebuch'),jdecode(''),'/10933/index.html','true',[ 
		['PAGE','10934',jdecode('Eintr%E4ge'),jdecode(''),'/10933/10934.html','true',[],'']
	],''],
	['PAGE','51391',jdecode('Impressum'),jdecode(''),'/51391.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
