/* [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('Aktuelles'),jdecode(''),'/4481/index.html','true',[ 
		['PAGE','129776',jdecode('Archiv'),jdecode(''),'/4481/129776.html','true',[],'']
	],''],
	['PAGE','143283',jdecode('80+Jahre+TC+RW'),jdecode(''),'/143283.html','true',[],''],
	['PAGE','9335',jdecode('Infos+zum+Verein'),jdecode(''),'/9335/index.html','true',[ 
		['PAGE','83436',jdecode('Verein+des+Jahres%21'),jdecode(''),'/9335/83436.html','true',[],''],
		['PAGE','22863',jdecode('Chronik'),jdecode(''),'/9335/22863.html','true',[],''],
		['PAGE','22894',jdecode('Wir+%FCber+uns'),jdecode(''),'/9335/22894.html','true',[],''],
		['PAGE','22925',jdecode('Au%DFenpl%E4tze'),jdecode(''),'/9335/22925.html','true',[],''],
		['PAGE','22956',jdecode('Tennishalle'),jdecode(''),'/9335/22956.html','true',[],''],
		['PAGE','23049',jdecode('Mitgliedschaft'),jdecode(''),'/9335/23049.html','true',[],''],
		['PAGE','22987',jdecode('Gastronomie'),jdecode(''),'/9335/22987.html','true',[],''],
		['PAGE','28823',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/9335/28823.html','true',[],''],
		['PAGE','28788',jdecode('Anfahrtskizze'),jdecode(''),'/9335/28788.html','true',[],'']
	],''],
	['PAGE','9281',jdecode('Mannschaften'),jdecode(''),'/9281/index.html','true',[ 
		['PAGE','28971',jdecode('Damenmannschaften'),jdecode(''),'/9281/28971.html','true',[],''],
		['PAGE','29002',jdecode('Herrenmannschaften'),jdecode(''),'/9281/29002.html','true',[],''],
		['PAGE','33263',jdecode('Trainingsplan'),jdecode(''),'/9281/33263.html','true',[],'']
	],''],
	['PAGE','88941',jdecode('Jugend'),jdecode(''),'/88941/index.html','true',[ 
		['PAGE','87812',jdecode('Jugend-Mannschaften'),jdecode(''),'/88941/87812.html','true',[],'']
	],''],
	['PAGE','82036',jdecode('Breitensport'),jdecode(''),'/82036/index.html','true',[ 
		['PAGE','81436',jdecode('Tennispartner+gesucht%21'),jdecode(''),'/82036/81436.html','true',[],'']
	],''],
	['PAGE','30901',jdecode('Tennisschule'),jdecode(''),'/30901/index.html','true',[ 
		['PAGE','107737',jdecode('Fotos+Kindertraining'),jdecode(''),'/30901/107737.html','true',[],'']
	],''],
	['PAGE','49758',jdecode('Turniere'),jdecode(''),'/49758/index.html','true',[ 
		['PAGE','46027',jdecode('Kids-Cup'),jdecode(''),'/49758/46027.html','true',[],''],
		['PAGE','121945',jdecode('KIA+Mixed+Cup'),jdecode(''),'/49758/121945.html','true',[],''],
		['PAGE','125648',jdecode('Bezirksmeisterschaften'),jdecode(''),'/49758/125648.html','true',[],'']
	],''],
	['PAGE','127828',jdecode('Allstar-Matchplay'),jdecode(''),'/127828.html','true',[],''],
	['PAGE','144557',jdecode('Presse+2010'),jdecode(''),'/144557.html','true',[],''],
	['PAGE','22832',jdecode('Events'),jdecode(''),'/22832/index.html','true',[ 
		['PAGE','37498',jdecode('Jubil%E4um+%26%23x27%3B05'),jdecode(''),'/22832/37498.html','true',[],''],
		['PAGE','62711',jdecode('Herbstfest-Archiv'),jdecode(''),'/22832/62711.html','true',[],'']
	],''],
	['PAGE','28854',jdecode('G%E4stebuch'),jdecode(''),'/28854/index.html','true',[ 
		['PAGE','28853',jdecode('Neuer+Eintrag'),jdecode(''),'/28854/28853.html','true',[],'']
	],''],
	['PAGE','33201',jdecode('Werbepartner'),jdecode(''),'/33201/index.html','true',[ 
		['PAGE','30603',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/33201/30603.html','false',[],'']
	],''],
	['PAGE','22801',jdecode('Impressum'),jdecode(''),'/22801.html','true',[],''],
	['PAGE','30810',jdecode('Interner+Bereich'),jdecode(''),'/30810/index.html','true',[ 
		['PAGE','80172',jdecode('Vereins-Satzung'),jdecode(''),'/30810/80172.html','true',[],''],
		['PAGE','79836',jdecode('Mitgliederversamml.'),jdecode(''),'/30810/79836.html','true',[],''],
		['PAGE','43441',jdecode('Clubmeister+seit+1930'),jdecode(''),'/30810/43441.html','true',[],'']
	],''],
	['PAGE','147169',jdecode('Wetter'),jdecode(''),'/147169.html','true',[],''],
	['PAGE','151346',jdecode('Fotos%2FVideos'),jdecode(''),'/151346.html','true',[],''],
	['PAGE','153445',jdecode('Adventsfeier+%26%23x27%3B10'),jdecode(''),'/153445.html','true',[],''],
	['PAGE','155173',jdecode('Robinson+Cup'),jdecode(''),'/155173/index.html','true',[ 
		['PAGE','156249',jdecode('Fotos'),jdecode(''),'/155173/156249.html','true',[],'']
	],'']];
var siteelementCount=46;
theSitetree.topTemplateName='Speed';
					                                                                    
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 */					                                                            

