/* [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','4466',jdecode('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','9236',jdecode('Chor'),jdecode(''),'/9236/index.html','true',[ 
		['PAGE','9331',jdecode('Mitsingen'),jdecode(''),'/9236/9331.html','true',[],''],
		['PAGE','33659',jdecode('Chorleiter'),jdecode(''),'/9236/33659.html','true',[],''],
		['PAGE','9616',jdecode('Probentermine'),jdecode(''),'/9236/9616.html','true',[],''],
		['PAGE','9268',jdecode('Repertoire'),jdecode(''),'/9236/9268.html','true',[],'']
	],''],
	['PAGE','10682',jdecode('Konzertwinter+2009%2F2010'),jdecode(''),'/10682/index.html','true',[ 
		['PAGE','11647',jdecode('Jugendchorkonzert'),jdecode(''),'/10682/11647.html','true',[],''],
		['PAGE','9647',jdecode('Nachtverdichtungen'),jdecode(''),'/10682/9647.html','true',[],''],
		['PAGE','10651',jdecode('Heinrich-Sch%FCtz-Ensemble'),jdecode(''),'/10682/10651.html','true',[],''],
		['PAGE','11024',jdecode('Harmonixen'),jdecode(''),'/10682/11024.html','true',[],''],
		['PAGE','59301',jdecode('Psalms'),jdecode(''),'/10682/59301.html','true',[],''],
		['PAGE','9678',jdecode('Kartenbestellung'),jdecode(''),'/10682/9678/index.html','true',[ 
			['PAGE','39055',jdecode('Kartenbestellung+%28Folgeseite%29'),jdecode(''),'/10682/9678/39055.html','false',[],'']
		],'']
	],''],
	['PAGE','63501',jdecode('Presseberichte+2009%2F2010'),jdecode(''),'/63501.html','true',[],''],
	['PAGE','9709',jdecode('Presse'),jdecode(''),'/9709/index.html','true',[ 
		['PAGE','61117',jdecode('Mendelssohn+Elias'),jdecode(''),'/9709/61117.html','true',[],''],
		['PAGE','57732',jdecode('Bruckner+-+Messe+f-Moll'),jdecode(''),'/9709/57732.html','true',[],''],
		['PAGE','49601',jdecode('Rossini%2FVerdi'),jdecode(''),'/9709/49601.html','true',[],''],
		['PAGE','33202',jdecode('Missa+-+Ruth+Zechlin'),jdecode(''),'/9709/33202.html','true',[],''],
		['PAGE','29384',jdecode('Die+Jahreszeiten+2005'),jdecode(''),'/9709/29384.html','true',[],''],
		['PAGE','29330',jdecode('Stabat+Mater'),jdecode(''),'/9709/29330.html','true',[],'']
	],''],
	['PAGE','58914',jdecode('Presse+Konzertwinter+2008%2F2009'),jdecode(''),'/58914/index.html','true',[ 
		['PAGE','58945',jdecode('Chorus+sine+nomine'),jdecode(''),'/58914/58945.html','true',[],''],
		['PAGE','59168',jdecode('Musikfreunde+Passau'),jdecode(''),'/58914/59168.html','true',[],''],
		['PAGE','59690',jdecode('Heinrich-Sch%FCtz-Ensemble'),jdecode(''),'/58914/59690.html','true',[],''],
		['PAGE','59901',jdecode('Tsch.+Philharmonischer+Chor'),jdecode(''),'/58914/59901.html','true',[],''],
		['PAGE','60259',jdecode('Madrigalchor'),jdecode(''),'/58914/60259.html','true',[],''],
		['PAGE','60501',jdecode('MezzoMixed'),jdecode(''),'/58914/60501.html','true',[],''],
		['PAGE','60701',jdecode('Heinrich-Sch%FCtz-Ensemble'),jdecode(''),'/58914/60701.html','true',[],'']
	],''],
	['PAGE','60101',jdecode('Stiftungspreis'),jdecode(''),'/60101.html','true',[],''],
	['PAGE','9802',jdecode('Verein'),jdecode(''),'/9802/index.html','true',[ 
		['PAGE','9833',jdecode('Vorstand'),jdecode(''),'/9802/9833.html','true',[],''],
		['PAGE','9864',jdecode('F%F6rderer'),jdecode(''),'/9802/9864.html','true',[],''],
		['PAGE','9926',jdecode('Satzung'),jdecode(''),'/9802/9926.html','true',[],''],
		['PAGE','60801',jdecode('Beitrittsformular'),jdecode(''),'/9802/60801.html','true',[],'']
	],''],
	['PAGE','9957',jdecode('Kontakt'),jdecode(''),'/9957.html','true',[],''],
	['PAGE','57102',jdecode('G%E4stebuch'),jdecode(''),'/57102/index.html','true',[ 
		['PAGE','57103',jdecode('Eintr%E4ge'),jdecode(''),'/57102/57103.html','true',[],'']
	],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Profile';
					                                                                    
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 */					                                                            
