/* [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','41373',jdecode('Jugendg%C3%A4stehaus'),jdecode(''),'/41373/home.html','true',[ 
		['PAGE','41470',jdecode('Ausflugsziele'),jdecode(''),'/41373/41470.html','true',[],''],
		['PAGE','42018',jdecode('Preise%2C+Buchung+und+Kontakt'),jdecode(''),'/41373/42018.html','true',[],''],
		['PAGE','42563',jdecode('Belegungsplan'),jdecode(''),'/41373/42563.html','false',[],'']
	],''],
	['PAGE','41479',jdecode('Jugendwohnheim'),jdecode(''),'/41479/home.html','true',[ 
		['PAGE','41488',jdecode('Angebot%2FPreise'),jdecode(''),'/41479/41488.html','true',[],''],
		['PAGE','41497',jdecode('Die+Schulen'),jdecode(''),'/41479/41497.html','true',[],'']
	],''],
	['PAGE','41628',jdecode('Raumangebot'),jdecode(''),'/41628.html','true',[],''],
	['PAGE','42275',jdecode('Bildergalerie'),jdecode(''),'/42275.html','true',[],''],
	['PAGE','41637',jdecode('Sportst%C3%A4tten'),jdecode(''),'/41637.html','true',[],''],
	['PAGE','41337',jdecode('Partner+und+Links'),jdecode(''),'/41337.html','true',[],''],
	['PAGE','41328',jdecode('Kontakt'),jdecode(''),'/41328/home.html','true',[ 
		['PAGE','41874',jdecode('Kontakt+Formular+%28Folgeseite%29'),jdecode(''),'/41328/41874.html','false',[],'']
	],''],
	['PAGE','42066',jdecode('Anreise'),jdecode(''),'/42066.html','true',[],''],
	['PAGE','41601',jdecode('G%C3%A4stebuch'),jdecode(''),'/41601/home.html','true',[ 
		['PAGE','41600',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41601/41600.html','true',[],'']
	],''],
	['PAGE','41391',jdecode('Impressum'),jdecode(''),'/41391.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2236';
theSitetree.keyvisualName='jugendherbergen2.jpg';
theSitetree.fontsetId='365';
theSitetree.graphicsetId='415';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2236',
				keyvisualName: 	'jugendherbergen2.jpg',
				fontsetId: 		'365',
				graphicsetId: 	'415',
				contentColor: 	'FFFFFF',
				contentBGColor: '93A6CC',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, 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:  '42066',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-10331556']={
webappId:    '1501',
documentId:  '44',
internalId:  '10331556',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-41601atoix0i7w4o1']={
webappId:    '1002',
documentId:  '41601',
internalId:  '41601atoix0i7w4o1',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41601atoix0i7w4o1']={
webappId:    '1002',
documentId:  '41600',
internalId:  '41601atoix0i7w4o1',
customField: 'action=list'
};
webappMappings['1007']=webappMappings['1007-10b3d49e855']={
webappId:    '1007',
documentId:  '42275',
internalId:  '10b3d49e855',
customField: 'g.11cukidiq.84of981dfl8.3o'
};
webappMappings['1001']=webappMappings['1001-atoix0i7w4o110a22a121d5']={
webappId:    '1001',
documentId:  '41874',
internalId:  'atoix0i7w4o110a22a121d5',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-atoix0i7w4o110a422f78eb']={
webappId:    '1001',
documentId:  '42018',
internalId:  'atoix0i7w4o110a422f78eb',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20110104-173747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42275',
internalId:  '',
customField: '20111205-095148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41337',
internalId:  '',
customField: '20120120-102649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41373',
internalId:  '',
customField: '20110102-162041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41470',
internalId:  '',
customField: '20110102-162730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42018',
internalId:  '',
customField: '20110102-150506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41479',
internalId:  '',
customField: '20111205-101343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41488',
internalId:  '',
customField: '20110102-142545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41497',
internalId:  '',
customField: '20110104-170408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41628',
internalId:  '',
customField: '20110102-140502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41637',
internalId:  '',
customField: '20060628-165410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41328',
internalId:  '',
customField: '20110313-171733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41874',
internalId:  '',
customField: '20060322-164447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42066',
internalId:  '',
customField: '20111205-093335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20060314-195642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41600',
internalId:  '',
customField: '20060314-195642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41391',
internalId:  '',
customField: '20110102-141419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42563',
internalId:  '',
customField: '20100716-170404'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7W4O1';
var companyName   = 'Jugendg%C3%A4stehaus+Furtwangen';
var htmlTitle	  = 'Don+Bosco+Heim+Furtwangen+-+Jugendg%C3%A4stehaus';
var metaKeywords  = 'Jugendwohnheim+Jugendg%C3%A4stehaus+G%C3%A4stehaus+Jugendherberge+Urlaub+Schulklasse+Ferien+Ferienheim+Ausflug+Ferienfreizeit+Gruppen+Gruppenreisen+Sportgruppen+Sportlehrg%C3%A4nge+Sportvereinsausflug+Sportst%C3%A4tten+Berufsausbildung+SKIF+Skiinternat+Furtwangen+Schwarzwald+Sportvereine+Internat';
var metaContents  = 'Willkommen+bei+Don+Bosco+Furtwangen.+Jugendg%C3%A4stehaus%2C+Jugendwohnheim%2C+Skiinternat.';
					                                                                    
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 */					                                                            

