/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','4652',jdecode('Free+Triker+Butzbach'),jdecode(''),'/4652.html','true',[],''],
	['PAGE','108302',jdecode('Aktivit%E4ten'),jdecode(''),'/108302.html','true',[],''],
	['PAGE','130502',jdecode('Fun'),jdecode(''),'/130502.html','true',[],''],
	['PAGE','9532',jdecode('Galerie'),jdecode(''),'/9532.html','true',[],''],
	['PAGE','132202',jdecode('Bilder+N%FCrburgring'),jdecode(''),'/132202.html','true',[],''],
	['PAGE','131002',jdecode('Custom+%26+Co'),jdecode(''),'/131002.html','true',[],''],
	['PAGE','9603',jdecode('G%E4stebuch'),jdecode(''),'/9603/index.html','true',[ 
		['PAGE','9604',jdecode('Eintr%E4ge'),jdecode(''),'/9603/9604.html','true',[],'']
	],''],
	['PAGE','81003',jdecode('Weblog%2FForum'),jdecode(''),'/81003.html','true',[],''],
	['PAGE','11942',jdecode('Interessante+Links'),jdecode(''),'/11942.html','true',[],''],
	['PAGE','87403',jdecode('Dein+Weg+zu+uns'),jdecode(''),'/87403.html','true',[],''],
	['PAGE','59089',jdecode('Triker+Wetter'),jdecode(''),'/59089.html','true',[],''],
	['PAGE','28889',jdecode('+Befreundete+Clubs'),jdecode(''),'/28889.html','true',[],''],
	['PAGE','19089',jdecode('Haftungsausschluss'),jdecode(''),'/19089.html','true',[],''],
	['PAGE','89602',jdecode('Gedenkseite'),jdecode(''),'/89602.html','true',[],''],
	['PAGE','110346',jdecode('Medien'),jdecode(''),'/110346.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
