/* [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','13726',jdecode('Gasthaus+Baselblick'),jdecode(''),'/13726.html','true',[],''],
	['PAGE','23201',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/23201.html','true',[],''],
	['PAGE','23222',jdecode('Saisonale+Karte'),jdecode(''),'/23222.html','true',[],''],
	['PAGE','40715',jdecode('Unsere+Speisekarte'),jdecode(''),'/40715.html','true',[],''],
	['PAGE','23285',jdecode('Aktuelle+Tagesgerichte'),jdecode(''),'/23285.html','true',[],''],
	['PAGE','29501',jdecode('Special+Events'),jdecode(''),'/29501.html','true',[],''],
	['PAGE','31615',jdecode('Silvestermen%C3%BC'),jdecode(''),'/31615.html','true',[],''],
	['PAGE','23306',jdecode('Von+damals+bis+heute'),jdecode(''),'/23306.html','true',[],''],
	['PAGE','18202',jdecode('G%C3%A4stebuch'),jdecode(''),'/18202/home.html','true',[ 
		['PAGE','18203',jdecode('Eintr%C3%A4ge'),jdecode(''),'/18202/18203.html','true',[],'']
	],''],
	['PAGE','28401',jdecode('Kontakt+%C3%96ffnungszeiten'),jdecode(''),'/28401.html','true',[],''],
	['PAGE','34615',jdecode('Anfahrt'),jdecode(''),'/34615.html','true',[],''],
	['PAGE','35215',jdecode('Routenplaner'),jdecode(''),'/35215.html','true',[],''],
	['PAGE','60415',jdecode('Impressum'),jdecode(''),'/60415.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='74';
theSitetree.graphicsetId='80';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D0D5DB';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'660000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'74',
				graphicsetId: 	'80',
				contentColor: 	'000000',
				contentBGColor: 'D0D5DB',
				a_color: 		'660000',
				b_color: 		'CCCC99',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-18202atoix0in2nk3']={
webappId:    '1002',
documentId:  '18202',
internalId:  '18202atoix0in2nk3',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-18202atoix0in2nk3']={
webappId:    '1002',
documentId:  '18203',
internalId:  '18202atoix0in2nk3',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13726',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13726',
internalId:  '',
customField: '20110217-171752'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '34615',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '35215',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23285',
internalId:  '',
customField: '20111213-145702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20100717-100836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23222',
internalId:  '',
customField: '20111213-150205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20111213-150420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31615',
internalId:  '',
customField: '20111213-143154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23306',
internalId:  '',
customField: '20050821-160939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18202',
internalId:  '',
customField: '20091113-160754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18203',
internalId:  '',
customField: '20100929-160424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20090731-162806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34615',
internalId:  '',
customField: '20060201-152244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35215',
internalId:  '',
customField: '20060211-221520'
};
webappMappings['1008']=webappMappings['1008-45290790']={
webappId:    '1008',
documentId:  '29501',
internalId:  '45290790',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40715',
internalId:  '',
customField: '20100923-173711'
};
webappMappings['7091']=webappMappings['7091-58178']={
webappId:    '7091',
documentId:  '13726',
internalId:  '58178',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60415',
internalId:  '',
customField: '20111114-114259'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN2NK3';
var companyName   = '%22Baselblick%22+das+Gasthaus+auf+der+Britsche';
var htmlTitle	  = 'Gasthaus+Baselblick+++Efringen-+Kirchen+++Gasthaus+Baselblick+++Efringen-+Kirchen';
var metaKeywords  = 'Restaurant+Essen+und+trinken+Efringen-Kirchen+Fondue+Saisonspezialit%C3%A4ten+Die+Markgrafen+S%C3%BCdbaden';
var metaContents  = 'Willkommen+im+Gasthaus+Baselblick+in+Efringen-Kirchen+das+Gasthaus+auf+der+Britsche+Harry+Krebs';
					                                                                    
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 */					                                                            

