/* [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','1312',jdecode('Home'),jdecode(''),'/1312.html','true',[],''],
	['PAGE','186264',jdecode('2+0+0+9'),jdecode(''),'/186264.html','true',[],''],
	['PAGE','191691',jdecode('Termine+...+aktuell'),jdecode(''),'/191691.html','true',[],''],
	['PAGE','62719',jdecode('Wir+%FCber+uns%2C+Kontakt'),jdecode(''),'/62719.html','true',[],''],
	['PAGE','80981',jdecode('Konfi+aktuell'),jdecode(''),'/80981.html','true',[],''],
	['PAGE','187182',jdecode('Kunstwerkstatt'),jdecode(''),'/187182.html','true',[],''],
	['PAGE','66280',jdecode('Kindergarten'),jdecode(''),'/66280/index.html','true',[ 
		['PAGE','132810',jdecode('Aktion%3A+Kinder-Garten'),jdecode(''),'/66280/132810.html','true',[],'']
	],''],
	['PAGE','64221',jdecode('Harpertshausen'),jdecode(''),'/64221/index.html','true',[ 
		['PAGE','183464',jdecode('Kirche+Harpertshausen'),jdecode(''),'/64221/183464.html','true',[],''],
		['PAGE','163202',jdecode('Orgel+Harpertshausen'),jdecode(''),'/64221/163202.html','true',[],'']
	],''],
	['PAGE','63809',jdecode('Gottesdienste'),jdecode(''),'/63809.html','true',[],''],
	['PAGE','63836',jdecode('Gruppen+und+Kreise'),jdecode(''),'/63836.html','true',[],''],
	['PAGE','161727',jdecode('%22Junger+Chor+Altheim%22'),jdecode(''),'/161727.html','true',[],''],
	['PAGE','164236',jdecode('Unsere+Kirche'),jdecode(''),'/164236.html','true',[],''],
	['PAGE','173136',jdecode('Das+war+2008%21'),jdecode(''),'/173136.html','true',[],''],
	['PAGE','63782',jdecode('Das+war+2007%21'),jdecode(''),'/63782.html','true',[],''],
	['PAGE','67180',jdecode('Service%2C+Fragen+...'),jdecode(''),'/67180.html','true',[],''],
	['PAGE','64745',jdecode('Bilder+-+Dias+-+Humor'),jdecode(''),'/64745.html','true',[],''],
	['PAGE','63890',jdecode('LInks'),jdecode(''),'/63890.html','true',[],'']];
var siteelementCount=20;
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 */					                                                            
