/* [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('Startseite'),jdecode(''),'/1111/index.html','true',[ 
		['PAGE','3994',jdecode('Geschichtl.+R%FCckblick'),jdecode(''),'/1111/3994.html','true',[],'']
	],''],
	['PAGE','39690',jdecode('Spiel+den+Heinz%21'),jdecode(''),'/39690.html','true',[],''],
	['PAGE','1164',jdecode('Aktuelles+%2F+Weblog'),jdecode(''),'/1164.html','true',[],''],
	['PAGE','10031',jdecode('Text+des+Monats'),jdecode(''),'/10031.html','true',[],''],
	['PAGE','61335',jdecode('Katalog+-+Ihr+Leserkonto'),jdecode(''),'/61335.html','true',[],''],
	['PAGE','6322',jdecode('Medienangebote'),jdecode(''),'/6322.html','true',[],''],
	['PAGE','2318',jdecode('Service'),jdecode(''),'/2318/index.html','true',[ 
		['PAGE','66335',jdecode('Fernleihe'),jdecode(''),'/2318/66335.html','true',[],''],
		['PAGE','58232',jdecode('Medienboxen'),jdecode(''),'/2318/58232.html','true',[],'']
	],''],
	['PAGE','14735',jdecode('Kinderb%FCcherei'),jdecode(''),'/14735/index.html','true',[ 
		['PAGE','1187',jdecode('Antolin'),jdecode(''),'/14735/1187.html','true',[],''],
		['PAGE','84778',jdecode('Vorlesen+am+Donnerstag'),jdecode(''),'/14735/84778.html','true',[],'']
	],''],
	['PAGE','1210',jdecode('Benutzungsordnung'),jdecode(''),'/1210/index.html','true',[ 
		['PAGE','1605',jdecode('Geb%FChren'),jdecode(''),'/1210/1605.html','true',[],'']
	],''],
	['PAGE','9797',jdecode('Kontakt'),jdecode(''),'/9797/index.html','true',[ 
		['PAGE','33842',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/9797/33842.html','false',[],'']
	],''],
	['PAGE','5192',jdecode('weiterf%FChrende+Links'),jdecode(''),'/5192.html','true',[],''],
	['PAGE','35303',jdecode('Impressum'),jdecode(''),'/35303.html','true',[],''],
	['PAGE','54290',jdecode('Freundeskreis'),jdecode(''),'/54290/index.html','true',[ 
		['PAGE','55338',jdecode('Freundeskreis+%28Folgeseite%29'),jdecode(''),'/54290/55338.html','false',[],'']
	],''],
	['PAGE','72832',jdecode('Sitemap'),jdecode(''),'/72832.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Easy';
					                                                                    
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 */					                                                            

