/* [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','4519',jdecode('Home'),jdecode(''),'/4519/index.html','true',[ 
		['PAGE','5829',jdecode('News'),jdecode(''),'/4519/5829.html','true',[],''],
		['PAGE','54870',jdecode('Reform%3FNEIN%21'),jdecode(''),'/4519/54870.html','true',[],''],
		['PAGE','5856',jdecode('Veranstaltungen'),jdecode(''),'/4519/5856.html','true',[],'']
	],''],
	['PAGE','5802',jdecode('Wir+%FCber+uns'),jdecode(''),'/5802/index.html','true',[ 
		['PAGE','7107',jdecode('Kindertagesst%E4tte'),jdecode(''),'/5802/7107.html','true',[],''],
		['PAGE','24691',jdecode('Grundschule'),jdecode(''),'/5802/24691.html','true',[],''],
		['PAGE','60670',jdecode('Jugendklub'),jdecode(''),'/5802/60670.html','true',[],''],
		['PAGE','43972',jdecode('Sekundarschule'),jdecode(''),'/5802/43972.html','true',[],''],
		['PAGE','7161',jdecode('Gewerbe'),jdecode(''),'/5802/7161.html','true',[],''],
		['PAGE','7188',jdecode('SV+M%FChlanger+e.V.'),jdecode(''),'/5802/7188.html','true',[],''],
		['PAGE','7215',jdecode('SG+Traktor+Gallin+e.V.'),jdecode(''),'/5802/7215.html','true',[],''],
		['PAGE','7242',jdecode('Seniorenklub'),jdecode(''),'/5802/7242.html','true',[],''],
		['PAGE','7296',jdecode('Angelverein+e.V.'),jdecode(''),'/5802/7296.html','true',[],''],
		['PAGE','7323',jdecode('Feuerwehr'),jdecode(''),'/5802/7323.html','true',[],'']
	],''],
	['PAGE','15840',jdecode('B%FCrgermeister%2FGem.-Rat'),jdecode(''),'/15840.html','true',[],''],
	['PAGE','14712',jdecode('Ortschronik'),jdecode(''),'/14712/index.html','true',[ 
		['PAGE','7134',jdecode('Chronik+Teil+1'),jdecode(''),'/14712/7134.html','true',[],''],
		['PAGE','14739',jdecode('Chronik+Teil+2'),jdecode(''),'/14712/14739.html','true',[],''],
		['PAGE','57170',jdecode('Chronik+Teil+3'),jdecode(''),'/14712/57170.html','true',[],''],
		['PAGE','15403',jdecode('Daten+19.+Jh.'),jdecode(''),'/14712/15403.html','true',[],''],
		['PAGE','15430',jdecode('Daten+20.+Jh.'),jdecode(''),'/14712/15430.html','true',[],''],
		['PAGE','17119',jdecode('Bilder+der+Heimatchronik'),jdecode(''),'/14712/17119.html','true',[],'']
	],''],
	['PAGE','5294',jdecode('Bilder+aus+M%FChlanger'),jdecode(''),'/5294/index.html','true',[ 
		['PAGE','5883',jdecode('Die+Jahrhundertflut'),jdecode(''),'/5294/5883.html','true',[],''],
		['PAGE','17602',jdecode('Feuerwehr+M%FChlanger'),jdecode(''),'/5294/17602.html','true',[],''],
		['PAGE','5937',jdecode('Ortsbilder'),jdecode(''),'/5294/5937.html','true',[],''],
		['PAGE','5964',jdecode('Veranstaltungen'),jdecode(''),'/5294/5964.html','true',[],''],
		['PAGE','40271',jdecode('Kita-Bilder'),jdecode(''),'/5294/40271.html','true',[],''],
		['PAGE','39171',jdecode('Bau+B187'),jdecode(''),'/5294/39171.html','true',[],''],
		['PAGE','42725',jdecode('Dorferneurung+Hohndorf'),jdecode(''),'/5294/42725.html','true',[],''],
		['PAGE','46097',jdecode('Park-u.+Heimatfest'),jdecode(''),'/5294/46097.html','true',[],'']
	],''],
	['PAGE','6018',jdecode('Angebote'),jdecode(''),'/6018/index.html','true',[ 
		['PAGE','6045',jdecode('Wohnungsmarkt'),jdecode(''),'/6018/6045.html','true',[],'']
	],''],
	['PAGE','5329',jdecode('G%E4stebuch'),jdecode(''),'/5329/index.html','true',[ 
		['PAGE','5330',jdecode('Eintr%E4ge'),jdecode(''),'/5329/5330.html','true',[],'']
	],''],
	['PAGE','4802',jdecode('Service'),jdecode(''),'/4802/index.html','true',[ 
		['PAGE','4865',jdecode('Anfahrt'),jdecode(''),'/4802/4865.html','true',[],''],
		['PAGE','6234',jdecode('Tipps+%26+Tricks'),jdecode(''),'/4802/6234.html','true',[],''],
		['PAGE','6261',jdecode('Links'),jdecode(''),'/4802/6261.html','true',[],''],
		['PAGE','16703',jdecode('B%FCrgerbriefkasten'),jdecode(''),'/4802/16703/index.html','true',[ 
			['PAGE','16741',jdecode('B%FCrgerbrifkasten+%28Folgeseite%29'),jdecode(''),'/4802/16703/16741.html','false',[],'']
		],''],
		['PAGE','6153',jdecode('Kontakt'),jdecode(''),'/4802/6153.html','true',[],''],
		['PAGE','12403',jdecode('Impressum'),jdecode(''),'/4802/12403.html','true',[],'']
	],''],
	['PAGE','6571',jdecode('Archiv'),jdecode(''),'/6571/index.html','true',[ 
		['PAGE','47772',jdecode('Parkfest'),jdecode(''),'/6571/47772.html','true',[],''],
		['PAGE','56170',jdecode('Parkfest+2008'),jdecode(''),'/6571/56170.html','true',[],''],
		['PAGE','6598',jdecode('Windkraft'),jdecode(''),'/6571/6598.html','true',[],''],
		['PAGE','37972',jdecode('Bau+der+B187'),jdecode(''),'/6571/37972.html','true',[],''],
		['PAGE','53077',jdecode('Wetter'),jdecode(''),'/6571/53077.html','true',[],'']
	],'']];
var siteelementCount=50;
theSitetree.topTemplateName='Zoe';
					                                                                    
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 */					                                                            

