/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41328',jdecode('Service+%26+Leistungsspektrum'),jdecode(''),'/41328.html','true',[],''],
	['PAGE','41337',jdecode('Gebrauchtfahrzeuge'),jdecode(''),'/41337.html','true',[],''],
	['PAGE','41346',jdecode('Aktuelles%2FLinks'),jdecode(''),'/41346.html','true',[],''],
	['PAGE','41355',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41355/home.html','true',[ 
		['PAGE','41373',jdecode('Unser+Team'),jdecode(''),'/41355/41373.html','true',[],''],
		['PAGE','41443',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/41355/41443.html','true',[],'']
	],''],
	['PAGE','41391',jdecode('Impressum'),jdecode(''),'/41391.html','true',[],''],
	['PAGE','41494',jdecode('Anfahrt'),jdecode(''),'/41494.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='TOI_Automobil_01';
theSitetree.paletteFamily='D22F2F';
theSitetree.keyvisualId='12225';
theSitetree.keyvisualName='kv_12225.jpg';
theSitetree.fontsetId='33354';
theSitetree.graphicsetId='14218';
theSitetree.contentColor='E5E0E0';
theSitetree.contentBGColor='2C2C2C';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Automobil_01',
				paletteFamily: 	'D22F2F',
				keyvisualId: 	'12225',
				keyvisualName: 	'kv_12225.jpg',
				fontsetId: 		'33354',
				graphicsetId: 	'14218',
				contentColor: 	'E5E0E0',
				contentBGColor: '2C2C2C',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100823-103307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41328',
internalId:  '',
customField: '20100723-162003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41391',
internalId:  '',
customField: '20100723-161920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41337',
internalId:  '',
customField: '20100413-080951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41346',
internalId:  '',
customField: '20100714-121847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41355',
internalId:  '',
customField: '20100625-122952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41373',
internalId:  '',
customField: '20100104-155826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41494',
internalId:  '',
customField: '20091121-103401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41443',
internalId:  '',
customField: '20100823-102240'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41494',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
var canonHostname = 'c4awrk06.aul.t-online.de';
var accountId     = 'ATOIX0IRNCR7';
var companyName   = 'Herzlich+willkommen%21';
var htmlTitle	  = 'Autohaus+Bender+%26+G%C3%B6ttmann+GmbH+%26+Co.KG';
var metaKeywords  = 'Autohaus+Bender+und+G%C3%B6ttmann%2C+Autohaus+Bender++G%C3%B6ttmann%2C+Bender+und+G%C3%B6ttmann%2C+Auto%2C+Autoreparaturen%2C+Autoservice%2C+Service%2C+Auspuff%2C+Reifen%2C+Bremsen%2C+Kfz-Service%2C+Kfz-Werkstatt%2C+Sto%C3%9Fdaempfer%2C+Oelwechsel%2C+Kfz%2C+Werkstatt%2C+Autowerkstatt%2C+T%C3%9CV%2C+DEKRA+%2C+smart+repair%2C+Mitsubishi%2C+AutoCrew%2C+freie+Werkstatt%2C+Mitsubishi+Servicepartner%2C+Gebrauchtwagen%2C+Unfallinstandsetzung%2C+Unfallreparatur';
var metaContents  = 'Willkommen+in+unserer+KFZ+Werkstatt.+Reparaturen%2C+Service%2C+Teile%2C+Zubehoer%2C+Accessoires%2C+bei+uns+finden+Sie+alles+unter+einem+Dach.++';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            
