/* [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('Startseite'),jdecode(''),'/1312.html','true',[],''],
	['PAGE','228485',jdecode('Saison+2011+%2F+2012'),jdecode(''),'/228485.html','true',[],''],
	['PAGE','19057',jdecode('Heimspiele...wo%3F'),jdecode(''),'/19057.html','true',[],''],
	['PAGE','19771',jdecode('Training%2C+Kontakt'),jdecode(''),'/19771.html','true',[],''],
	['PAGE','116353',jdecode('Mannschaft'),jdecode(''),'/116353.html','true',[],''],
	['PAGE','12492',jdecode('Chronik'),jdecode(''),'/12492.html','true',[],''],
	['PAGE','135313',jdecode('Hallenturniere+Chronik'),jdecode(''),'/135313.html','true',[],''],
	['PAGE','230500',jdecode('U17+M%E4dchen'),jdecode(''),'/230500.html','true',[],''],
	['PAGE','240041',jdecode('U17+Spielbetrieb'),jdecode(''),'/240041.html','true',[],''],
	['PAGE','320421',jdecode('Bilder'),jdecode(''),'/320421/index.html','true',[ 
		['PAGE','288367',jdecode('Sch%F6nheitsk%F6niginnen'),jdecode(''),'/320421/288367.html','true',[],''],
		['PAGE','266372',jdecode('Faschingswagen+2007'),jdecode(''),'/320421/266372.html','true',[],''],
		['PAGE','167414',jdecode('Faschingsw%E4gen+SW'),jdecode(''),'/320421/167414.html','true',[],'']
	],''],
	['PAGE','121061',jdecode('ERDINGER-Fanclub'),jdecode(''),'/121061.html','true',[],''],
	['PAGE','112651',jdecode('LINKS+oder+Bekannte'),jdecode(''),'/112651.html','true',[],''],
	['PAGE','12573',jdecode('Moderatorin'),jdecode(''),'/12573.html','true',[],''],
	['PAGE','5050',jdecode('G%E4stebuch-+Vordruck'),jdecode(''),'/5050.html','true',[],''],
	['PAGE','5051',jdecode('G%E4stebuch-+Eintr%E4ge'),jdecode(''),'/5051.html','true',[],''],
	['PAGE','51367',jdecode('Impressum%2FCopyright'),jdecode(''),'/51367.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Match';
					                                                                    
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 */					                                                            

