/* [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','13768',jdecode('Home'),jdecode(''),'/13768.html','true',[],''],
	['PAGE','340941',jdecode('Kirche+f%C3%BCr+den+Stadtteil'),jdecode(''),'/340941.html','true',[],''],
	['PAGE','340541',jdecode('Politisches+Nachtgebet'),jdecode(''),'/340541/home.html','true',[ 
		['PAGE','363941',jdecode('Texte+von+J%C3%BCrgen+K%C3%B6hnen'),jdecode(''),'/340541/363941.html','true',[],'']
	],''],
	['PAGE','347341',jdecode('Terminkalender'),jdecode(''),'/347341.html','false',[],''],
	['PAGE','346641',jdecode('Gemeinde'),jdecode(''),'/346641.html','false',[],''],
	['PAGE','344041',jdecode('Geschichtswerkstatt'),jdecode(''),'/344041.html','true',[],''],
	['PAGE','362541',jdecode('Archiv'),jdecode(''),'/362541/home.html','true',[ 
		['PAGE','363962',jdecode('Predigten'),jdecode(''),'/362541/363962.html','false',[],'']
	],''],
	['PAGE','361441',jdecode('Bilder'),jdecode(''),'/361441.html','true',[],''],
	['PAGE','383641',jdecode('Marxloh'),jdecode(''),'/383641.html','true',[],''],
	['PAGE','20502',jdecode('Anfahrt+%2F+Lageplan'),jdecode(''),'/20502.html','true',[],''],
	['PAGE','346341',jdecode('Kontakt'),jdecode(''),'/346341.html','true',[],''],
	['PAGE','20701',jdecode('Impressum'),jdecode(''),'/20701.html','true',[],''],
	['PAGE','372641',jdecode('Tagebuch+einer+Kirche'),jdecode(''),'/372641.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='TOI_Lines_1';
theSitetree.paletteFamily='8EA539';
theSitetree.keyvisualId='10734';
theSitetree.keyvisualName='kv_10734.jpg';
theSitetree.fontsetId='31814';
theSitetree.graphicsetId='13598';
theSitetree.contentColor='434A26';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Lines_1',
				paletteFamily: 	'8EA539',
				keyvisualId: 	'10734',
				keyvisualName: 	'kv_10734.jpg',
				fontsetId: 		'31814',
				graphicsetId: 	'13598',
				contentColor: 	'434A26',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '20502',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-41241451']={
webappId:    '1008',
documentId:  '346341',
internalId:  '41241451',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1007']=webappMappings['1007-125cc59e94e']={
webappId:    '1007',
documentId:  '361441',
internalId:  '125cc59e94e',
customField: 'g.14n64ofjj.3u69okb80vs.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13768',
internalId:  '',
customField: '20100928-120151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344041',
internalId:  '',
customField: '20100916-233543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346341',
internalId:  '',
customField: '20090621-171850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '347341',
internalId:  '',
customField: '20100604-002155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '340941',
internalId:  '',
customField: '20100321-235930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346641',
internalId:  '',
customField: '20090908-134048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20502',
internalId:  '',
customField: '20100420-003719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20090615-195826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '340541',
internalId:  '',
customField: '20100916-234209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '361441',
internalId:  '',
customField: '20091226-200227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '363962',
internalId:  '',
customField: '20100309-021918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '362541',
internalId:  '',
customField: '20100125-183508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '363941',
internalId:  '',
customField: '20100513-172229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '383641',
internalId:  '',
customField: '20100718-235802'
};
webappMappings['7050']=webappMappings['7050-49485']={
webappId:    '7050',
documentId:  '372641',
internalId:  '49485',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '372641',
internalId:  '',
customField: '20100203-143614'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INEZV8';
var companyName   = 'Kreuzeskirche+Marxloh';
var htmlTitle	  = 'Kreuzeskirche+Marxloh';
var metaKeywords  = 'Bonhoeffer+Gemeinde+Marxloh+Obermarxloh+Politisches+Nachtgebet+Kirchlicher+Dienst+Arbeitswelt+KDA+Stadtteilkirche+Abendgebet+Arbeitslosentreff+Kirchencafe+Dialog+Familienbildungswerk+KDA+Gottesdienst+Kirche+Marxloh';
var metaContents  = 'Kirche+f%C3%BCr+Stadtteil+und+Arbeitswelt';
					                                                                    
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 */					                                                            

