/* [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','4579',jdecode('Vita+und+Bilder'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','253301',jdecode('Predigt+und+Andacht'),jdecode(''),'/253301/home.html','true',[ 
		['PAGE','278701',jdecode('Altjahrsabend'),jdecode(''),'/253301/278701.html','true',[],''],
		['PAGE','273801',jdecode('Heiligabend'),jdecode(''),'/253301/273801.html','true',[],''],
		['PAGE','252901',jdecode('Radioandacht'),jdecode(''),'/253301/252901.html','true',[],'']
	],''],
	['PAGE','267401',jdecode('Vortr%C3%A4ge+und+Thesen'),jdecode(''),'/267401/home.html','true',[ 
		['PAGE','287801',jdecode('Kirche%3A+Stadt+und+Land'),jdecode(''),'/267401/287801.html','true',[],''],
		['PAGE','272101',jdecode('Kirchentheorie'),jdecode(''),'/267401/272101.html','true',[],''],
		['PAGE','266901',jdecode('Dritter+Weg'),jdecode(''),'/267401/266901.html','true',[],''],
		['PAGE','255701',jdecode('Gemeinsam+leiten'),jdecode(''),'/267401/255701.html','true',[],''],
		['PAGE','223501',jdecode('Institution'),jdecode(''),'/267401/223501.html','true',[],''],
		['PAGE','264201',jdecode('Ethiktheorie'),jdecode(''),'/267401/264201.html','true',[],'']
	],''],
	['PAGE','233501',jdecode('Ver%C3%B6ffentlichungen'),jdecode(''),'/233501.html','true',[],''],
	['PAGE','253701',jdecode('Impressum'),jdecode(''),'/253701.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='914A94';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10514';
theSitetree.graphicsetId='11134';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8F3D88';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Surround',
				paletteFamily: 	'914A94',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10514',
				graphicsetId: 	'11134',
				contentColor: 	'FFFFFF',
				contentBGColor: '8F3D88',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'DD7CD6',
				e_color: 		'DD7CD6',
				f_color: 		'DD7CD6',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264201',
internalId:  '',
customField: '20111031-041136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20111027-171928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252901',
internalId:  '',
customField: '20111010-160139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '266901',
internalId:  '',
customField: '20111203-122143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233501',
internalId:  '',
customField: '20120110-173000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278701',
internalId:  '',
customField: '20120103-145026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253301',
internalId:  '',
customField: '20111027-171901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253701',
internalId:  '',
customField: '20111010-151153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255701',
internalId:  '',
customField: '20111031-041916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223501',
internalId:  '',
customField: '20110325-083312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273801',
internalId:  '',
customField: '20120103-145151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267401',
internalId:  '',
customField: '20111121-090713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272101',
internalId:  '',
customField: '20111128-081838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287801',
internalId:  '',
customField: '20120204-134645'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INV0BO';
var companyName   = 'Dieter+Beese';
var htmlTitle	  = 'Homepage+Dr.+Dieter+Beese';
var metaKeywords  = 'Vita%2C+B%C3%BCcher%2C+Lehrveranstaltungen%2C+Kontakt%2C+Ev.+Kirchenkreis+M%C3%BCnster%2C+Ruhruniversit%C3%A4t+Bochum%2C+Ev.+Theologie';
var metaContents  = 'Homepage+von+Superintendent+PD+Dr.+Dieter+Beese%2C+M%C3%BCnster';
					                                                                    
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 */					                                                            

