/* [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','1111',jdecode('Home'),jdecode(''),'/1111.html','true',[],''],
	['PAGE','1494',jdecode('Zahlen+%2F+Fakten'),jdecode(''),'/1494.html','true',[],''],
	['PAGE','13001',jdecode('Die+10+Orte'),jdecode(''),'/13001/index.html','true',[ 
		['PAGE','10501',jdecode('Dornreichenbach'),jdecode(''),'/13001/10501.html','true',[],''],
		['PAGE','10528',jdecode('Falkenhain'),jdecode(''),'/13001/10528.html','true',[],''],
		['PAGE','10555',jdecode('Frauwalde'),jdecode(''),'/13001/10555.html','true',[],''],
		['PAGE','10582',jdecode('Heyda'),jdecode(''),'/13001/10582.html','true',[],''],
		['PAGE','10609',jdecode('K%F6rlitz'),jdecode(''),'/13001/10609.html','true',[],''],
		['PAGE','10636',jdecode('K%FChnitzsch'),jdecode(''),'/13001/10636.html','true',[],''],
		['PAGE','10690',jdecode('Mark+Sch%F6nst%E4dt'),jdecode(''),'/13001/10690.html','true',[],''],
		['PAGE','10717',jdecode('Meltewitz'),jdecode(''),'/13001/10717.html','true',[],''],
		['PAGE','10744',jdecode('Thammenhain'),jdecode(''),'/13001/10744.html','true',[],''],
		['PAGE','10663',jdecode('Voigtshain'),jdecode(''),'/13001/10663.html','true',[],'']
	],''],
	['PAGE','1517',jdecode('Tourismus'),jdecode(''),'/1517/index.html','true',[ 
		['PAGE','11101',jdecode('Karte'),jdecode(''),'/1517/11101.html','true',[],'']
	],''],
	['PAGE','11902',jdecode('Fotoalbum'),jdecode(''),'/11902.html','true',[],''],
	['PAGE','1540',jdecode('Kultur+%2F+Sport'),jdecode(''),'/1540/index.html','true',[ 
		['PAGE','1563',jdecode('Vereine'),jdecode(''),'/1540/1563.html','true',[],'']
	],''],
	['PAGE','1586',jdecode('Infos+%2F+Aktuelles'),jdecode(''),'/1586/index.html','true',[ 
		['PAGE','2491',jdecode('Links'),jdecode(''),'/1586/2491.html','true',[],'']
	],''],
	['PAGE','1200',jdecode('G%E4stebuch'),jdecode(''),'/1200/index.html','true',[ 
		['PAGE','1201',jdecode('Eintr%E4ge'),jdecode(''),'/1200/1201.html','true',[],'']
	],''],
	['PAGE','16076',jdecode('Satzung'),jdecode(''),'/16076.html','true',[],''],
	['PAGE','11401',jdecode('Impressum'),jdecode(''),'/11401/index.html','true',[ 
		['PAGE','11526',jdecode('Impressum+%28Folgeseite%29'),jdecode(''),'/11401/11526.html','false',[],'']
	],''],
	['PAGE','20460',jdecode('Formulare'),jdecode(''),'/20460.html','true',[],''],
	['PAGE','22960',jdecode('Geopark+Nordsachsen'),jdecode(''),'/22960.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Architekt';
					                                                                    
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 */					                                                            
