/* [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','961',jdecode('Startseite'),jdecode(''),'/961/index.html','true',[ 
		['PAGE','5089',jdecode('Einf%FChrung'),jdecode(''),'/961/5089.html','true',[],''],
		['PAGE','4695',jdecode('Kleines+Paradies+'),jdecode(''),'/961/4695.html','true',[],'']
	],''],
	['PAGE','51833',jdecode('Veranstaltungen+2008%2F2009'),jdecode(''),'/51833/index.html','true',[ 
		['PAGE','60643',jdecode('Ausstellungen'),jdecode(''),'/51833/60643.html','true',[],''],
		['PAGE','31510',jdecode('F%FChrungen+-+Cafe'),jdecode(''),'/51833/31510.html','true',[],''],
		['PAGE','4741',jdecode('%D6ffnungszeiten+'),jdecode(''),'/51833/4741.html','true',[],''],
		['PAGE','6573',jdecode('Eintrittspreise'),jdecode(''),'/51833/6573.html','true',[],''],
		['PAGE','54817',jdecode('Adventsausstellung'),jdecode(''),'/51833/54817.html','true',[],''],
		['PAGE','52236',jdecode('Workshops+'),jdecode(''),'/51833/52236.html','true',[],'']
	],''],
	['PAGE','26179',jdecode('Vermietungen%2C+Feiern'),jdecode(''),'/26179.html','true',[],''],
	['PAGE','40916',jdecode('R%FCckblicke'),jdecode(''),'/40916/index.html','true',[ 
		['PAGE','4095',jdecode('R%FCckblick+2002'),jdecode(''),'/40916/4095.html','true',[],''],
		['PAGE','21103',jdecode('R%FCckblick+2003+'),jdecode(''),'/40916/21103.html','true',[],''],
		['PAGE','39535',jdecode('R%FCckblick++2004'),jdecode(''),'/40916/39535.html','true',[],''],
		['PAGE','58504',jdecode('R%FCckblick+2006'),jdecode(''),'/40916/58504.html','true',[],''],
		['PAGE','57357',jdecode('Farben+%26+Kl%E4nge'),jdecode(''),'/40916/57357.html','true',[],''],
		['PAGE','40835',jdecode('R%FCckblick+2007'),jdecode(''),'/40916/40835.html','true',[],''],
		['PAGE','59504',jdecode('Kabarett+im+Kloster'),jdecode(''),'/40916/59504.html','true',[],'']
	],''],
	['PAGE','21512',jdecode('Impressionen+-+Fotos'),jdecode(''),'/21512/index.html','true',[ 
		['PAGE','54376',jdecode('Events'),jdecode(''),'/21512/54376.html','true',[],'']
	],''],
	['PAGE','21130',jdecode('Ver%F6ffentlichungen'),jdecode(''),'/21130/index.html','true',[ 
		['PAGE','21157',jdecode('Kloster+und+Schloss'),jdecode(''),'/21130/21157.html','true',[],''],
		['PAGE','25651',jdecode('Ausstellungskataloge'),jdecode(''),'/21130/25651.html','true',[],'']
	],''],
	['PAGE','22944',jdecode('Kontakt'),jdecode(''),'/22944/index.html','true',[ 
		['PAGE','22976',jdecode('Feed-Back+%28Folgeseite%29'),jdecode(''),'/22944/22976.html','false',[],'']
	],''],
	['PAGE','42634',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/42634/index.html','true',[ 
		['PAGE','6596',jdecode('So+finden+Sie+uns'),jdecode(''),'/42634/6596.html','true',[],''],
		['PAGE','21547',jdecode('Anfahrt'),jdecode(''),'/42634/21547.html','true',[],'']
	],''],
	['PAGE','6195',jdecode('Impressum+-+Links'),jdecode(''),'/6195.html','true',[],''],
	['PAGE','53881',jdecode('Wetter'),jdecode(''),'/53881.html','true',[],''],
	['PAGE','53917',jdecode('Kultur-Nachrichten+'),jdecode(''),'/53917.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Natural';
					                                                                    
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 */					                                                            
