/* [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','4606',jdecode('Home'),jdecode(''),'/4606.html','true',[],''],
	['PAGE','24901',jdecode('Holl+Motorsport'),jdecode(''),'/24901.html','true',[],''],
	['PAGE','56151',jdecode('Aktuelles'),jdecode(''),'/56151/index.html','true',[ 
		['PAGE','4663',jdecode('2006+-+2008'),jdecode(''),'/56151/4663.html','true',[],'']
	],''],
	['PAGE','9501',jdecode('Sponsoring+%2F+Events'),jdecode(''),'/9501/index.html','true',[ 
		['PAGE','45501',jdecode('Sponsoren'),jdecode(''),'/9501/45501.html','true',[],'']
	],''],
	['PAGE','41301',jdecode('Termine+%2F+Events'),jdecode(''),'/41301.html','true',[],''],
	['PAGE','4717',jdecode('Team'),jdecode(''),'/4717.html','true',[],''],
	['PAGE','46101',jdecode('Rennwagen'),jdecode(''),'/46101/index.html','true',[ 
		['PAGE','10632',jdecode('Entwicklung+2003+-+2004'),jdecode(''),'/46101/10632.html','true',[],''],
		['PAGE','46701',jdecode('Neuaufbau'),jdecode(''),'/46101/46701.html','true',[],'']
	],''],
	['PAGE','53001',jdecode('Bilder+%2F+Berichte'),jdecode(''),'/53001/index.html','true',[ 
		['PAGE','54701',jdecode('VLN+1-3'),jdecode(''),'/53001/54701.html','true',[],''],
		['PAGE','55901',jdecode('Porsche+996+GT3+RS'),jdecode(''),'/53001/55901.html','true',[],'']
	],''],
	['PAGE','38701',jdecode('2005'),jdecode(''),'/38701/index.html','true',[ 
		['PAGE','47270',jdecode('VLN+1'),jdecode(''),'/38701/47270.html','true',[],''],
		['PAGE','47202',jdecode('VLN+3'),jdecode(''),'/38701/47202.html','true',[],''],
		['PAGE','49902',jdecode('VLN+4'),jdecode(''),'/38701/49902.html','true',[],''],
		['PAGE','49302',jdecode('RECARO+Tuning+Event'),jdecode(''),'/38701/49302.html','true',[],''],
		['PAGE','49937',jdecode('VLN+6'),jdecode(''),'/38701/49937.html','true',[],''],
		['PAGE','51801',jdecode('6h-Rennen'),jdecode(''),'/38701/51801.html','true',[],''],
		['PAGE','51002',jdecode('Fahrertraining'),jdecode(''),'/38701/51002.html','true',[],''],
		['PAGE','52601',jdecode('VLN+8+-+Barbarossapreis'),jdecode(''),'/38701/52601.html','true',[],''],
		['PAGE','53355',jdecode('VLN+10+-+Schinkenrennen'),jdecode(''),'/38701/53355.html','true',[],''],
		['PAGE','53501',jdecode('Sport+Auto'),jdecode(''),'/38701/53501.html','true',[],'']
	],''],
	['PAGE','34001',jdecode('2004'),jdecode(''),'/34001/index.html','true',[ 
		['PAGE','4690',jdecode('Termine%2FErgebnisse'),jdecode(''),'/34001/4690.html','true',[],''],
		['PAGE','39601',jdecode('VLN+1.+und+2.+Lauf'),jdecode(''),'/34001/39601.html','true',[],''],
		['PAGE','4744',jdecode('VLN+4.%2F5.%2F6.+Lauf'),jdecode(''),'/34001/4744.html','true',[],''],
		['PAGE','34101',jdecode('VLN+8.+und+10.+Lauf'),jdecode(''),'/34001/34101.html','true',[],''],
		['PAGE','43801',jdecode('Freitag+Training'),jdecode(''),'/34001/43801.html','true',[],''],
		['PAGE','33970',jdecode('Castrol+-+Haugg+-+Cup'),jdecode(''),'/34001/33970.html','true',[],''],
		['PAGE','33939',jdecode('Touristenverkehr'),jdecode(''),'/34001/33939.html','true',[],''],
		['PAGE','36401',jdecode('Rad+am+Ring'),jdecode(''),'/34001/36401.html','true',[],'']
	],''],
	['PAGE','4771',jdecode('Links'),jdecode(''),'/4771.html','true',[],''],
	['PAGE','4825',jdecode('Kontakt'),jdecode(''),'/4825.html','true',[],''],
	['PAGE','35302',jdecode('G%E4stebuch'),jdecode(''),'/35302.html','true',[],''],
	['PAGE','35303',jdecode('Eintr%E4ge'),jdecode(''),'/35303.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='echo';
					                                                                    
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 */					                                                            

