/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40605',jdecode('Unser+Angebot'),jdecode(''),'/40605/home.html','true',[ 
		['PAGE','40978',jdecode('Unsere+Fremdenzimmer'),jdecode(''),'/40605/40978.html','true',[],'']
	],''],
	['PAGE','40524',jdecode('Preis+%26+Leistung'),jdecode(''),'/40524.html','true',[],''],
	['PAGE','40542',jdecode('Kontakt'),jdecode(''),'/40542.html','true',[],''],
	['PAGE','40562',jdecode('Anfahrt'),jdecode(''),'/40562.html','true',[],''],
	['PAGE','41000',jdecode('G%C3%A4stebuch'),jdecode(''),'/41000/home.html','true',[ 
		['PAGE','40999',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41000/40999.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Circles';
theSitetree.paletteFamily='DDF3C8';
theSitetree.keyvisualId='10971';
theSitetree.keyvisualName='kv_10971.jpg';
theSitetree.fontsetId='31911';
theSitetree.graphicsetId='13726';
theSitetree.contentColor='3C7B00';
theSitetree.contentBGColor='DDF3C8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circles',
				paletteFamily: 	'DDF3C8',
				keyvisualId: 	'10971',
				keyvisualName: 	'kv_10971.jpg',
				fontsetId: 		'31911',
				graphicsetId: 	'13726',
				contentColor: 	'3C7B00',
				contentBGColor: 'DDF3C8',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40562',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1007']=webappMappings['1007-108ca58156a']={
webappId:    '1007',
documentId:  '40978',
internalId:  '108ca58156a',
customField: 'g.11355bo7h.akt3cqlr9n.1s'
};
webappMappings['1002']=webappMappings['1002-41000atoix0i7c4r7']={
webappId:    '1002',
documentId:  '41000',
internalId:  '41000atoix0i7c4r7',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41000atoix0i7c4r7']={
webappId:    '1002',
documentId:  '40999',
internalId:  '41000atoix0i7c4r7',
customField: 'action=list'
};
webappMappings['1008']=webappMappings['1008-21171392']={
webappId:    '1008',
documentId:  '40542',
internalId:  '21171392',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20091102-160541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40605',
internalId:  '',
customField: '20091102-155757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40978',
internalId:  '',
customField: '20060114-203554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40524',
internalId:  '',
customField: '20091102-160121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40542',
internalId:  '',
customField: '20070809-114332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40562',
internalId:  '',
customField: '20060817-182952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41000',
internalId:  '',
customField: '20100127-184740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40999',
internalId:  '',
customField: '20070304-132518'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7C4R7';
var companyName   = 'Einen+sch%C3%B6nen+Urlaub+in+der+Rh%C3%B6n';
var htmlTitle	  = 'Fremdenzimmer+zu+fairen+Preisen+bei+netter+Familie';
var metaKeywords  = 'Wittershausen%2CFremdenzimmer%2C+%C3%9Cbernachtung%2C+Rh%C3%B6n%2C+Bad+Kissingen%2C+KissSalis%2CKur%2CKissinger+Sommer%2CRakoczy%2C+Urlaub%2CEuerdorf%2COberthulba%2CKreuzberg%2CWandern%2C+Fahrrad%2C+Urlaub+mit+dem+Fahrrad%2CKurzurlaub%2CFamilienfreundlich%2CSaaletal%2CWanderurlaub%2CWasserski%2CSaale%2CHammelburg%2CFr%C3%A4nkische+Saale%2C+Trimburg%2C+Ruine+Aura%2CBasaltsee%2C+Berghaus+R%C3%B6hn%2CJustice+Fanclub%2CStaatsbad+Nr.1%2CStaatsbad';
var metaContents  = 'Machen+Sie+Urlaub+in+der+Rh%C3%B6n%2C+oder+besuchen+Sie+Bad+Kissingen+f%C3%BCr+ein+paar+Tage.%C3%9Cbernachten+Sie+bei+einer+netten+Familie+nahe+Bad+Kissingen.Unser+kleiner+Ort+Wittershausen+liegt+nur+7+Kilometer+von+Bad+Kissingen+entfernt.+Fremdenzimmer+mit+reichhaltigem+Fr%C3%BChst%C3%BCck+zu+g%C3%BCnstigen+Preisen.Verbringen+Sie+ein+paar+sch%C3%B6ne+Stunden+in+der+Kiss+Salis+und+dann+bei+uns.';
					                                                                    
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 */					                                                            

