/* [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','13963',jdecode('Bayerischer+Hof+'),jdecode(''),'/13963.html','true',[],''],
	['PAGE','14209',jdecode('Online-Anfrage'),jdecode(''),'/14209/home.html','true',[ 
		['PAGE','23015',jdecode('Online-Anfragen+%28Folgeseite%29'),jdecode(''),'/14209/23015.html','false',[],'']
	],''],
	['PAGE','58466',jdecode('Aktuelle+Aktionen+'),jdecode(''),'/58466.html','true',[],''],
	['PAGE','14290',jdecode('Unsere+R%C3%A4ume+'),jdecode(''),'/14290.html','true',[],''],
	['PAGE','27041',jdecode('Partyservice'),jdecode(''),'/27041.html','true',[],''],
	['PAGE','14155',jdecode('Zimmerpreise'),jdecode(''),'/14155.html','true',[],''],
	['PAGE','14128',jdecode('Unsere+Umgebung'),jdecode(''),'/14128.html','true',[],''],
	['PAGE','14020',jdecode('Unser+Ferienhaus'),jdecode(''),'/14020.html','true',[],''],
	['PAGE','21610',jdecode('f%C3%BCr+Reisegesellschaften'),jdecode(''),'/21610.html','true',[],''],
	['PAGE','22617',jdecode('so+finden+Sie+uns'),jdecode(''),'/22617.html','true',[],''],
	['PAGE','27311',jdecode('Online+-+Buchung'),jdecode(''),'/27311.html','true',[],''],
	['PAGE','23072',jdecode('G%C3%A4stebuch'),jdecode(''),'/23072/home.html','true',[ 
		['PAGE','23073',jdecode('Eintr%C3%A4ge'),jdecode(''),'/23072/23073.html','true',[],'']
	],''],
	['PAGE','27201',jdecode('Impressum'),jdecode(''),'/27201.html','true',[],''],
	['PAGE','53166',jdecode('interessante+Links'),jdecode(''),'/53166.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Favor';
theSitetree.paletteFamily='D2BD84';
theSitetree.keyvisualId='10170';
theSitetree.keyvisualName='kv_10170.jpg';
theSitetree.fontsetId='16469';
theSitetree.graphicsetId='12160';
theSitetree.contentColor='323232';
theSitetree.contentBGColor='F1EEDB';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Favor',
				paletteFamily: 	'D2BD84',
				keyvisualId: 	'10170',
				keyvisualName: 	'kv_10170.jpg',
				fontsetId: 		'16469',
				graphicsetId: 	'12160',
				contentColor: 	'323232',
				contentBGColor: 'F1EEDB',
				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['1001']=webappMappings['1001-atoix0inl4cc8518a4d11d2b2b12']={
webappId:    '1001',
documentId:  '14209',
internalId:  'atoix0inl4cc8518a4d11d2b2b12',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0inl4cc8518a4d11d2b2b12']={
webappId:    '1001',
documentId:  '23015',
internalId:  'atoix0inl4cc8518a4d11d2b2b12',
customField: 'followUp'
};
webappMappings['1002']=webappMappings['1002-23072ATOIX0INL4CC']={
webappId:    '1002',
documentId:  '23072',
internalId:  '23072ATOIX0INL4CC',
customField: 'action=form&icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13963',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1639170']={
webappId:    '1501',
documentId:  '13963',
internalId:  '1639170',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-23072ATOIX0INL4CC']={
webappId:    '1002',
documentId:  '23073',
internalId:  '23072ATOIX0INL4CC',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13963',
internalId:  '',
customField: '20120120-101115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53166',
internalId:  '',
customField: '20110225-173727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14290',
internalId:  '',
customField: '20110413-202633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27041',
internalId:  '',
customField: '20110413-202937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14155',
internalId:  '',
customField: '20120120-095508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14128',
internalId:  '',
customField: '20090207-184205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14020',
internalId:  '',
customField: '20120120-095711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21610',
internalId:  '',
customField: '20120120-095804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58466',
internalId:  '',
customField: '20120201-112209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22617',
internalId:  '',
customField: '20100510-201751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14209',
internalId:  '',
customField: '20110205-201223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23015',
internalId:  '',
customField: '20041219-130045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27311',
internalId:  '',
customField: '20070309-095431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23072',
internalId:  '',
customField: '20041219-130731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23073',
internalId:  '',
customField: '20041219-130731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20100110-184026'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INL4CC';
var companyName   = 'Gasthof-Hotel+Bayerischer+Hof';
var htmlTitle	  = 'Bayerischer+Hof+Heiligenberg';
var metaKeywords  = 'Bayerischer+Hof%2C+Heiligenberg%2C+Bodensee%2C+Linzgau%2C+Partyservice%2CHochzeitservice%2CReisegesellschaften%2CZimmer%2CFreibad%2Caktuelle+Angebote';
var metaContents  = 'Gasthof+Hotel+Bayerischer+Hof+%2Cfamili%C3%A4rer+Betrieb++mit+Partyservice+%2CG%C3%A4stezimmer+mit+WLAN%2Cregionale+K%C3%BCche+';
					                                                                    
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 */					                                                            

