/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('%DCber+uns'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','4709',jdecode('Aktuelles'),jdecode(''),'/4709/index.html','true',[ 
		['PAGE','4763',jdecode('Termine'),jdecode(''),'/4709/4763.html','true',[],''],
		['PAGE','94501',jdecode('Sch%FCtzenfest+2011'),jdecode(''),'/4709/94501.html','true',[],''],
		['PAGE','115152',jdecode('Schiesssport'),jdecode(''),'/4709/115152.html','true',[],''],
		['PAGE','115183',jdecode('Hauptpreisvogel'),jdecode(''),'/4709/115183.html','true',[],'']
	],''],
	['PAGE','111352',jdecode('Waffenrecht'),jdecode(''),'/111352.html','true',[],''],
	['PAGE','106063',jdecode('Schiesssport'),jdecode(''),'/106063/index.html','true',[ 
		['PAGE','115214',jdecode('Sportsch%FCtzen+K%F6ln-Stammheim'),jdecode(''),'/106063/115214.html','true',[],'']
	],''],
	['PAGE','92901',jdecode('Programm+Sch%FCtzenfest+2011'),jdecode(''),'/92901/index.html','true',[ 
		['PAGE','102735',jdecode('Sch%FCtzenfest+vor+10+Jahren'),jdecode(''),'/92901/102735.html','true',[],'']
	],''],
	['PAGE','98102',jdecode('Bilder'),jdecode(''),'/98102/index.html','true',[ 
		['PAGE','94533',jdecode('Sch%FCtzenfest+2010'),jdecode(''),'/98102/94533.html','true',[],''],
		['PAGE','98702',jdecode('Sch%FCtzenfest+2009'),jdecode(''),'/98102/98702.html','true',[],''],
		['PAGE','102902',jdecode('Sch%FCtzenfest+2009'),jdecode(''),'/98102/102902.html','true',[],''],
		['PAGE','95602',jdecode('Sch%FCtzenfest+2011'),jdecode(''),'/98102/95602.html','true',[],'']
	],''],
	['PAGE','92169',jdecode('Ansch%FCtz+Laseranlage'),jdecode(''),'/92169.html','true',[],''],
	['PAGE','90834',jdecode('Jungsch%FCtzenmeister'),jdecode(''),'/90834.html','true',[],''],
	['PAGE','90412',jdecode('Jungsch%FCtzenk%F6nige'),jdecode(''),'/90412.html','true',[],''],
	['PAGE','117160',jdecode('K%F6nig+der+Jungk%F6nige'),jdecode(''),'/117160.html','true',[],''],
	['PAGE','90701',jdecode('Sch%FClerprinzen'),jdecode(''),'/90701.html','true',[],''],
	['PAGE','116329',jdecode('Bambini-Prinzen'),jdecode(''),'/116329.html','true',[],''],
	['PAGE','5209',jdecode('G%E4stebuch'),jdecode(''),'/5209/index.html','true',[ 
		['PAGE','5210',jdecode('Eintr%E4ge'),jdecode(''),'/5209/5210.html','true',[],'']
	],''],
	['PAGE','101401',jdecode('Sch%FCtzenstammtische'),jdecode(''),'/101401.html','true',[],''],
	['PAGE','4844',jdecode('Links'),jdecode(''),'/4844.html','true',[],''],
	['PAGE','106032',jdecode('Kontakt'),jdecode(''),'/106032/index.html','true',[ 
		['PAGE','25802',jdecode('Anfahrt'),jdecode(''),'/106032/25802.html','true',[],''],
		['PAGE','25902',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/106032/25902.html','true',[],''],
		['PAGE','4817',jdecode('Impressum'),jdecode(''),'/106032/4817.html','true',[],'']
	],''],
	['PAGE','106001',jdecode('Sonstiges'),jdecode(''),'/106001/index.html','true',[ 
		['PAGE','89238',jdecode('Sport'),jdecode(''),'/106001/89238.html','true',[],''],
		['PAGE','93102',jdecode('Wetter'),jdecode(''),'/106001/93102.html','true',[],'']
	],'']];
var siteelementCount=34;
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 */					                                                            

