/* [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','40812',jdecode('Unsere+Hotelzimmer'),jdecode(''),'/40812/home.html','true',[ 
		['PAGE','40830',jdecode('Preise+%26+Arrangements+'),jdecode(''),'/40812/40830.html','true',[],'']
	],''],
	['PAGE','40839',jdecode('Restaurant'),jdecode(''),'/40839/home.html','true',[ 
		['PAGE','41131',jdecode('Speisenkarte'),jdecode(''),'/40839/41131.html','true',[],'']
	],''],
	['PAGE','40894',jdecode('Lieferservice'),jdecode(''),'/40894/home.html','true',[ 
		['PAGE','41146',jdecode('Hessisches+Buffet'),jdecode(''),'/40894/41146.html','true',[],''],
		['PAGE','41155',jdecode('Mediterranes+Buffet'),jdecode(''),'/40894/41155.html','true',[],''],
		['PAGE','41164',jdecode('Asiatisches+Buffet'),jdecode(''),'/40894/41164.html','true',[],''],
		['PAGE','41215',jdecode('Buffet+Werratal'),jdecode(''),'/40894/41215.html','true',[],''],
		['PAGE','41224',jdecode('Kulinarische+Reise'),jdecode(''),'/40894/41224.html','true',[],''],
		['PAGE','41233',jdecode('Weitere+Lieferangebote'),jdecode(''),'/40894/41233.html','true',[],'']
	],''],
	['PAGE','40866',jdecode('Veranstaltungen'),jdecode(''),'/40866.html','true',[],''],
	['PAGE','40875',jdecode('Online-Anfragen'),jdecode(''),'/40875.html','true',[],''],
	['PAGE','40857',jdecode('Umgebung+%26+Freizeit'),jdecode(''),'/40857/home.html','true',[ 
		['PAGE','41361',jdecode('Sehensw%C3%BCrdigkeiten'),jdecode(''),'/40857/41361.html','true',[],'']
	],''],
	['PAGE','40884',jdecode('Impressum'),jdecode(''),'/40884.html','true',[],''],
	['PAGE','41112',jdecode('Anfahrt'),jdecode(''),'/41112/home.html','true',[ 
		['PAGE','41124',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/41112/41124.html','true',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='E2C4A0';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17859';
theSitetree.graphicsetId='12985';
theSitetree.contentColor='6C2E16';
theSitetree.contentBGColor='F0E1CF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Firma',
				paletteFamily: 	'E2C4A0',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17859',
				graphicsetId: 	'12985',
				contentColor: 	'6C2E16',
				contentBGColor: 'F0E1CF',
				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:     '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: '20120110-080147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40812',
internalId:  '',
customField: '20101201-133416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40830',
internalId:  '',
customField: '20110726-172213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40839',
internalId:  '',
customField: '20110102-140958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40857',
internalId:  '',
customField: '20091215-113000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40875',
internalId:  '',
customField: '20100310-221806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40884',
internalId:  '',
customField: '20100326-081557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40894',
internalId:  '',
customField: '20091215-113407'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41112',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '41124',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41124',
internalId:  '',
customField: '20091103-123023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41112',
internalId:  '',
customField: '20100306-180215'
};
webappMappings['1008']=webappMappings['1008-65308847']={
webappId:    '1008',
documentId:  '40875',
internalId:  '65308847',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41146',
internalId:  '',
customField: '20091128-095521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41155',
internalId:  '',
customField: '20091128-100627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41164',
internalId:  '',
customField: '20091128-101140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40866',
internalId:  '',
customField: '20120201-133222'
};
webappMappings['7091']=webappMappings['7091-36872']={
webappId:    '7091',
documentId:  '39994',
internalId:  '36872',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41224',
internalId:  '',
customField: '20091128-102624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41215',
internalId:  '',
customField: '20091128-101609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41131',
internalId:  '',
customField: '20110327-164652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41233',
internalId:  '',
customField: '20091127-094538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41361',
internalId:  '',
customField: '20091202-102907'
};
webappMappings['7091']=webappMappings['7091-55501']={
webappId:    '7091',
documentId:  '40812',
internalId:  '55501',
customField: 'align:left;language:de;country:DE;'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRG4F5';
var companyName   = 'Hotel+Restaurant+%22+Lange+Reihe+Sechs%22+';
var htmlTitle	  = 'Hotel+Restaurant+%22+Lange+Reihe+Sechs%22';
var metaKeywords  = 'Hotel+Restaurant+Essen+Trinken+Kurzurlaub+Urlaub+Familienurlaub+Wellness+Entspannen+Gutschein+Relaxen+Erholen+Entspannen+Ausspannen+Genie%C3%9Fen+Wandern+Fahrradfahren+Motorradtouren+Kanu+Golf+Sport+Schlafen+Gem%C3%BCtlichkeit';
var metaContents  = 'Willkommen+im+gem%C3%BCtlichen+Fachwerkhotel+mit+dem+neuen+Restaurant+f%C3%BCr+deutsche+K%C3%BCche+direkt+am+Kurpark+von+Bad+Sooden-Allendorf+';
					                                                                    
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 */					                                                            

