/* [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','40911',jdecode('Unser+G%C3%A4stehaus'),jdecode(''),'/40911/home.html','true',[ 
		['PAGE','40920',jdecode('Zimmer+1'),jdecode(''),'/40911/40920.html','true',[],''],
		['PAGE','42153',jdecode('Zimmer+2'),jdecode(''),'/40911/42153.html','true',[],''],
		['PAGE','42162',jdecode('Zimmer+3'),jdecode(''),'/40911/42162.html','true',[],''],
		['PAGE','42171',jdecode('Zimmer+4'),jdecode(''),'/40911/42171.html','true',[],''],
		['PAGE','40929',jdecode('Der+Fr%C3%BChst%C3%BCcksraum'),jdecode(''),'/40911/40929.html','true',[],''],
		['PAGE','40938',jdecode('Parken'),jdecode(''),'/40911/40938.html','true',[],'']
	],''],
	['PAGE','40974',jdecode('Preis+%26+Leistung'),jdecode(''),'/40974/home.html','true',[ 
		['PAGE','41251',jdecode('Aktionen'),jdecode(''),'/40974/41251.html','true',[],'']
	],''],
	['PAGE','40983',jdecode('Online-Anfragen'),jdecode(''),'/40983.html','true',[],''],
	['PAGE','40992',jdecode('Kontakt'),jdecode(''),'/40992.html','true',[],''],
	['PAGE','42324',jdecode('Anfahrt'),jdecode(''),'/42324.html','true',[],''],
	['PAGE','40956',jdecode('Ausflugsziele'),jdecode(''),'/40956.html','true',[],''],
	['PAGE','40885',jdecode('G%C3%A4stebuch'),jdecode(''),'/40885/home.html','true',[ 
		['PAGE','40884',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40885/40884.html','true',[],'']
	],''],
	['PAGE','41011',jdecode('Bildergalerie'),jdecode(''),'/41011.html','true',[],''],
	['PAGE','40965',jdecode('Weitere+Unterk%C3%BCnfte'),jdecode(''),'/40965.html','true',[],''],
	['PAGE','42180',jdecode('Sonstiges'),jdecode(''),'/42180.html','true',[],''],
	['PAGE','41001',jdecode('Impressum'),jdecode(''),'/41001.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Workflow';
theSitetree.paletteFamily='B8BADF';
theSitetree.keyvisualId='7836';
theSitetree.keyvisualName='kv_7836.jpg';
theSitetree.fontsetId='16843';
theSitetree.graphicsetId='12288';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Workflow',
				paletteFamily: 	'B8BADF',
				keyvisualId: 	'7836',
				keyvisualName: 	'kv_7836.jpg',
				fontsetId: 		'16843',
				graphicsetId: 	'12288',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'8487BF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'8487BF',
				e_color: 		'979696',
				f_color: 		'707070',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20100511-053330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40885',
internalId:  '',
customField: '20100507-232632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40884',
internalId:  '',
customField: '20100507-232632'
};
webappMappings['1002']=webappMappings['1002-40885atoix0irbgma']={
webappId:    '1002',
documentId:  '40885',
internalId:  '40885atoix0irbgma',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40885atoix0irbgma']={
webappId:    '1002',
documentId:  '40884',
internalId:  '40885atoix0irbgma',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40911',
internalId:  '',
customField: '20100511-053609'
};
webappMappings['1007']=webappMappings['1007-128810fb55e']={
webappId:    '1007',
documentId:  '41011',
internalId:  '128810fb55e',
customField: 'g.1520gsdln.f5p4ke6jno.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41011',
internalId:  '',
customField: '20100511-050321'
};
webappMappings['1501']=webappMappings['1501-70441602']={
webappId:    '1501',
documentId:  '39994',
internalId:  '70441602',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40920',
internalId:  '',
customField: '20100511-053746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40929',
internalId:  '',
customField: '20100511-054336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40938',
internalId:  '',
customField: '20100511-054530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42180',
internalId:  '',
customField: '20100511-045528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40956',
internalId:  '',
customField: '20100511-051723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40965',
internalId:  '',
customField: '20100511-045920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40974',
internalId:  '',
customField: '20100511-052255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40983',
internalId:  '',
customField: '20100511-052157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40992',
internalId:  '',
customField: '20100511-052103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20100511-045715'
};
webappMappings['1008']=webappMappings['1008-70442407']={
webappId:    '1008',
documentId:  '40983',
internalId:  '70442407',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42153',
internalId:  '',
customField: '20100511-053906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41251',
internalId:  '',
customField: '20100511-052358'
};
webappMappings['1005']=webappMappings['1005-128820f1626.89a36a3e']={
webappId:    '1005',
documentId:  '42180',
internalId:  '128820f1626.89a36a3e',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42162',
internalId:  '',
customField: '20100511-054021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42171',
internalId:  '',
customField: '20100511-054125'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42324',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42324',
internalId:  '',
customField: '20100511-071815'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRBGMA';
var companyName   = 'G%C3%A4stehaus-B%C3%A4rbel';
var htmlTitle	  = '';
var metaKeywords  = '';
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 */					                                                            

