/* [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','4559',jdecode('Homepage'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','42502',jdecode('Neuwagen'),jdecode(''),'/42502/index.html','true',[ 
		['PAGE','45102',jdecode('Alfa+Romeo'),jdecode(''),'/42502/45102.html','true',[],''],
		['PAGE','45129',jdecode('Fiat'),jdecode(''),'/42502/45129.html','true',[],''],
		['PAGE','45156',jdecode('Jaguar'),jdecode(''),'/42502/45156.html','true',[],''],
		['PAGE','45183',jdecode('Land+Rover'),jdecode(''),'/42502/45183.html','true',[],''],
		['PAGE','45210',jdecode('Mitsubishi'),jdecode(''),'/42502/45210.html','true',[],''],
		['PAGE','45237',jdecode('Volvo'),jdecode(''),'/42502/45237.html','true',[],''],
		['PAGE','59001',jdecode('Jahreswagen'),jdecode(''),'/42502/59001.html','true',[],''],
		['PAGE','51202',jdecode('Info+Dreil%E4ndereck'),jdecode(''),'/42502/51202.html','true',[],'']
	],''],
	['PAGE','43902',jdecode('Grosskunden+%26+Flotten'),jdecode(''),'/43902.html','true',[],''],
	['PAGE','45264',jdecode('Service+%26+Kundendienst'),jdecode(''),'/45264/index.html','true',[ 
		['PAGE','45291',jdecode('Unsere+Dienstleistungen'),jdecode(''),'/45264/45291.html','true',[],''],
		['PAGE','61691',jdecode('50+%25+KFZ+Steuer+sparen'),jdecode(''),'/45264/61691.html','true',[],'']
	],''],
	['PAGE','49313',jdecode('Ersatzteile+%26+Zubeh%F6r'),jdecode(''),'/49313.html','true',[],''],
	['PAGE','58632',jdecode('Europamobil'),jdecode(''),'/58632.html','true',[],''],
	['PAGE','42529',jdecode('Gebrauchtwagen+D'),jdecode(''),'/42529/index.html','true',[ 
		['PAGE','40602',jdecode('Qualit%E4tsversprechen'),jdecode(''),'/42529/40602.html','true',[],''],
		['PAGE','42556',jdecode('Autob%F6rse+Deutschland'),jdecode(''),'/42529/42556.html','true',[],'']
	],''],
	['PAGE','10703',jdecode('Autob%F6rse+Schweiz'),jdecode(''),'/10703/index.html','true',[ 
		['PAGE','12656',jdecode('Export+Schweiz'),jdecode(''),'/10703/12656.html','true',[],'']
	],''],
	['PAGE','7903',jdecode('Bourse+Auto+France'),jdecode(''),'/7903/index.html','true',[ 
		['PAGE','38802',jdecode('Export+France'),jdecode(''),'/7903/38802.html','true',[],'']
	],''],
	['PAGE','43214',jdecode('Automercato+Italia'),jdecode(''),'/43214.html','true',[],''],
	['PAGE','43241',jdecode('Veh%EDculo+Ocasi%F3n+ES'),jdecode(''),'/43241.html','true',[],''],
	['PAGE','7403',jdecode('Standorte+%26+Kontakt'),jdecode(''),'/7403/index.html','true',[ 
		['PAGE','15403',jdecode('Bilder+der+Standorte'),jdecode(''),'/7403/15403.html','true',[],'']
	],''],
	['PAGE','44602',jdecode('Jobs+%26+Karriere'),jdecode(''),'/44602.html','true',[],''],
	['PAGE','56802',jdecode('Lage+MAZ+an+der+B3'),jdecode(''),'/56802.html','true',[],''],
	['PAGE','57102',jdecode('Ihr+Weg+zum+MAZ+'),jdecode(''),'/57102.html','true',[],''],
	['PAGE','5803',jdecode('Impressum'),jdecode(''),'/5803.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Sportive';
					                                                                    
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 */					                                                            
