/* [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','40456',jdecode('Home'),jdecode(''),'/40456.html','true',[],''],
	['PAGE','40485',jdecode('Unser+Hotel'),jdecode(''),'/40485/home.html','true',[ 
		['PAGE','40494',jdecode('Die+Zimmer'),jdecode(''),'/40485/40494.html','true',[],''],
		['PAGE','40503',jdecode('Restaurant'),jdecode(''),'/40485/40503.html','true',[],'']
	],''],
	['PAGE','40521',jdecode('Preis+%26+Leistung'),jdecode(''),'/40521.html','true',[],''],
	['PAGE','40944',jdecode('Anfahrt'),jdecode(''),'/40944.html','true',[],''],
	['PAGE','40530',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/40530.html','true',[],''],
	['PAGE','42310',jdecode('Links'),jdecode(''),'/42310.html','true',[],''],
	['PAGE','42337',jdecode('Reisen'),jdecode(''),'/42337.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='650D0D';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17859';
theSitetree.graphicsetId='12984';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='9D6464';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Firma',
				paletteFamily: 	'650D0D',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17859',
				graphicsetId: 	'12984',
				contentColor: 	'FFFFFF',
				contentBGColor: '9D6464',
				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:  '40456',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40456',
internalId:  '',
customField: '20110427-104854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40944',
internalId:  '',
customField: '20090819-181827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40485',
internalId:  '',
customField: '20070603-102447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40521',
internalId:  '',
customField: '20090611-114150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42310',
internalId:  '',
customField: '20091003-190057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40494',
internalId:  '',
customField: '20090210-185048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40530',
internalId:  '',
customField: '20100427-191609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40503',
internalId:  '',
customField: '20070624-192624'
};
webappMappings['1011']=webappMappings['1011-ddp-reisen']={
webappId:    '1011',
documentId:  '42337',
internalId:  'ddp-reisen',
customField: 'language:de;country:DE;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40944',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-34946796']={
webappId:    '1008',
documentId:  '40530',
internalId:  '34946796',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42337',
internalId:  '',
customField: '20070628-230805'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7ERC8';
var companyName   = '%C3%9Cbernachten+im+sch%C3%B6nen+M%C3%BCnsterland';
var htmlTitle	  = 'Hotel%2FGasthof+Br%C3%BCggemann-Rother%2C+59387+Ascheberg';
var metaKeywords  = 'Hotel%2FGasthof+Br%C3%BCggemann-Rother%2C+Reisen%2C+%C3%9Cbernachten%2C+Schlafen%2C+Restaurant%2C+Essen%2C+Hotel%2C+Gasthof%2C+Pension%2C+Ascheberg%2C+59387%2C+M%C3%BCnster%2C+Autobahn+A1%2C+g%C3%BCnstige+Hotelzimmer%2C+M%C3%BCnsterland%2C+Davert%2C+Biergarten%2C+gutb%C3%BCrgerliche+K%C3%BCche%2C+Schie%C3%9Fstand%2C+Festsaal%2C+Tagungen%2C+Kreis+Coesfeld%2C+Radfahren%2C+Spazierg%C3%A4nge%2C+Familienbetrieb%2C+Doppelzimmer%2C+Club-%2Fund+Familienfeiern%2C+gro%C3%9Fer+Parkplatz%2C+Theke%2C+B+58%2C+Clubtouren%2C+Dreibettzimmer%2C+Einzelzimmer%2C+Trinken%2C+Zimmer%2C+Gastst%C3%A4tte%2C+Hotels%2C+Hotels+in+Ascheberg%2C+Verkehrsverein+Ascheberg%2C+Fr%C3%BChst%C3%BCck%2C+Halbpension%2C+Schloss+Westerwinkel%2C+Schloss+Nordkirchen%2C+%C3%9Cbernachtung+Ascheberg%2C+Westfalen%2C+Kiepenkerl%2C+Radwanderwege%2C+Fahrrad%2C+Auto%2C+fahrradfahren%2C+Ortskern%2C+Unterkunft%2C+Unterk%C3%BCnfte%2C+';
var metaContents  = 'Herzlich+Willkommen+im+Hotel%2FGasthof+Br%C3%BCggemann-Rother%2C+59387+Ascheberg%2C+Steinfurter+Str.+64.+Sechs+moderne+Zimmer+%2815+Betten%29+mit+Bad%2FWC+%2B+TV%3B+Restaurant+%2B+Thekenbereich%2C++Festsaal%2C+moderner+Schie%C3%9Fstand%2C+Biergarten%2C+gro%C3%9Fer+Parkplatz+';
					                                                                    
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 */					                                                            

