/* [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.html','true',[],''],
	['PAGE','13801',jdecode('Infos+zum+Verein'),jdecode(''),'/13801/index.html','true',[ 
		['PAGE','36731',jdecode('Infos+zum+Verein+%28Folgeseite%29'),jdecode(''),'/13801/36731.html','false',[],''],
		['PAGE','38555',jdecode('Vorstand'),jdecode(''),'/13801/38555.html','true',[],''],
		['PAGE','37271',jdecode('Tennisanlage'),jdecode(''),'/13801/37271.html','true',[],''],
		['PAGE','21286',jdecode('Mitglied+werden'),jdecode(''),'/13801/21286.html','true',[],''],
		['PAGE','18910',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/13801/18910.html','true',[],'']
	],''],
	['PAGE','13832',jdecode('Mannschaften'),jdecode(''),'/13832/index.html','true',[ 
		['PAGE','36624',jdecode('Damenmannschaften'),jdecode(''),'/13832/36624.html','true',[],''],
		['PAGE','36655',jdecode('Herrenmannschaften'),jdecode(''),'/13832/36655.html','true',[],'']
	],''],
	['PAGE','19200',jdecode('Medenspiele'),jdecode(''),'/19200/index.html','true',[ 
		['PAGE','19083',jdecode('Mannschaften'),jdecode(''),'/19200/19083.html','true',[],''],
		['PAGE','111897',jdecode('Spieltermine+2012'),jdecode(''),'/19200/111897.html','true',[],''],
		['PAGE','102054',jdecode('Gruppen'),jdecode(''),'/19200/102054.html','true',[],''],
		['PAGE','86413',jdecode('Ergebnisse+u.+Tabellen'),jdecode(''),'/19200/86413.html','true',[],'']
	],''],
	['PAGE','20153',jdecode('Jugend'),jdecode(''),'/20153/index.html','true',[ 
		['PAGE','36690',jdecode('Spieltermine'),jdecode(''),'/20153/36690.html','true',[],''],
		['PAGE','114628',jdecode('U+11+Juniorinnen'),jdecode(''),'/20153/114628.html','true',[],''],
		['PAGE','114597',jdecode('U+11+Jugend+gem.+'),jdecode(''),'/20153/114597.html','true',[],''],
		['PAGE','90316',jdecode('U14+Juniorinnen'),jdecode(''),'/20153/90316.html','true',[],''],
		['PAGE','120897',jdecode('U14+Junioren'),jdecode(''),'/20153/120897.html','true',[],''],
		['PAGE','90254',jdecode('U18+Juniorinnen+'),jdecode(''),'/20153/90254.html','true',[],''],
		['PAGE','24632',jdecode('Clubmeisterschaft'),jdecode(''),'/20153/24632.html','true',[],''],
		['PAGE','123097',jdecode('Jugendturniere'),jdecode(''),'/20153/123097.html','true',[],'']
	],''],
	['PAGE','44884',jdecode('Termine'),jdecode(''),'/44884.html','true',[],''],
	['PAGE','51253',jdecode('Turniere'),jdecode(''),'/51253.html','true',[],''],
	['PAGE','41660',jdecode('Galerie'),jdecode(''),'/41660/index.html','true',[ 
		['PAGE','109498',jdecode('Rund+ums+Vereinsheim'),jdecode(''),'/41660/109498.html','true',[],'']
	],''],
	['PAGE','37888',jdecode('Gastronomie'),jdecode(''),'/37888/index.html','true',[ 
		['PAGE','44853',jdecode('Gastro+News'),jdecode(''),'/37888/44853.html','true',[],''],
		['PAGE','47690',jdecode('Buffetvorschl%E4ge'),jdecode(''),'/37888/47690.html','true',[],'']
	],''],
	['PAGE','18984',jdecode('G%E4stebuch'),jdecode(''),'/18984/index.html','true',[ 
		['PAGE','18985',jdecode('Eintr%E4ge'),jdecode(''),'/18984/18985.html','true',[],''],
		['PAGE','63292',jdecode('Voting'),jdecode(''),'/18984/63292.html','true',[],'']
	],''],
	['PAGE','38491',jdecode('Werbepartner'),jdecode(''),'/38491.html','true',[],''],
	['PAGE','37826',jdecode('Service'),jdecode(''),'/37826/index.html','true',[ 
		['PAGE','37857',jdecode('Downloads'),jdecode(''),'/37826/37857.html','true',[],''],
		['PAGE','68192',jdecode('Spass'),jdecode(''),'/37826/68192.html','true',[],'']
	],''],
	['PAGE','19522',jdecode('Wetter'),jdecode(''),'/19522.html','true',[],''],
	['PAGE','13925',jdecode('Impressum'),jdecode(''),'/13925.html','true',[],'']];
var siteelementCount=40;
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 */					                                                            

