/* [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','4481',jdecode('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','214354',jdecode('Tabelle'),jdecode(''),'/214354.html','true',[],''],
	['PAGE','214385',jdecode('Spieltage'),jdecode(''),'/214385/index.html','true',[ 
		['PAGE','214416',jdecode('Spieltag+01'),jdecode(''),'/214385/214416.html','true',[],''],
		['PAGE','214447',jdecode('Spieltag+02'),jdecode(''),'/214385/214447.html','true',[],''],
		['PAGE','214478',jdecode('Spieltag+03'),jdecode(''),'/214385/214478.html','true',[],''],
		['PAGE','214509',jdecode('Spieltag+04'),jdecode(''),'/214385/214509.html','true',[],''],
		['PAGE','214540',jdecode('Spieltag+05'),jdecode(''),'/214385/214540.html','true',[],''],
		['PAGE','214571',jdecode('Spieltag+06'),jdecode(''),'/214385/214571.html','true',[],''],
		['PAGE','214602',jdecode('Spieltag+07'),jdecode(''),'/214385/214602.html','true',[],''],
		['PAGE','214633',jdecode('Spieltag+08'),jdecode(''),'/214385/214633.html','true',[],''],
		['PAGE','214664',jdecode('Spieltag+09'),jdecode(''),'/214385/214664.html','true',[],''],
		['PAGE','214695',jdecode('Spieltag+10'),jdecode(''),'/214385/214695.html','true',[],''],
		['PAGE','214726',jdecode('Spieltag+11'),jdecode(''),'/214385/214726.html','true',[],''],
		['PAGE','214757',jdecode('Spieltag+12'),jdecode(''),'/214385/214757.html','true',[],''],
		['PAGE','214788',jdecode('Spieltag+13'),jdecode(''),'/214385/214788.html','true',[],''],
		['PAGE','214819',jdecode('Spieltag+14'),jdecode(''),'/214385/214819.html','true',[],''],
		['PAGE','214850',jdecode('Spieltag+15'),jdecode(''),'/214385/214850.html','true',[],''],
		['PAGE','214943',jdecode('Spieltag+16'),jdecode(''),'/214385/214943.html','true',[],''],
		['PAGE','214974',jdecode('Spieltag+17'),jdecode(''),'/214385/214974.html','true',[],''],
		['PAGE','215005',jdecode('Spieltag+18'),jdecode(''),'/214385/215005.html','true',[],''],
		['PAGE','215036',jdecode('Spieltag+19'),jdecode(''),'/214385/215036.html','true',[],''],
		['PAGE','215067',jdecode('Spieltag+20'),jdecode(''),'/214385/215067.html','true',[],''],
		['PAGE','215098',jdecode('Spieltag+21'),jdecode(''),'/214385/215098.html','true',[],''],
		['PAGE','215129',jdecode('Spieltag+22'),jdecode(''),'/214385/215129.html','true',[],''],
		['PAGE','215160',jdecode('Spieltag+23'),jdecode(''),'/214385/215160.html','true',[],''],
		['PAGE','215191',jdecode('Spieltag+24'),jdecode(''),'/214385/215191.html','true',[],''],
		['PAGE','215222',jdecode('Spieltag+25'),jdecode(''),'/214385/215222.html','true',[],''],
		['PAGE','215253',jdecode('Spieltag+26'),jdecode(''),'/214385/215253.html','true',[],''],
		['PAGE','215284',jdecode('Spieltag+27'),jdecode(''),'/214385/215284.html','true',[],''],
		['PAGE','215315',jdecode('Spieltag+28'),jdecode(''),'/214385/215315.html','true',[],''],
		['PAGE','215346',jdecode('Spieltag+29'),jdecode(''),'/214385/215346.html','true',[],''],
		['PAGE','215377',jdecode('Spieltag+30'),jdecode(''),'/214385/215377.html','true',[],''],
		['PAGE','215408',jdecode('Spieltag+31'),jdecode(''),'/214385/215408.html','true',[],''],
		['PAGE','215439',jdecode('Spieltag+32'),jdecode(''),'/214385/215439.html','true',[],''],
		['PAGE','215470',jdecode('Spieltag+33'),jdecode(''),'/214385/215470.html','true',[],''],
		['PAGE','215501',jdecode('Spieltag+34'),jdecode(''),'/214385/215501.html','true',[],'']
	],''],
	['PAGE','214881',jdecode('Statistiken'),jdecode(''),'/214881/index.html','true',[ 
		['PAGE','214912',jdecode('Torj%E4ger'),jdecode(''),'/214881/214912.html','true',[],''],
		['PAGE','215532',jdecode('Gelbe+Karten'),jdecode(''),'/214881/215532.html','true',[],''],
		['PAGE','215563',jdecode('Rote+Karten'),jdecode(''),'/214881/215563.html','true',[],'']
	],''],
	['PAGE','215594',jdecode('Mitglieder'),jdecode(''),'/215594.html','true',[],''],
	['PAGE','215752',jdecode('Weblog'),jdecode(''),'/215752.html','true',[],'']];
var siteelementCount=43;
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 */					                                                            

