/* [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','1154',jdecode('Home'),jdecode(''),'/1154.html','true',[],''],
	['PAGE','27058',jdecode('25+Jahre+SHG'),jdecode(''),'/27058/index.html','true',[ 
		['PAGE','27089',jdecode('Gru%DFworte'),jdecode(''),'/27058/27089.html','true',[],''],
		['PAGE','27558',jdecode('Chronik'),jdecode(''),'/27058/27558.html','true',[],'']
	],''],
	['PAGE','1253',jdecode('%DCber+uns'),jdecode(''),'/1253/index.html','true',[ 
		['PAGE','19801',jdecode('Informationen'),jdecode(''),'/1253/19801.html','true',[],'']
	],''],
	['PAGE','1207',jdecode('Kontakt'),jdecode(''),'/1207/index.html','true',[ 
		['PAGE','21465',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/1207/21465.html','false',[],'']
	],''],
	['PAGE','1276',jdecode('Rat+%26+Hilfe'),jdecode(''),'/1276.html','true',[],''],
	['PAGE','1345',jdecode('Termine'),jdecode(''),'/1345.html','true',[],''],
	['PAGE','5897',jdecode('Aktuelles'),jdecode(''),'/5897/index.html','true',[ 
		['PAGE','21358',jdecode('Archiv'),jdecode(''),'/5897/21358.html','true',[],''],
		['PAGE','23459',jdecode('Wetter'),jdecode(''),'/5897/23459.html','true',[],'']
	],''],
	['PAGE','23558',jdecode('Presse'),jdecode(''),'/23558/index.html','true',[ 
		['PAGE','29758',jdecode('12.12.2011'),jdecode(''),'/23558/29758.html','true',[],''],
		['PAGE','28558',jdecode('03.12.2010'),jdecode(''),'/23558/28558.html','true',[],''],
		['PAGE','24858',jdecode('04.12.2009'),jdecode(''),'/23558/24858.html','true',[],''],
		['PAGE','24166',jdecode('22.06.2009'),jdecode(''),'/23558/24166.html','true',[],''],
		['PAGE','23958',jdecode('07.03.2009'),jdecode(''),'/23558/23958.html','true',[],''],
		['PAGE','23623',jdecode('20.01.2009'),jdecode(''),'/23558/23623.html','true',[],''],
		['PAGE','23778',jdecode('15.12.2008'),jdecode(''),'/23558/23778.html','true',[],''],
		['PAGE','23747',jdecode('05.12.2008'),jdecode(''),'/23558/23747.html','true',[],''],
		['PAGE','23716',jdecode('30.06.2008'),jdecode(''),'/23558/23716.html','true',[],''],
		['PAGE','23685',jdecode('23.04.2008'),jdecode(''),'/23558/23685.html','true',[],''],
		['PAGE','25892',jdecode('11.12.2007'),jdecode(''),'/23558/25892.html','true',[],''],
		['PAGE','25861',jdecode('16.04.2007'),jdecode(''),'/23558/25861.html','true',[],''],
		['PAGE','25830',jdecode('14.12.2006'),jdecode(''),'/23558/25830.html','true',[],''],
		['PAGE','25799',jdecode('13.10.2006'),jdecode(''),'/23558/25799.html','true',[],''],
		['PAGE','25768',jdecode('09.12.2005'),jdecode(''),'/23558/25768.html','true',[],''],
		['PAGE','25737',jdecode('09.09.2005'),jdecode(''),'/23558/25737.html','true',[],''],
		['PAGE','25706',jdecode('04.12.2004'),jdecode(''),'/23558/25706.html','true',[],''],
		['PAGE','25644',jdecode('24.08.2004'),jdecode(''),'/23558/25644.html','true',[],''],
		['PAGE','25675',jdecode('05.03.2004'),jdecode(''),'/23558/25675.html','true',[],''],
		['PAGE','25582',jdecode('13.11.2003'),jdecode(''),'/23558/25582.html','true',[],''],
		['PAGE','25613',jdecode('29.08.2003'),jdecode(''),'/23558/25613.html','true',[],''],
		['PAGE','25520',jdecode('10.12.2002'),jdecode(''),'/23558/25520.html','true',[],''],
		['PAGE','25551',jdecode('05.12.2002'),jdecode(''),'/23558/25551.html','true',[],''],
		['PAGE','25489',jdecode('20.08.2002'),jdecode(''),'/23558/25489.html','true',[],''],
		['PAGE','25427',jdecode('06.12.2001'),jdecode(''),'/23558/25427.html','true',[],''],
		['PAGE','25396',jdecode('20.08.2001'),jdecode(''),'/23558/25396.html','true',[],''],
		['PAGE','25458',jdecode('16.01.2001'),jdecode(''),'/23558/25458.html','true',[],''],
		['PAGE','25365',jdecode('09.12.2000'),jdecode(''),'/23558/25365.html','true',[],''],
		['PAGE','25334',jdecode('07.07.2000'),jdecode(''),'/23558/25334.html','true',[],''],
		['PAGE','26658',jdecode('04.12.1999'),jdecode(''),'/23558/26658.html','true',[],''],
		['PAGE','26689',jdecode('18.08.1999'),jdecode(''),'/23558/26689.html','true',[],''],
		['PAGE','25303',jdecode('05.12.1998'),jdecode(''),'/23558/25303.html','true',[],''],
		['PAGE','25272',jdecode('30.03.1998'),jdecode(''),'/23558/25272.html','true',[],''],
		['PAGE','25189',jdecode('04.12.1997'),jdecode(''),'/23558/25189.html','true',[],''],
		['PAGE','25158',jdecode('05.12.1996'),jdecode(''),'/23558/25158.html','true',[],'']
	],''],
	['PAGE','1368',jdecode('Dachverb%E4nde'),jdecode(''),'/1368.html','true',[],''],
	['PAGE','20002',jdecode('Gesundheit'),jdecode(''),'/20002.html','true',[],''],
	['PAGE','1811',jdecode('G%E4stebuch'),jdecode(''),'/1811/index.html','true',[ 
		['PAGE','1812',jdecode('Eintr%E4ge'),jdecode(''),'/1811/1812.html','true',[],'']
	],''],
	['PAGE','6994',jdecode('Impressum'),jdecode(''),'/6994.html','true',[],'']];
var siteelementCount=54;
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 */					                                                            

