/* [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','40395',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40395/home.html','true',[ 
		['PAGE','40359',jdecode('Service'),jdecode(''),'/40395/40359.html','true',[],''],
		['PAGE','40368',jdecode('Motoren%2C+Getriebe'),jdecode(''),'/40395/40368.html','true',[],''],
		['PAGE','40404',jdecode('Werkstatt'),jdecode(''),'/40395/40404.html','true',[],''],
		['PAGE','40413',jdecode('Unser+Team'),jdecode(''),'/40395/40413.html','true',[],''],
		['PAGE','40422',jdecode('So+finden+Sie+uns'),jdecode(''),'/40395/40422.html','true',[],'']
	],''],
	['PAGE','40350',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/40350.html','true',[],''],
	['PAGE','41586',jdecode('Anfahrt'),jdecode(''),'/41586.html','true',[],''],
	['PAGE','40386',jdecode('Kontakt'),jdecode(''),'/40386.html','true',[],''],
	['PAGE','40431',jdecode('Impressum'),jdecode(''),'/40431.html','true',[],''],
	['PAGE','41566',jdecode('AGB%C2%B4s'),jdecode(''),'/41566.html','true',[],''],
	['PAGE','40440',jdecode('Motorsport'),jdecode(''),'/40440/home.html','true',[ 
		['PAGE','41508',jdecode('Fotos'),jdecode(''),'/40440/41508.html','true',[],'']
	],''],
	['PAGE','41836',jdecode('Betreute+Rennteams'),jdecode(''),'/41836.html','true',[],''],
	['PAGE','40377',jdecode('Aktuelle+Angebote'),jdecode(''),'/40377.html','true',[],''],
	['PAGE','41959',jdecode('Motoren+Lieferbar'),jdecode(''),'/41959.html','true',[],''],
	['PAGE','41951',jdecode('Online-Shop'),jdecode(''),'/41951.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10615';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10615',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				a_color: 		'221785',
				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: '20100526-103615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40350',
internalId:  '',
customField: '20100104-132746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40359',
internalId:  '',
customField: '20091230-213645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40368',
internalId:  '',
customField: '20090309-215247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41959',
internalId:  '',
customField: '20091228-161505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40395',
internalId:  '',
customField: '20100526-113110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40386',
internalId:  '',
customField: '20091223-230103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40422',
internalId:  '',
customField: '20100212-083224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40431',
internalId:  '',
customField: '20090309-222037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40440',
internalId:  '',
customField: '20090309-222332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41508',
internalId:  '',
customField: '20100104-125542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40413',
internalId:  '',
customField: '20091229-102134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40404',
internalId:  '',
customField: '20100103-111716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41566',
internalId:  '',
customField: '20091229-090706'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41586',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41586',
internalId:  '',
customField: '20090209-113915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40377',
internalId:  '',
customField: '20091223-234444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41951',
internalId:  '',
customField: '20091226-142422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41836',
internalId:  '',
customField: '20090214-144333'
};
webappMappings['4001']=webappMappings['4001-55527540']={
webappId:    '4001',
documentId:  '41951',
internalId:  '55527540',
customField: 'language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRQOKB';
var companyName   = 'CHRISTMANN+MOTOREN';
var htmlTitle	  = 'CHRISTMANN+MOTOREN';
var metaKeywords  = 'Ihr+Name%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++';
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 */					                                                            
