/* [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','13667',jdecode('Home'),jdecode(''),'/13667.html','true',[],''],
	['PAGE','13693',jdecode('Online-Anfragen'),jdecode(''),'/13693.html','true',[],''],
	['PAGE','89627',jdecode('Preise+%26+Zimmer'),jdecode(''),'/89627.html','true',[],''],
	['PAGE','56427',jdecode('Anreise'),jdecode(''),'/56427/home.html','true',[ 
		['PAGE','40227',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/56427/40227.html','true',[],'']
	],''],
	['PAGE','13949',jdecode('G%C3%A4stebuch'),jdecode(''),'/13949/home.html','true',[ 
		['PAGE','13950',jdecode('Eintr%C3%A4ge'),jdecode(''),'/13949/13950.html','true',[],'']
	],''],
	['PAGE','20127',jdecode('Impressum'),jdecode(''),'/20127.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Cherry';
theSitetree.paletteFamily='FCFCFB';
theSitetree.keyvisualId='10894';
theSitetree.keyvisualName='kv_10894.jpg';
theSitetree.fontsetId='31882';
theSitetree.graphicsetId='13691';
theSitetree.contentColor='535738';
theSitetree.contentBGColor='FCFCFB';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cherry',
				paletteFamily: 	'FCFCFB',
				keyvisualId: 	'10894',
				keyvisualName: 	'kv_10894.jpg',
				fontsetId: 		'31882',
				graphicsetId: 	'13691',
				contentColor: 	'535738',
				contentBGColor: 'FCFCFB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-13949atoix0ineu8z']={
webappId:    '1002',
documentId:  '13949',
internalId:  '13949atoix0ineu8z',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-13949atoix0ineu8z']={
webappId:    '1002',
documentId:  '13950',
internalId:  '13949atoix0ineu8z',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13667',
internalId:  '',
customField: '20120130-124258'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13667',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']=webappMappings['1008-38200456']={
webappId:    '1008',
documentId:  '13693',
internalId:  '38200456',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56427',
internalId:  '',
customField: '20090428-145745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13693',
internalId:  '',
customField: '20110508-084830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13949',
internalId:  '',
customField: '20080807-184913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13950',
internalId:  '',
customField: '20050324-122533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20127',
internalId:  '',
customField: '20090429-063354'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '40227',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40227',
internalId:  '',
customField: '20070815-080540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89627',
internalId:  '',
customField: '20120130-123829'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INEU8Z';
var companyName   = 'Hotel+Am+Leuchtturm+auf+Borkum';
var htmlTitle	  = 'Hotel+Am+Leuchtturm+Borkum+-+Strand%2C+Stadtzentrum+und+Natur+-+Urlaub+der+besonderen+Art';
var metaKeywords  = 'Hotel+%2C+Hotel+Am+Leuchtturm+%2C+Borkum+%2C+Ferien+%2C++Freundlichkeit+%2C+Kinderfreundlich+%2C+Hund+%2C+Zentral+%2C+Garni+%2C+Fr%C3%BChst%C3%BCck+%2C+Doppelzimmer+%2C+Einzelzimmer+%2C+Familienzimmer+%2C+++Preise+%2C+++Hotelgarten++%2C+Fahrrad+%2C+Angebote+%2C+Borkum+%2C+Ostfriesland+%2C++Strand+%2C+Meer+%2CNordseeheilbad+%2C+Ostfrisische+Nordseeinsel+%2C+Gezeitenland';
var metaContents  = 'F%C3%BChlen+Sie+sich+herzlich+Willkommen+im+Hotel+Am+Leuchtturm+zentral+auf+Borkum+gelegen+zwischen+dem+Neuen+Leuchtturm+und+dem+Hauptbadestrand.';
					                                                                    
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 */					                                                            

