/* [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','9301',jdecode('Startseite'),jdecode(''),'/9301.html','true',[],''],
	['PAGE','27801',jdecode('ABC+%2F+Adressen'),jdecode(''),'/27801.html','true',[],''],
	['PAGE','97286',jdecode('Aktuelles+aus+Auerbach'),jdecode(''),'/97286.html','true',[],''],
	['PAGE','43638',jdecode('Auerbacher+Chronik'),jdecode(''),'/43638.html','true',[],''],
	['PAGE','19801',jdecode('Auerbacher+Kerb'),jdecode(''),'/19801.html','true',[],''],
	['PAGE','43659',jdecode('B%C3%BCcher+%2F+Publikationen'),jdecode(''),'/43659.html','true',[],''],
	['PAGE','27401',jdecode('Erlebnis-Gastronomie'),jdecode(''),'/27401.html','true',[],''],
	['PAGE','9337',jdecode('Essen+und+Trinken'),jdecode(''),'/9337.html','true',[],''],
	['PAGE','18801',jdecode('Festspiele+%2F+Theater'),jdecode(''),'/18801.html','true',[],''],
	['PAGE','55186',jdecode('Kontakt'),jdecode(''),'/55186/home.html','true',[ 
		['PAGE','55486',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/55186/55486.html','false',[],'']
	],''],
	['PAGE','17806',jdecode('Kunstausstellungen'),jdecode(''),'/17806.html','true',[],''],
	['PAGE','127186',jdecode('Kurzreisen-Angebote'),jdecode(''),'/127186.html','true',[],''],
	['PAGE','17101',jdecode('Termin-Kalender'),jdecode(''),'/17101.html','true',[],''],
	['PAGE','9342',jdecode('%C3%9Cbernachten'),jdecode(''),'/9342.html','true',[],''],
	['PAGE','9307',jdecode('Wandern+und+mehr'),jdecode(''),'/9307.html','true',[],''],
	['PAGE','22711',jdecode('Wein'),jdecode(''),'/22711.html','true',[],''],
	['PAGE','80386',jdecode('Weitere+%22...Auerbach%22'),jdecode(''),'/80386.html','true',[],''],
	['PAGE','47086',jdecode('Impressum'),jdecode(''),'/47086.html','true',[],''],
	['PAGE','112386',jdecode('Anfahrt'),jdecode(''),'/112386.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10473';
theSitetree.graphicsetId='10950';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DED0D0';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Meadow',
				paletteFamily: 	'0000CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10473',
				graphicsetId: 	'10950',
				contentColor: 	'000000',
				contentBGColor: 'DED0D0',
				a_color: 		'AF7F7F',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-4338334']={
webappId:    '1501',
documentId:  '9301',
internalId:  '4338334',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9301',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '112386',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20100728-110352'
};
webappMappings['1001']=webappMappings['1001-atoix0in220c10a98ad715d']={
webappId:    '1001',
documentId:  '55186',
internalId:  'atoix0in220c10a98ad715d',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0in220c10a98ad715d']={
webappId:    '1001',
documentId:  '55486',
internalId:  'atoix0in220c10a98ad715d',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97286',
internalId:  '',
customField: '20100604-170756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20090117-143457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43638',
internalId:  '',
customField: '20100122-190722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20100304-113538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43659',
internalId:  '',
customField: '20090117-143457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20080418-163742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9337',
internalId:  '',
customField: '20100604-165640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100430-111435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55186',
internalId:  '',
customField: '20070524-124011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55486',
internalId:  '',
customField: '20060414-155325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17806',
internalId:  '',
customField: '20100604-165352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127186',
internalId:  '',
customField: '20100604-170327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20090117-143457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9342',
internalId:  '',
customField: '20100219-175953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9307',
internalId:  '',
customField: '20070209-100800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22711',
internalId:  '',
customField: '20100227-183943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80386',
internalId:  '',
customField: '20100728-110259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47086',
internalId:  '',
customField: '20090606-174328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112386',
internalId:  '',
customField: '20070524-124123'
};
var canonHostname = 'c4awrk05.aul.t-online.de';
var accountId     = 'ATOIX0IN220C';
var companyName   = 'Luftkurort+Bensheim-Auerbach+%28Bergstra%C3%9Fe%29';
var htmlTitle	  = '';
var metaKeywords  = 'Auerbach%2C+Bensheim-Auerbach%2C+Aktuelles%2C++Erlebnis-Gastronomie%2C+Essen+und+Trinken%2C+Festspiele+und+Theater%2C+Kunstausstellungen%2C+Sommerakademie%2C+aktueller+Terminkalender%2C+%C3%9Cbernachten%2C+Wandern%2C+Wein%2C+Riviera+Deutschlands.';
var metaContents  = 'Der+Luftkurort+Bensheim-Auerbach+liegt+am+Fu%C3%9Fe+der+h%C3%B6chsten+Erhebung+des+Odenwaldes+dem+Melibokus+%28517%2C40m+%C3%BCber+NN%29+und+des+Schlossberges+Auerberg+%28339%2C70m+%C3%BCber+NN%29+an+der+sch%C3%B6nen+Bergstra%C3%9Fe+im+S%C3%BCden+Hessens.+Wir+sind+der+zweitw%C3%A4rmste+Ort+Deutschlands+-+deshalb+nennt+man+uns+auch+die+Riviera+Deutschlands.';
					                                                                    
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 */					                                                            
