/* [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','960',jdecode('Home'),jdecode(''),'/960.html','true',[],''],
	['PAGE','296646',jdecode('Termine'),jdecode(''),'/296646.html','true',[],''],
	['PAGE','42370',jdecode('Aktuelles'),jdecode(''),'/42370/index.html','true',[ 
		['PAGE','7991',jdecode('Presse'),jdecode(''),'/42370/7991.html','true',[],'']
	],''],
	['PAGE','54773',jdecode('+Fanfarenzug'),jdecode(''),'/54773/index.html','true',[ 
		['PAGE','1059',jdecode('Mitglieder'),jdecode(''),'/54773/1059.html','true',[],''],
		['PAGE','1105',jdecode('+Musikal.Leitung'),jdecode(''),'/54773/1105.html','true',[],''],
		['PAGE','1128',jdecode('Ausbilder'),jdecode(''),'/54773/1128.html','true',[],''],
		['PAGE','1197',jdecode('%DCbungsstunden'),jdecode(''),'/54773/1197.html','true',[],''],
		['PAGE','9195',jdecode('Unsere+Musikst%FCcke'),jdecode(''),'/54773/9195.html','true',[],''],
		['PAGE','49670',jdecode('Fan-Artikel'),jdecode(''),'/54773/49670.html','true',[],''],
		['PAGE','269606',jdecode('Buchen'),jdecode(''),'/54773/269606.html','true',[],'']
	],''],
	['PAGE','1013',jdecode('Wir+%FCber+uns'),jdecode(''),'/1013/index.html','true',[ 
		['PAGE','1036',jdecode('Geschichte'),jdecode(''),'/1013/1036.html','true',[],''],
		['PAGE','1082',jdecode('Vorstand'),jdecode(''),'/1013/1082.html','true',[],''],
		['PAGE','270506',jdecode('Satzung'),jdecode(''),'/1013/270506.html','true',[],''],
		['PAGE','56208',jdecode('Mitglied+werden'),jdecode(''),'/1013/56208.html','true',[],''],
		['PAGE','62206',jdecode('History'),jdecode(''),'/1013/62206.html','true',[],'']
	],''],
	['PAGE','293074',jdecode('Fotoalbum'),jdecode(''),'/293074/index.html','true',[ 
		['PAGE','299150',jdecode('Hessenmeisterschaft+09'),jdecode(''),'/293074/299150.html','true',[],''],
		['PAGE','299115',jdecode('Wegscheide+09'),jdecode(''),'/293074/299115.html','true',[],'']
	],''],
	['PAGE','3614',jdecode('Kontakt'),jdecode(''),'/3614/index.html','true',[ 
		['PAGE','39444',jdecode('Anfahrt'),jdecode(''),'/3614/39444.html','true',[],''],
		['PAGE','59817',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/3614/59817.html','true',[],'']
	],''],
	['PAGE','7528',jdecode('G%E4stebuch'),jdecode(''),'/7528/index.html','true',[ 
		['PAGE','7527',jdecode('Eintragen'),jdecode(''),'/7528/7527.html','true',[],'']
	],''],
	['PAGE','1220',jdecode('Links'),jdecode(''),'/1220/index.html','true',[ 
		['PAGE','298814',jdecode('Banner+f%FCr+Link'),jdecode(''),'/1220/298814.html','true',[],'']
	],''],
	['PAGE','58906',jdecode('Trauer'),jdecode(''),'/58906.html','true',[],''],
	['PAGE','289306',jdecode('Sponsoren'),jdecode(''),'/289306.html','true',[],''],
	['PAGE','93427',jdecode('Wetter'),jdecode(''),'/93427.html','true',[],''],
	['PAGE','272206',jdecode('Impressum'),jdecode(''),'/272206.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Zoe';
					                                                                    
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 */					                                                            

