/* [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','40620',jdecode('G%C3%A4stehaus'),jdecode(''),'/40620.html','true',[],''],
	['PAGE','40629',jdecode('Appartement+%2F+Zimmer'),jdecode(''),'/40629/home.html','true',[ 
		['PAGE','40656',jdecode('Appartement'),jdecode(''),'/40629/40656.html','true',[],''],
		['PAGE','40638',jdecode('Einzelzimmer'),jdecode(''),'/40629/40638.html','true',[],''],
		['PAGE','40647',jdecode('Doppelzimmer'),jdecode(''),'/40629/40647.html','true',[],'']
	],''],
	['PAGE','40665',jdecode('Klimaschutz'),jdecode(''),'/40665.html','true',[],''],
	['PAGE','41023',jdecode('Kultur+%2B+Freizeit'),jdecode(''),'/41023/home.html','true',[ 
		['PAGE','41032',jdecode('Theater+%2B+Museen'),jdecode(''),'/41023/41032.html','true',[],''],
		['PAGE','41041',jdecode('Aktivit%C3%A4ten'),jdecode(''),'/41023/41041.html','true',[],''],
		['PAGE','41050',jdecode('Ausflugsziele'),jdecode(''),'/41023/41050.html','true',[],'']
	],''],
	['PAGE','40778',jdecode('Preise+%2F+AGB%26%23x27%3Bs'),jdecode(''),'/40778.html','true',[],''],
	['PAGE','40602',jdecode('Buchungsanfrage'),jdecode(''),'/40602.html','true',[],''],
	['PAGE','41009',jdecode('Anfahrt'),jdecode(''),'/41009.html','true',[],''],
	['PAGE','40993',jdecode('Kontakt'),jdecode(''),'/40993.html','true',[],''],
	['PAGE','40974',jdecode('Impressum'),jdecode(''),'/40974.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Billy';
theSitetree.paletteFamily='A24E4E';
theSitetree.keyvisualId='7078';
theSitetree.keyvisualName='kv_7078.jpg';
theSitetree.fontsetId='16390';
theSitetree.graphicsetId='12125';
theSitetree.contentColor='521D1D';
theSitetree.contentBGColor='A24E4E';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Billy',
				paletteFamily: 	'A24E4E',
				keyvisualId: 	'7078',
				keyvisualName: 	'kv_7078.jpg',
				fontsetId: 		'16390',
				graphicsetId: 	'12125',
				contentColor: 	'521D1D',
				contentBGColor: 'A24E4E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
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: '20111024-212535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40602',
internalId:  '',
customField: '20111024-211750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40778',
internalId:  '',
customField: '20111024-212401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40629',
internalId:  '',
customField: '20111024-212224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40665',
internalId:  '',
customField: '20090420-221421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40620',
internalId:  '',
customField: '20091115-142251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40638',
internalId:  '',
customField: '20090420-222549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40647',
internalId:  '',
customField: '20090423-213708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40656',
internalId:  '',
customField: '20090420-221120'
};
webappMappings['1008']=webappMappings['1008-59833586']={
webappId:    '1008',
documentId:  '40602',
internalId:  '59833586',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41009',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40974',
internalId:  '',
customField: '20111019-201908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40993',
internalId:  '',
customField: '20111024-212055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41009',
internalId:  '',
customField: '20111024-213834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41023',
internalId:  '',
customField: '20111117-184444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41032',
internalId:  '',
customField: '20111117-184444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41041',
internalId:  '',
customField: '20111117-184444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41050',
internalId:  '',
customField: '20111117-184444'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IRR53S';
var companyName   = 'Bohn%27s+G%C3%A4stehaus';
var htmlTitle	  = 'Bohn%27s+G%C3%A4stehaus';
var metaKeywords  = 'Deutsche+Sielroute%2C+Weser+Radweg%2C+Weser-Radweg%2C+Gr%C3%BCner+Ring+Bremen%2C+Unterweser+Radweg%2C+Unterweser-Radweg%2C+Wesermarsch%2C+%C3%9Cbernachten%2C+Lemwerder%2C+Altenesch%2C+Radfahrer%2C+Monteure%2C+ruhige+Lage%2C+Nichtraucher%2C+Unterstellm%C3%B6glichkeit+f%C3%BCr+Fahrr%C3%A4der%2C+eigenes+Bad%2C+Einzelzimmer%2C+Doppelzimmer%2C+Appartement';
var metaContents  = 'Ihr+G%C3%A4stehaus+in+Lemwerder-+Altenesch.+Ob+beruflich+oder+privat%2C+mit+insgesamt+9+Betten+in+5+komfortabel+ausgestatteten+Zimmern+und+einem+Appartement+bietet+Ihnen+unser+G%C3%A4stehaus+ideale+Voraussetzungen+f%C3%BCr+einen+angenehmen+Aufenthalt..+Alle+Zimmer+mit+eigenem+Bad.';
					                                                                    
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 */					                                                            

