/* [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('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41274',jdecode('Steckbrief'),jdecode(''),'/41274/home.html','true',[ 
		['PAGE','41415',jdecode('Das+Haus'),jdecode(''),'/41274/41415.html','true',[],''],
		['PAGE','41487',jdecode('Foto-Rundgang'),jdecode(''),'/41274/41487.html','true',[],''],
		['PAGE','41283',jdecode('Lage'),jdecode(''),'/41274/41283.html','true',[],''],
		['PAGE','41292',jdecode('Beschreibung'),jdecode(''),'/41274/41292.html','true',[],''],
		['PAGE','41301',jdecode('Versorgung'),jdecode(''),'/41274/41301.html','true',[],'']
	],''],
	['PAGE','41310',jdecode('Preise'),jdecode(''),'/41310.html','true',[],''],
	['PAGE','41319',jdecode('Aktivit%C3%A4ten'),jdecode(''),'/41319/home.html','true',[ 
		['PAGE','41328',jdecode('Freizeit%2BSport'),jdecode(''),'/41319/41328.html','true',[],''],
		['PAGE','41337',jdecode('Touristik'),jdecode(''),'/41319/41337.html','true',[],'']
	],''],
	['PAGE','41355',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41355.html','true',[],''],
	['PAGE','41779',jdecode('Fintel+und+Umgebung.Fotos'),jdecode(''),'/41779.html','true',[],''],
	['PAGE','41373',jdecode('Kontakt'),jdecode(''),'/41373.html','true',[],''],
	['PAGE','41382',jdecode('Impressum'),jdecode(''),'/41382.html','true',[],''],
	['PAGE','41578',jdecode('Anfahrt'),jdecode(''),'/41578.html','true',[],''],
	['PAGE','41346',jdecode('Links'),jdecode(''),'/41346.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='TOI_Smoothsurface';
theSitetree.paletteFamily='AE7AA8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33401';
theSitetree.graphicsetId='14266';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Smoothsurface',
				paletteFamily: 	'AE7AA8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33401',
				graphicsetId: 	'14266',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100201-200722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41274',
internalId:  '',
customField: '20100131-190637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41283',
internalId:  '',
customField: '20100208-203328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41292',
internalId:  '',
customField: '20100131-181349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20100128-113547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41310',
internalId:  '',
customField: '20100126-122637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41382',
internalId:  '',
customField: '20100311-191415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41319',
internalId:  '',
customField: '20100131-182420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41415',
internalId:  '',
customField: '20100203-115537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41328',
internalId:  '',
customField: '20100207-193346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41355',
internalId:  '',
customField: '20100216-142724'
};
webappMappings['1007']=webappMappings['1007-1266bb09423']={
webappId:    '1007',
documentId:  '41487',
internalId:  '1266bb09423',
customField: 'g.14plqo3ib.7hrbmlsn59v.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41487',
internalId:  '',
customField: '20100201-153532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41337',
internalId:  '',
customField: '20100207-193253'
};
webappMappings['1007']=webappMappings['1007-1268952f60b']={
webappId:    '1007',
documentId:  '41779',
internalId:  '1268952f60b',
customField: 'g.14q4iak6e.46ogb7131m3.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41779',
internalId:  '',
customField: '20100201-194548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41373',
internalId:  '',
customField: '20100311-185642'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41578',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41578',
internalId:  '',
customField: '20100130-225316'
};
webappMappings['1008']=webappMappings['1008-69569488']={
webappId:    '1008',
documentId:  '41373',
internalId:  '69569488',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41346',
internalId:  '',
customField: '20100208-204326'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRBACU';
var companyName   = 'Ferienwohnung+%22Nuddelhof%22+in+Fintel';
var htmlTitle	  = 'Ferienwohnung+%22Nuddelhof%22+in+Fintel';
var metaKeywords  = 'Ihr+Name%2C+Kunst%2C+Kultur%2C+Ihr+Programm%2C+K%C3%BCnstler%2C+++';
var metaContents  = 'Willkommen+bei+Ihr+Name.++';
					                                                                    
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 */					                                                            

