/* [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','2095',jdecode('Home++'),jdecode(''),'/2095.html','true',[],''],
	['PAGE','15209',jdecode('Wir+%FCber+uns'),jdecode(''),'/15209/index.html','true',[ 
		['PAGE','15232',jdecode('Unser+Team'),jdecode(''),'/15209/15232.html','true',[],''],
		['PAGE','15917',jdecode('Unser+Service'),jdecode(''),'/15209/15917.html','true',[],''],
		['PAGE','15625',jdecode('So+finden+Sie+uns'),jdecode(''),'/15209/15625.html','true',[],''],
		['PAGE','15648',jdecode('%D6ffnungszeiten+'),jdecode(''),'/15209/15648.html','true',[],'']
	],''],
	['PAGE','16137',jdecode('Teile+und+Leistungen'),jdecode(''),'/16137/index.html','true',[ 
		['PAGE','16160',jdecode('Endantriebe'),jdecode(''),'/16137/16160.html','true',[],''],
		['PAGE','16183',jdecode('Getriebe'),jdecode(''),'/16137/16183.html','true',[],''],
		['PAGE','60216',jdecode('Gangspringer+4+Ventiler'),jdecode(''),'/16137/60216.html','true',[],''],
		['PAGE','16206',jdecode('Motoren'),jdecode(''),'/16137/16206.html','true',[],''],
		['PAGE','16229',jdecode('Kardanwellen'),jdecode(''),'/16137/16229.html','true',[],''],
		['PAGE','16252',jdecode('Vergaser'),jdecode(''),'/16137/16252.html','true',[],''],
		['PAGE','16275',jdecode('Zylinderkopf'),jdecode(''),'/16137/16275.html','true',[],''],
		['PAGE','16298',jdecode('Anlasser'),jdecode(''),'/16137/16298.html','true',[],''],
		['PAGE','16321',jdecode('Lichtmaschinen'),jdecode(''),'/16137/16321.html','true',[],''],
		['PAGE','18110',jdecode('Tuning'),jdecode(''),'/16137/18110.html','true',[],''],
		['PAGE','57159',jdecode('Zubeh%F6r+R-Modelle+4-V'),jdecode(''),'/16137/57159.html','true',[],''],
		['PAGE','57190',jdecode('Zubeh%F6r+R-Modelle+2-V'),jdecode(''),'/16137/57190.html','true',[],''],
		['PAGE','57221',jdecode('Zubeh%F6r+K-Modelle'),jdecode(''),'/16137/57221.html','true',[],''],
		['PAGE','57252',jdecode('Zubeh%F6r+F-Modelle'),jdecode(''),'/16137/57252.html','true',[],''],
		['PAGE','57283',jdecode('Zubeh%F6r+C1-Modelle'),jdecode(''),'/16137/57283.html','true',[],''],
		['PAGE','57314',jdecode('Wegfahrsperre+'),jdecode(''),'/16137/57314.html','true',[],''],
		['PAGE','57992',jdecode('Blinkerr%FCckstellung'),jdecode(''),'/16137/57992.html','true',[],'']
	],''],
	['PAGE','55916',jdecode('Umbauten'),jdecode(''),'/55916.html','true',[],''],
	['PAGE','27410',jdecode('Gebrauchte++'),jdecode(''),'/27410/index.html','true',[ 
		['PAGE','37047',jdecode('BMW'),jdecode(''),'/27410/37047.html','true',[],''],
		['PAGE','54162',jdecode('Sonstige'),jdecode(''),'/27410/54162.html','true',[],'']
	],''],
	['PAGE','53316',jdecode('AGB'),jdecode(''),'/53316.html','true',[],''],
	['PAGE','13201',jdecode('Kontakt+'),jdecode(''),'/13201/index.html','true',[ 
		['PAGE','38417',jdecode('Kontakt++%28Folgeseite%29'),jdecode(''),'/13201/38417.html','false',[],'']
	],''],
	['PAGE','36341',jdecode('Kontakt+'),jdecode(''),'/36341.html','false',[],''],
	['PAGE','52581',jdecode('Hobbies'),jdecode(''),'/52581.html','true',[],''],
	['PAGE','52608',jdecode('Sonstiges'),jdecode(''),'/52608.html','true',[],''],
	['PAGE','52635',jdecode('Links'),jdecode(''),'/52635.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Movement';
					                                                                    
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 */					                                                            

