/* [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','1112',jdecode('Home'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','1165',jdecode('Wir+%FCber+uns'),jdecode(''),'/1165/index.html','true',[ 
		['PAGE','1188',jdecode('Vorstand'),jdecode(''),'/1165/1188.html','true',[],''],
		['PAGE','11896',jdecode('Satzung'),jdecode(''),'/1165/11896.html','true',[],'']
	],''],
	['PAGE','9896',jdecode('Projekte'),jdecode(''),'/9896/index.html','true',[ 
		['PAGE','58335',jdecode('L%E4rmminderung'),jdecode(''),'/9896/58335.html','true',[],''],
		['PAGE','9923',jdecode('Bahnhofsvorplatz+Grb'),jdecode(''),'/9896/9923.html','true',[],''],
		['PAGE','10496',jdecode('Heimatbuch'),jdecode(''),'/9896/10496.html','true',[],''],
		['PAGE','47227',jdecode('Fotowettbewerb'),jdecode(''),'/9896/47227.html','true',[],'']
	],''],
	['PAGE','1234',jdecode('Termine'),jdecode(''),'/1234.html','true',[],''],
	['PAGE','1257',jdecode('Archiv'),jdecode(''),'/1257/index.html','true',[ 
		['PAGE','61026',jdecode('2006'),jdecode(''),'/1257/61026.html','true',[],''],
		['PAGE','56326',jdecode('2005'),jdecode(''),'/1257/56326.html','true',[],''],
		['PAGE','48727',jdecode('2004'),jdecode(''),'/1257/48727.html','true',[],''],
		['PAGE','24055',jdecode('2003'),jdecode(''),'/1257/24055.html','true',[],''],
		['PAGE','9608',jdecode('2002'),jdecode(''),'/1257/9608.html','true',[],''],
		['PAGE','1211',jdecode('bis+2001'),jdecode(''),'/1257/1211.html','true',[],'']
	],''],
	['PAGE','1303',jdecode('Mitglied+werden'),jdecode(''),'/1303.html','true',[],''],
	['PAGE','6278',jdecode('G%E4stebuch'),jdecode(''),'/6278/index.html','true',[ 
		['PAGE','6279',jdecode('Eintr%E4ge'),jdecode(''),'/6278/6279.html','true',[],'']
	],''],
	['PAGE','1326',jdecode('Links'),jdecode(''),'/1326.html','true',[],''],
	['PAGE','10823',jdecode('Impressum'),jdecode(''),'/10823.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            
