/* [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','4598',jdecode('Startseite'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','4871',jdecode('Kontaktformular'),jdecode(''),'/4598/4871.html','true',[],''],
		['PAGE','29223',jdecode('Kontakt+und+Links+%28Folgeseite%29'),jdecode(''),'/4598/29223.html','false',[],''],
		['PAGE','30550',jdecode('Links'),jdecode(''),'/4598/30550.html','true',[],''],
		['PAGE','39294',jdecode('Impressum'),jdecode(''),'/4598/39294.html','true',[],'']
	],''],
	['PAGE','4763',jdecode('Veranstaltungen'),jdecode(''),'/4763/index.html','true',[ 
		['PAGE','38667',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/4763/38667.html','true',[],''],
		['PAGE','16305',jdecode('Lageplan'),jdecode(''),'/4763/16305.html','true',[],''],
		['PAGE','28729',jdecode('Wetter'),jdecode(''),'/4763/28729.html','true',[],''],
		['PAGE','30519',jdecode('Pressespiegel'),jdecode(''),'/4763/30519.html','true',[],''],
		['PAGE','29037',jdecode('B%FCrgerfest'),jdecode(''),'/4763/29037.html','true',[],''],
		['PAGE','33247',jdecode('Oktoberfest'),jdecode(''),'/4763/33247.html','true',[],''],
		['PAGE','29005',jdecode('Weihnachtsmarkt'),jdecode(''),'/4763/29005.html','true',[],''],
		['PAGE','46501',jdecode('Ferienpass'),jdecode(''),'/4763/46501.html','true',[],'']
	],''],
	['PAGE','4655',jdecode('%DCber+uns'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','51572',jdecode('Aktuelles'),jdecode(''),'/4655/51572.html','true',[],''],
		['PAGE','4682',jdecode('Vorstand'),jdecode(''),'/4655/4682.html','true',[],''],
		['PAGE','16278',jdecode('Mitglied+werden'),jdecode(''),'/4655/16278.html','true',[],''],
		['PAGE','30581',jdecode('Mitgliedsantrag'),jdecode(''),'/4655/30581.html','true',[],''],
		['PAGE','21701',jdecode('Satzung'),jdecode(''),'/4655/21701.html','true',[],'']
	],''],
	['PAGE','4790',jdecode('Info+f%FCr+Mitglieder'),jdecode(''),'/4790/index.html','true',[ 
		['PAGE','49663',jdecode('Mitgliederversammlung'),jdecode(''),'/4790/49663.html','true',[],'']
	],''],
	['PAGE','16332',jdecode('Fotoalben'),jdecode(''),'/16332/index.html','true',[ 
		['PAGE','36317',jdecode('Augarten'),jdecode(''),'/16332/36317.html','true',[],''],
		['PAGE','46029',jdecode('B%FCrgerfest'),jdecode(''),'/16332/46029.html','true',[],''],
		['PAGE','32717',jdecode('Oktoberfest'),jdecode(''),'/16332/32717.html','true',[],''],
		['PAGE','37001',jdecode('Weihnachtsmarkt'),jdecode(''),'/16332/37001.html','true',[],''],
		['PAGE','30768',jdecode('Interne+Bilder'),jdecode(''),'/16332/30768.html','true',[],'']
	],''],
	['PAGE','29075',jdecode('G%E4stebuch'),jdecode(''),'/29075/index.html','true',[ 
		['PAGE','29074',jdecode('Neuer+Eintrag'),jdecode(''),'/29075/29074.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Filofax';
					                                                                    
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 */					                                                            

