/* [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('Home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41314',jdecode('Baumh%C3%A4user'),jdecode(''),'/41314.html','true',[],''],
	['PAGE','41323',jdecode('Kontakt+%2F+Belegung'),jdecode(''),'/41323.html','true',[],''],
	['PAGE','41895',jdecode('Preise+%2F+AGB'),jdecode(''),'/41895.html','true',[],''],
	['PAGE','41619',jdecode('Presse'),jdecode(''),'/41619.html','true',[],''],
	['PAGE','42578',jdecode('G%C3%A4stebuch'),jdecode(''),'/42578/home.html','true',[ 
		['PAGE','42577',jdecode('Eintr%C3%A4ge'),jdecode(''),'/42578/42577.html','true',[],'']
	],''],
	['PAGE','63801',jdecode('Tagungsst%C3%A4tte'),jdecode(''),'/63801.html','true',[],''],
	['PAGE','41479',jdecode('Anfahrt+%2F+Impressum'),jdecode(''),'/41479.html','true',[],''],
	['PAGE','41332',jdecode('Links'),jdecode(''),'/41332.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='40710E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='166';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'40710E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'166',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'40710E',
				b_color: 		'00CC00',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				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: '20100728-114241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41314',
internalId:  '',
customField: '20100717-104558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20100728-114502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41332',
internalId:  '',
customField: '20100428-191158'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41479',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41479',
internalId:  '',
customField: '20100615-121027'
};
webappMappings['1008']=webappMappings['1008-40771734']={
webappId:    '1008',
documentId:  '41323',
internalId:  '40771734',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41619',
internalId:  '',
customField: '20100723-153121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41895',
internalId:  '',
customField: '20100527-145329'
};
webappMappings['1002']=webappMappings['1002-42578atoix0i7fhgg']={
webappId:    '1002',
documentId:  '42578',
internalId:  '42578atoix0i7fhgg',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63801',
internalId:  '',
customField: '20090218-144914'
};
webappMappings['1002']=webappMappings['1002-42578atoix0i7fhgg']={
webappId:    '1002',
documentId:  '42577',
internalId:  '42578atoix0i7fhgg',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42578',
internalId:  '',
customField: '20080127-203615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42577',
internalId:  '',
customField: '20080127-192941'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7FHGG';
var companyName   = '';
var htmlTitle	  = 'Baumhaushotel+Solling';
var metaKeywords  = 'meta+name%3Dverify-v1+content%3D%2BDC5icWIqBh6RLpIOBFatiDwgfb1PrE8%2FCqpzsWV8Sw%3D+%2FBaumhaushotel%2C+Baumhaus%2C+Solling%2C+Erlebniswald%2C+Uslar%2C+Abenteuer%2C+Hotel%2C+Besonderes+Erlebnis%2C+Romantische+%C3%9Cbernachtung%2C+Hochzeitsnacht%2C+Kinder%2C+Familien%2C+Biker%2C+Weserbergland%2C+Schlafen%2C+Wipfel';
var metaContents  = 'Baumhaushotel+Solling+-+Niedersachsens+erstes+Baumhaushotel+im+Herzen+des+Sollings%21+%C3%9Cbernachten+in+luftiger+H%C3%B6he.+Nicht+nur+f%C3%BCr+Abenteurer...';
					                                                                    
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 */					                                                            
