/* [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('Startseite'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','59099',jdecode('Aktuelles'),jdecode(''),'/59099.html','true',[],''],
	['PAGE','38738',jdecode('Unser+Ort'),jdecode(''),'/38738/index.html','true',[ 
		['PAGE','38311',jdecode('Lage%2C+Geschichte'),jdecode(''),'/38738/38311.html','true',[],''],
		['PAGE','38411',jdecode('Baugeschehen'),jdecode(''),'/38738/38411.html','true',[],''],
		['PAGE','38442',jdecode('Publikationen'),jdecode(''),'/38738/38442.html','true',[],''],
		['PAGE','67523',jdecode('Region'),jdecode(''),'/38738/67523.html','true',[],'']
	],''],
	['PAGE','40863',jdecode('Fotos+vom+Ort'),jdecode(''),'/40863/index.html','true',[ 
		['PAGE','4655',jdecode('Sommerbilder'),jdecode(''),'/40863/4655.html','true',[],''],
		['PAGE','40794',jdecode('Winterbilder'),jdecode(''),'/40863/40794.html','true',[],''],
		['PAGE','41349',jdecode('Bau+%2F+Archiv'),jdecode(''),'/40863/41349.html','true',[],''],
		['PAGE','53435',jdecode('Bau+%2F+aktuell'),jdecode(''),'/40863/53435.html','true',[],'']
	],''],
	['PAGE','65399',jdecode('f%FCr+unsere+G%E4ste'),jdecode(''),'/65399.html','true',[],''],
	['PAGE','38342',jdecode('Historische+B%E4der'),jdecode(''),'/38342/index.html','true',[ 
		['PAGE','48366',jdecode('Augustusbad'),jdecode(''),'/38342/48366.html','true',[],''],
		['PAGE','48397',jdecode('Herrmannsbad'),jdecode(''),'/38342/48397.html','true',[],''],
		['PAGE','48428',jdecode('Bad+an+der+R%F6der'),jdecode(''),'/38342/48428.html','true',[],''],
		['PAGE','48459',jdecode('Familienbad'),jdecode(''),'/38342/48459.html','true',[],'']
	],''],
	['PAGE','13726',jdecode('Unser+Verein'),jdecode(''),'/13726/index.html','true',[ 
		['PAGE','38478',jdecode('%DCber+uns'),jdecode(''),'/13726/38478.html','true',[],''],
		['PAGE','38509',jdecode('Ziele+2012'),jdecode(''),'/13726/38509.html','true',[],''],
		['PAGE','38540',jdecode('Vorstand%2C+Mitgliedschaft'),jdecode(''),'/13726/38540.html','true',[],''],
		['PAGE','38695',jdecode('Unterst%FCtzung'),jdecode(''),'/13726/38695.html','true',[],'']
	],''],
	['PAGE','13753',jdecode('Unsere+Heimatstube'),jdecode(''),'/13753/index.html','true',[ 
		['PAGE','38571',jdecode('Lage%2C+%D6ffnungszeiten'),jdecode(''),'/13753/38571.html','true',[],''],
		['PAGE','41297',jdecode('Fotos+Heimatstube'),jdecode(''),'/13753/41297.html','true',[],''],
		['PAGE','38602',jdecode('Geschichte'),jdecode(''),'/13753/38602.html','true',[],''],
		['PAGE','38633',jdecode('Ausstellungsthemen'),jdecode(''),'/13753/38633.html','true',[],''],
		['PAGE','38664',jdecode('Wir+suchen'),jdecode(''),'/13753/38664.html','true',[],'']
	],''],
	['PAGE','13780',jdecode('Veranstaltungen'),jdecode(''),'/13780/index.html','true',[ 
		['PAGE','43193',jdecode('Tag+des+Denkmals'),jdecode(''),'/13780/43193.html','true',[],''],
		['PAGE','43224',jdecode('Sonstiges'),jdecode(''),'/13780/43224.html','true',[],''],
		['PAGE','104457',jdecode('Wandergruppe+L.-A.'),jdecode(''),'/13780/104457.html','true',[],'']
	],''],
	['PAGE','18444',jdecode('G%E4stebuch'),jdecode(''),'/18444/index.html','true',[ 
		['PAGE','18445',jdecode('Eintr%E4ge'),jdecode(''),'/18444/18445.html','true',[],'']
	],''],
	['PAGE','86788',jdecode('Lageplan'),jdecode(''),'/86788.html','true',[],''],
	['PAGE','86823',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/86823.html','true',[],''],
	['PAGE','13834',jdecode('Impressum'),jdecode(''),'/13834.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='freeline';
					                                                                    
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 */					                                                            

