/* [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','4481',jdecode('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','9227',jdecode('Gutachten'),jdecode(''),'/9227.html','true',[],''],
	['PAGE','9254',jdecode('Lehrg%E4nge'),jdecode(''),'/9254/index.html','true',[ 
		['PAGE','98987',jdecode('Fotoalbum+Lehrg%E4nge'),jdecode(''),'/9254/98987.html','true',[],''],
		['PAGE','69574',jdecode('Wiederladen%2C+Vorderlader+u.+B%F6ller'),jdecode(''),'/9254/69574.html','true',[],''],
		['PAGE','99777',jdecode('Reinigung+von+Schie%DFst%E4nden'),jdecode(''),'/9254/99777.html','true',[],''],
		['PAGE','62098',jdecode('Sachkundelehrg%E4nge'),jdecode(''),'/9254/62098.html','true',[],''],
		['PAGE','98474',jdecode('Fachkundelehrgang'),jdecode(''),'/9254/98474.html','true',[],'']
	],''],
	['PAGE','9281',jdecode('Publikationen'),jdecode(''),'/9281/index.html','true',[ 
		['PAGE','94174',jdecode('Pressestimmen'),jdecode(''),'/9281/94174.html','true',[],'']
	],''],
	['PAGE','9308',jdecode('Filmprojekte'),jdecode(''),'/9308.html','true',[],''],
	['PAGE','94007',jdecode('Flohmarkt'),jdecode(''),'/94007/index.html','true',[ 
		['PAGE','94038',jdecode('B%FCcher'),jdecode(''),'/94007/94038.html','true',[],''],
		['PAGE','109749',jdecode('Colt+-+Patronenwaffen'),jdecode(''),'/94007/109749.html','true',[],''],
		['PAGE','113805',jdecode('FN'),jdecode(''),'/94007/113805.html','true',[],''],
		['PAGE','116049',jdecode('Jagdwaffen'),jdecode(''),'/94007/116049.html','true',[],''],
		['PAGE','109450',jdecode('Luger+-+Parabellum'),jdecode(''),'/94007/109450.html','true',[],''],
		['PAGE','108931',jdecode('Mauser+C+96'),jdecode(''),'/94007/108931.html','true',[],''],
		['PAGE','94069',jdecode('Messer'),jdecode(''),'/94007/94069.html','true',[],''],
		['PAGE','109811',jdecode('Ordonnanzgewehre'),jdecode(''),'/94007/109811.html','true',[],''],
		['PAGE','109780',jdecode('S%26W+-+Patronenwaffen'),jdecode(''),'/94007/109780.html','true',[],''],
		['PAGE','94131',jdecode('Sonstiges'),jdecode(''),'/94007/94131.html','true',[],''],
		['PAGE','94100',jdecode('VL+-+Langwaffen'),jdecode(''),'/94007/94100.html','true',[],''],
		['PAGE','108900',jdecode('VL+-+Revolver'),jdecode(''),'/94007/108900.html','true',[],''],
		['PAGE','108749',jdecode('Wiederladen'),jdecode(''),'/94007/108749.html','true',[],''],
		['PAGE','114749',jdecode('Winchester'),jdecode(''),'/94007/114749.html','true',[],'']
	],''],
	['PAGE','93974',jdecode('Pressespiegel'),jdecode(''),'/93974.html','true',[],''],
	['PAGE','36101',jdecode('Ausstellungen'),jdecode(''),'/36101/index.html','true',[ 
		['PAGE','61374',jdecode('IWB+1992'),jdecode(''),'/36101/61374.html','true',[],''],
		['PAGE','61474',jdecode('IWB+1993'),jdecode(''),'/36101/61474.html','true',[],''],
		['PAGE','61505',jdecode('IWB+1994'),jdecode(''),'/36101/61505.html','true',[],''],
		['PAGE','61536',jdecode('IWB+1995'),jdecode(''),'/36101/61536.html','true',[],''],
		['PAGE','61567',jdecode('IWB+1996'),jdecode(''),'/36101/61567.html','true',[],''],
		['PAGE','61598',jdecode('IWB+1997'),jdecode(''),'/36101/61598.html','true',[],''],
		['PAGE','61629',jdecode('IWB+1998'),jdecode(''),'/36101/61629.html','true',[],''],
		['PAGE','61660',jdecode('IWB+1999'),jdecode(''),'/36101/61660.html','true',[],''],
		['PAGE','61691',jdecode('IWB+2000'),jdecode(''),'/36101/61691.html','true',[],''],
		['PAGE','61722',jdecode('IWB+2001'),jdecode(''),'/36101/61722.html','true',[],''],
		['PAGE','62789',jdecode('IWB+2002'),jdecode(''),'/36101/62789.html','true',[],''],
		['PAGE','62821',jdecode('IWB+2003'),jdecode(''),'/36101/62821.html','true',[],''],
		['PAGE','62852',jdecode('IWB+2004'),jdecode(''),'/36101/62852.html','true',[],''],
		['PAGE','62883',jdecode('IWB+2005'),jdecode(''),'/36101/62883.html','true',[],''],
		['PAGE','89774',jdecode('IWB+2006'),jdecode(''),'/36101/89774.html','true',[],''],
		['PAGE','98183',jdecode('IWB+2007'),jdecode(''),'/36101/98183.html','true',[],''],
		['PAGE','99819',jdecode('IWB+2008'),jdecode(''),'/36101/99819.html','true',[],''],
		['PAGE','89836',jdecode('Die+Helfer'),jdecode(''),'/36101/89836.html','true',[],'']
	],''],
	['PAGE','36561',jdecode('VdW-Reisen'),jdecode(''),'/36561/index.html','true',[ 
		['PAGE','62005',jdecode('VdW+-+Paris+-+Reise+1995'),jdecode(''),'/36561/62005.html','true',[],''],
		['PAGE','62036',jdecode('VdW+-+Wien+-+Reise+1996'),jdecode(''),'/36561/62036.html','true',[],''],
		['PAGE','97874',jdecode('VdW+-+Mutzig+-+Reise+Januar+2006'),jdecode(''),'/36561/97874.html','true',[],''],
		['PAGE','105249',jdecode('Reims+und+Verdun+2008'),jdecode(''),'/36561/105249.html','true',[],''],
		['PAGE','117750',jdecode('VdW+Reise+2009+nach+Br%FCssel'),jdecode(''),'/36561/117750.html','true',[],'']
	],''],
	['PAGE','36132',jdecode('News'),jdecode(''),'/36132.html','true',[],''],
	['PAGE','89805',jdecode('Termine'),jdecode(''),'/89805.html','true',[],''],
	['PAGE','91874',jdecode('Wichtige+Links'),jdecode(''),'/91874.html','true',[],''],
	['PAGE','36163',jdecode('Kontakt'),jdecode(''),'/36163/index.html','true',[ 
		['PAGE','62375',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/36163/62375.html','false',[],'']
	],''],
	['PAGE','9335',jdecode('Impressum'),jdecode(''),'/9335.html','true',[],''],
	['PAGE','93375',jdecode('G%E4stebuch'),jdecode(''),'/93375/index.html','true',[ 
		['PAGE','93376',jdecode('Eintr%E4ge'),jdecode(''),'/93375/93376.html','true',[],'']
	],'']];
var siteelementCount=60;
theSitetree.topTemplateName='Strom';
					                                                                    
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 */					                                                            

