/* [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','4466',jdecode('Startseite'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','32201',jdecode('Gemeindeverwaltung'),jdecode(''),'/32201/index.html','true',[ 
		['PAGE','64787',jdecode('%3E+Gemeinderat'),jdecode(''),'/32201/64787.html','true',[],'']
	],''],
	['PAGE','90636',jdecode('H%F6hepunkte+2012'),jdecode(''),'/90636.html','true',[],''],
	['PAGE','36232',jdecode('Aktuelles'),jdecode(''),'/36232/index.html','true',[ 
		['PAGE','80473',jdecode('%3E+2011'),jdecode(''),'/36232/80473.html','true',[],''],
		['PAGE','80586',jdecode('%3E+2010'),jdecode(''),'/36232/80586.html','true',[],''],
		['PAGE','80617',jdecode('%3E+2009'),jdecode(''),'/36232/80617.html','true',[],''],
		['PAGE','80648',jdecode('%3E+2008'),jdecode(''),'/36232/80648.html','true',[],''],
		['PAGE','80679',jdecode('%3E+2007'),jdecode(''),'/36232/80679.html','true',[],''],
		['PAGE','80710',jdecode('%3E+2006'),jdecode(''),'/36232/80710.html','true',[],'']
	],''],
	['PAGE','63201',jdecode('Ortsrecht%2FSatzungen'),jdecode(''),'/63201/index.html','true',[ 
		['PAGE','63244',jdecode('%3E+Abwassersatzung'),jdecode(''),'/63201/63244.html','true',[],''],
		['PAGE','77932',jdecode('%3E+Stra%DFenreinigungssatzung'),jdecode(''),'/63201/77932.html','true',[],'']
	],''],
	['PAGE','39601',jdecode('B%FCrgerservice'),jdecode(''),'/39601.html','true',[],''],
	['PAGE','44401',jdecode('Wirtschaft'),jdecode(''),'/44401/index.html','true',[ 
		['PAGE','44489',jdecode('%3E+Gasthaus+R%F6ntzsch'),jdecode(''),'/44401/44489.html','true',[],''],
		['PAGE','44520',jdecode('%3E+Gasthof+Kunath'),jdecode(''),'/44401/44520.html','true',[],'']
	],''],
	['PAGE','34101',jdecode('Historie'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','33601',jdecode('Impressum'),jdecode(''),'/33601.html','true',[],''],
	['PAGE','33002',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/33002.html','true',[],''],
	['PAGE','34315',jdecode('Wetter+der+Region'),jdecode(''),'/34315.html','true',[],''],
	['PAGE','33164',jdecode(''),jdecode(''),'/33164.html','true',[],''],
	['PAGE','33101',jdecode('Aktualisierung%3A'),jdecode(''),'/33101.html','true',[],''],
	['PAGE','33133',jdecode('01.02.2012'),jdecode(''),'/33133.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            

