/* [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('Willkommen'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40648',jdecode('Unser+Angebot'),jdecode(''),'/40648.html','true',[],''],
	['PAGE','40657',jdecode('Lage%2FAnreise'),jdecode(''),'/40657.html','true',[],''],
	['PAGE','40666',jdecode('Ausstattung'),jdecode(''),'/40666.html','true',[],''],
	['PAGE','41020',jdecode('Freizeitangebote'),jdecode(''),'/41020.html','true',[],''],
	['PAGE','41780',jdecode('Aktuelle+Bilder'),jdecode(''),'/41780.html','true',[],''],
	['PAGE','40675',jdecode('Preise%2FAGB'),jdecode(''),'/40675.html','true',[],''],
	['PAGE','40693',jdecode('Kontakt%2FBelegungsplan'),jdecode(''),'/40693.html','true',[],''],
	['PAGE','40702',jdecode('Links'),jdecode(''),'/40702.html','true',[],''],
	['PAGE','40711',jdecode('Impressum'),jdecode(''),'/40711.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='009900';
theSitetree.keyvisualId='9239';
theSitetree.keyvisualName='kv1.swf';
theSitetree.fontsetId='17363';
theSitetree.graphicsetId='12759';
theSitetree.contentColor='009900';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'009900',
				keyvisualId: 	'9239',
				keyvisualName: 	'kv1.swf',
				fontsetId: 		'17363',
				graphicsetId: 	'12759',
				contentColor: 	'009900',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, 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: '20120203-114434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40675',
internalId:  '',
customField: '20110517-123604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40648',
internalId:  '',
customField: '20090701-160111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40657',
internalId:  '',
customField: '20110616-113500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40693',
internalId:  '',
customField: '20120203-114214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40666',
internalId:  '',
customField: '20090928-185049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41020',
internalId:  '',
customField: '20111109-170555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40702',
internalId:  '',
customField: '20110928-100542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40711',
internalId:  '',
customField: '20090324-155501'
};
webappMappings['1008']=webappMappings['1008-59028354']={
webappId:    '1008',
documentId:  '40693',
internalId:  '59028354',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41780',
internalId:  '',
customField: '20120203-114024'
};
webappMappings['1501']=webappMappings['1501-59064733']={
webappId:    '1501',
documentId:  '39994',
internalId:  '59064733',
customField: '1501'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR7QLC';
var companyName   = 'G%C3%A4steh%C3%A4user+Waldsieversdorf++';
var htmlTitle	  = 'G%C3%A4steh%C3%A4user+Waldsieversdorf+%2F+M%C3%A4rkische+Schweiz';
var metaKeywords  = 'G%C3%A4steh%C3%A4user+Waldsieversdorf%3B+Gruppenfahrten+%3B+Klassenfahrten%3B+Gruppenhaus%3B+Vereinsfahrten%3B+Naturpark+M%C3%A4rkische+Schweiz%3B+Gruppeng%C3%A4stehaus%3B+CVJM++Freizeit+-und+Bildungsst%C3%A4tte%3B+Erholungs-und+Bildungseinrichtung%3B+Unterkunft%3B+Erholung%3B+Freizeit%3B+Waldsieversdorf%3B+Urlaub%3B+Seminarh%C3%A4user%3B+Gruppenh%C3%A4user%3B+Familienfeier%3B+Familientreffen%3B+Klassentreffen%3B+G%C3%A4stehaus+Waldsieversdorf%3B+Unterkunft+Waldsieversdorf%3B+%C3%9Cbernachtung+Waldsieversdorf%3B+';
var metaContents  = 'Willkommen+in+den+G%C3%A4steh%C3%A4usern+Waldsieversdorf+%21+Preiswerte+Unterkunft+und+Seminarr%C3%A4ume+mitten+im+Naturpark+M%C3%A4rkische+Schweiz+%21+Erholen%2C+erleben%2C+begegnen%2C+erfahren....';
					                                                                    
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 */					                                                            

