/* [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','41946',jdecode('Startseite'),jdecode(''),'/41946.html','true',[],''],
	['PAGE','48984',jdecode('Haus+Nordhauk'),jdecode(''),'/48984/home.html','true',[ 
		['PAGE','50801',jdecode('Wohnung1'),jdecode(''),'/48984/50801.html','true',[],''],
		['PAGE','50822',jdecode('Wohnung2'),jdecode(''),'/48984/50822.html','true',[],''],
		['PAGE','50843',jdecode('Wohnung3'),jdecode(''),'/48984/50843.html','true',[],'']
	],''],
	['PAGE','48965',jdecode('Preis+%26+Leistung'),jdecode(''),'/48965.html','true',[],''],
	['PAGE','47911',jdecode('Kontakt+%2F+Buchung'),jdecode(''),'/47911.html','true',[],''],
	['PAGE','50901',jdecode('Lage+%26+Anfahrt'),jdecode(''),'/50901.html','true',[],''],
	['PAGE','59701',jdecode('Haftungsausschlu%C3%9F'),jdecode(''),'/59701.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='8B0B22';
theSitetree.keyvisualId='7536';
theSitetree.keyvisualName='kv_7536.jpg';
theSitetree.fontsetId='16583';
theSitetree.graphicsetId='12199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='AEC6B8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bombay',
				paletteFamily: 	'8B0B22',
				keyvisualId: 	'7536',
				keyvisualName: 	'kv_7536.jpg',
				fontsetId: 		'16583',
				graphicsetId: 	'12199',
				contentColor: 	'000000',
				contentBGColor: 'AEC6B8',
				a_color: 		'8B0B22',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41946',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-20220412']={
webappId:    '1501',
documentId:  '41946',
internalId:  '20220412',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '50901',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-62449509']={
webappId:    '1008',
documentId:  '47911',
internalId:  '62449509',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41946',
internalId:  '',
customField: '20120108-104243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48984',
internalId:  '',
customField: '20100824-122612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20100321-175933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48965',
internalId:  '',
customField: '20120108-104421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47911',
internalId:  '',
customField: '20120108-104444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20120108-104909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50822',
internalId:  '',
customField: '20100321-180018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50843',
internalId:  '',
customField: '20100321-180052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20060903-132154'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7RFR3';
var companyName   = 'Ferienwohnungen+Fink++-+Insel+Borkum';
var htmlTitle	  = 'Ferienwohnungen+Fink+auf+Borkum';
var metaKeywords  = 'Fink%2C+Ferienwohnungen%2C+Ferienwohnungen+Fink%2C+Ferienwohnungen+Borkum%2C+Ferien+Borkum%3B+Borkumurlaub%2C+Insel+Borkum%2C+Nordseebad+Borkum%2C+Fink-Borkum%2C+Fink+Borkum%2C+Haus+Nordhauk%2C+Haus+Nolting%2C+Nolting%2C+Nordhauk';
var metaContents  = 'Christian++Brigitte+Fink%2C+Engelse+Pad+6%2C+26757+Borkum%2C+Tel.%3A+04922%2F7183%2C+Fax%3A+04922%2F990688%2C+EMail%3A+cfink%40t-online.de%2C+www.fink-borkum.de';
					                                                                    
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 */					                                                            

