/* [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','18263',jdecode('Home'),jdecode(''),'/18263.html','true',[],''],
	['PAGE','18320',jdecode('News'),jdecode(''),'/18320.html','true',[],''],
	['PAGE','18347',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/18347.html','true',[],''],
	['PAGE','23001',jdecode('Reitbetrieb'),jdecode(''),'/23001.html','true',[],''],
	['PAGE','18374',jdecode('Moderne+Boxen'),jdecode(''),'/18374/home.html','true',[ 
		['PAGE','23418',jdecode('Stallboxen'),jdecode(''),'/18374/23418.html','true',[],''],
		['PAGE','23445',jdecode('Aussenboxen'),jdecode(''),'/18374/23445.html','true',[],''],
		['PAGE','23472',jdecode('Paddockboxen'),jdecode(''),'/18374/23472.html','true',[],'']
	],''],
	['PAGE','23028',jdecode('Reitplatz'),jdecode(''),'/23028.html','true',[],''],
	['PAGE','23055',jdecode('Weitl%C3%A4ufige+Koppeln'),jdecode(''),'/23055.html','true',[],''],
	['PAGE','23082',jdecode('Reitschule'),jdecode(''),'/23082.html','true',[],''],
	['PAGE','23109',jdecode('Brennerei'),jdecode(''),'/23109/home.html','true',[ 
		['PAGE','18401',jdecode('Spezialit%C3%A4ten'),jdecode(''),'/23109/18401.html','true',[],''],
		['PAGE','28006',jdecode('Whisky-Geschichte'),jdecode(''),'/23109/28006.html','true',[],''],
		['PAGE','28034',jdecode('Whisky-Geschichte+Fortsetzung'),jdecode(''),'/23109/28034.html','true',[],'']
	],''],
	['PAGE','23602',jdecode('G%C3%A4stebuch'),jdecode(''),'/23602/home.html','true',[ 
		['PAGE','23603',jdecode('Eintr%C3%A4ge'),jdecode(''),'/23602/23603.html','true',[],'']
	],''],
	['PAGE','25973',jdecode('Impressionen'),jdecode(''),'/25973.html','true',[],''],
	['PAGE','25987',jdecode('Anfahrt'),jdecode(''),'/25987.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='A43F21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='182';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'A43F21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'182',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'A43F21',
				b_color: 		'E76E3E',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-23602ATOIX0INVE6W']={
webappId:    '1002',
documentId:  '23602',
internalId:  '23602ATOIX0INVE6W',
customField: 'action=form&icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18263',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-23602ATOIX0INVE6W']={
webappId:    '1002',
documentId:  '23603',
internalId:  '23602ATOIX0INVE6W',
customField: 'action=list'
};
webappMappings['1007']=webappMappings['1007-10b485a1bec']={
webappId:    '1007',
documentId:  '25973',
internalId:  '10b485a1bec',
customField: 'g.11d44l1vu.9ho46vm4bb.3o'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '25987',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18263',
internalId:  '',
customField: '20040509-120117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18320',
internalId:  '',
customField: '20100126-184043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18347',
internalId:  '',
customField: '20070624-201153'
};
webappMappings['1501']=webappMappings['1501-1345042']={
webappId:    '1501',
documentId:  '18263',
internalId:  '1345042',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25973',
internalId:  '',
customField: '20061111-191439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18374',
internalId:  '',
customField: '20040507-212328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23472',
internalId:  '',
customField: '20040603-181121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20060518-181935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23418',
internalId:  '',
customField: '20040507-212621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23445',
internalId:  '',
customField: '20040603-180956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23028',
internalId:  '',
customField: '20090107-092729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23055',
internalId:  '',
customField: '20040509-124631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23082',
internalId:  '',
customField: '20040509-125620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23109',
internalId:  '',
customField: '20040605-190741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100126-184441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23602',
internalId:  '',
customField: '20040509-120240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23603',
internalId:  '',
customField: '20040509-120240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25987',
internalId:  '',
customField: '20061111-192952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28006',
internalId:  '',
customField: '20100126-184715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28034',
internalId:  '',
customField: '20100126-185154'
};
var canonHostname = 'cfawrk10.aul.t-online.de';
var accountId     = 'ATOIX0INVE6W';
var companyName   = 'Bellerhof-Brennerei';
var htmlTitle	  = '';
var metaKeywords  = '0';
var metaContents  = '';
					                                                                    
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 */					                                                            
