/* [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','1115',jdecode('Home'),jdecode(''),'/1115/index.html','true',[ 
		['PAGE','12162',jdecode('bisherige+Erfolge'),jdecode(''),'/1115/12162.html','true',[],''],
		['PAGE','15679',jdecode('Sport'),jdecode(''),'/1115/15679.html','true',[],''],
		['PAGE','15643',jdecode('Wetter'),jdecode(''),'/1115/15643.html','true',[],''],
		['PAGE','14406',jdecode('Disclaimer'),jdecode(''),'/1115/14406.html','true',[],'']
	],''],
	['PAGE','1601',jdecode('G%E4stebuch'),jdecode(''),'/1601/index.html','true',[ 
		['PAGE','1602',jdecode('Eintr%E4ge'),jdecode(''),'/1601/1602.html','true',[],''],
		['PAGE','1406',jdecode('Mail+me'),jdecode(''),'/1601/1406.html','true',[],'']
	],''],
	['PAGE','1291',jdecode('Galerie'),jdecode(''),'/1291/index.html','true',[ 
		['PAGE','1314',jdecode('Wettk%E4mpfe'),jdecode(''),'/1291/1314.html','true',[],''],
		['PAGE','1337',jdecode('Trainingslager'),jdecode(''),'/1291/1337.html','true',[],''],
		['PAGE','2644',jdecode('Privat'),jdecode(''),'/1291/2644.html','true',[],'']
	],''],
	['PAGE','1383',jdecode('News'),jdecode(''),'/1383/index.html','true',[ 
		['PAGE','2895',jdecode('Starts+2005'),jdecode(''),'/1383/2895.html','true',[],''],
		['PAGE','2918',jdecode('Ergebnisse+2004+%2F+05'),jdecode(''),'/1383/2918.html','true',[],''],
		['PAGE','13815',jdecode('Presse'),jdecode(''),'/1383/13815.html','true',[],'']
	],''],
	['PAGE','2667',jdecode('Sponsoren'),jdecode(''),'/2667/index.html','true',[ 
		['PAGE','1804',jdecode('Mail+me'),jdecode(''),'/2667/1804.html','false',[],''],
		['PAGE','11317',jdecode('SponsorenInfo'),jdecode(''),'/2667/11317.html','true',[],'']
	],''],
	['PAGE','1429',jdecode('Shop'),jdecode(''),'/1429.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Atmosphere';
					                                                                    
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 */					                                                            
