/* [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','1112',jdecode('Home'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','20528',jdecode('Aktuelles'),jdecode(''),'/20528.html','true',[],''],
	['PAGE','21660',jdecode('K%F6rpersprache'),jdecode(''),'/21660.html','true',[],''],
	['PAGE','6095',jdecode('Programme'),jdecode(''),'/6095/index.html','true',[ 
		['PAGE','6118',jdecode('Alles+Kneete'),jdecode(''),'/6095/6118.html','true',[],''],
		['PAGE','15935',jdecode('Knigge+2000'),jdecode(''),'/6095/15935.html','true',[],''],
		['PAGE','15904',jdecode('Ein+Kuss+auf+Deine+...'),jdecode(''),'/6095/15904.html','true',[],''],
		['PAGE','6141',jdecode('Durch+Dich+wird+...'),jdecode(''),'/6095/6141.html','true',[],''],
		['PAGE','8795',jdecode('Herzog%26%23x27%3Bs+Jazzclub'),jdecode(''),'/6095/8795.html','true',[],''],
		['PAGE','8841',jdecode('Story+Time'),jdecode(''),'/6095/8841.html','true',[],''],
		['PAGE','8864',jdecode('Musikala+efektus'),jdecode(''),'/6095/8864.html','true',[],''],
		['PAGE','16901',jdecode('Dreierhopp'),jdecode(''),'/6095/16901.html','true',[],''],
		['PAGE','17653',jdecode('Sch%F6n+bl%F6d'),jdecode(''),'/6095/17653.html','true',[],''],
		['PAGE','19328',jdecode('Weihnachtsbr%FCller+...'),jdecode(''),'/6095/19328.html','true',[],''],
		['PAGE','20630',jdecode('Ein+Mann+-+kein+Wort'),jdecode(''),'/6095/20630.html','true',[],''],
		['PAGE','20860',jdecode('Was+ihr+wollt%2C...'),jdecode(''),'/6095/20860.html','true',[],''],
		['PAGE','20891',jdecode('Clowns'),jdecode(''),'/6095/20891.html','true',[],''],
		['PAGE','21060',jdecode('Die+Gewinnershow'),jdecode(''),'/6095/21060.html','true',[],'']
	],''],
	['PAGE','16101',jdecode('Galaveranstaltungen'),jdecode(''),'/16101/index.html','true',[ 
		['PAGE','18943',jdecode('Solo'),jdecode(''),'/16101/18943.html','true',[],''],
		['PAGE','22075',jdecode('Zeremonienmeister'),jdecode(''),'/16101/22075.html','true',[],''],
		['PAGE','17326',jdecode('Oberkellner+Edwart'),jdecode(''),'/16101/17326.html','true',[],''],
		['PAGE','8818',jdecode('Die+Gentlemen+...'),jdecode(''),'/16101/8818.html','true',[],''],
		['PAGE','16132',jdecode('Mimus+Plasticus'),jdecode(''),'/16101/16132.html','true',[],''],
		['PAGE','17101',jdecode('Baby+Balaballa'),jdecode(''),'/16101/17101.html','true',[],''],
		['PAGE','16548',jdecode('Mimework'),jdecode(''),'/16101/16548.html','true',[],'']
	],''],
	['PAGE','16194',jdecode('Workshops'),jdecode(''),'/16194/index.html','true',[ 
		['PAGE','16163',jdecode('K%F6rpersprache'),jdecode(''),'/16194/16163.html','true',[],''],
		['PAGE','16382',jdecode('Pantomime'),jdecode(''),'/16194/16382.html','true',[],'']
	],''],
	['PAGE','6164',jdecode('Mimenb%FChne'),jdecode(''),'/6164.html','true',[],''],
	['PAGE','18359',jdecode('Presse'),jdecode(''),'/18359.html','true',[],''],
	['PAGE','16230',jdecode('Fotos'),jdecode(''),'/16230.html','true',[],''],
	['PAGE','18029',jdecode('G%E4stebuch'),jdecode(''),'/18029/index.html','true',[ 
		['PAGE','18030',jdecode('Eintr%E4ge'),jdecode(''),'/18029/18030.html','true',[],'']
	],''],
	['PAGE','18328',jdecode('Links'),jdecode(''),'/18328.html','true',[],''],
	['PAGE','19829',jdecode('Entertainment'),jdecode(''),'/19829.html','true',[],''],
	['PAGE','6210',jdecode('Kontakt'),jdecode(''),'/6210.html','true',[],''],
	['PAGE','20228',jdecode('Video'),jdecode(''),'/20228.html','true',[],'']];
var siteelementCount=38;
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 */					                                                            
