/* [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','41519',jdecode('F%C3%B6rderma%C3%9Fnahmen'),jdecode(''),'/41519/home.html','true',[ 
		['PAGE','42834',jdecode('F%C3%B6rderantrag'),jdecode(''),'/41519/42834.html','true',[],'']
	],''],
	['PAGE','42871',jdecode('F%C3%B6rdermitglieder'),jdecode(''),'/42871.html','true',[],''],
	['PAGE','42766',jdecode('News'),jdecode(''),'/42766.html','true',[],''],
	['PAGE','41528',jdecode('Kontakt'),jdecode(''),'/41528.html','true',[],''],
	['PAGE','43344',jdecode('B%C3%BCcher+im+Dienst+d.+Stiftung'),jdecode(''),'/43344/home.html','true',[ 
		['PAGE','42793',jdecode('Wendezeit'),jdecode(''),'/43344/42793.html','true',[],''],
		['PAGE','43353',jdecode('Golfmord'),jdecode(''),'/43344/43353.html','true',[],''],
		['PAGE','43637',jdecode('In+Vorber.%3A+Elefantenblut'),jdecode(''),'/43344/43637.html','true',[],'']
	],''],
	['PAGE','42820',jdecode('Satzung'),jdecode(''),'/42820.html','true',[],''],
	['PAGE','42862',jdecode('Der+Stifter'),jdecode(''),'/42862.html','true',[],''],
	['PAGE','42775',jdecode('Links'),jdecode(''),'/42775.html','true',[],''],
	['PAGE','43362',jdecode('Impressum'),jdecode(''),'/43362.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='315881';
theSitetree.keyvisualId='2281';
theSitetree.keyvisualName='studenten.jpg';
theSitetree.fontsetId='369';
theSitetree.graphicsetId='419';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='315881';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Steps',
				paletteFamily: 	'315881',
				keyvisualId: 	'2281',
				keyvisualName: 	'studenten.jpg',
				fontsetId: 		'369',
				graphicsetId: 	'419',
				contentColor: 	'DDDDDD',
				contentBGColor: '315881',
				a_color: 		'315881',
				b_color: 		'2985B5',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120212-125243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41519',
internalId:  '',
customField: '20110203-141131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41528',
internalId:  '',
customField: '20100214-153846'
};
webappMappings['1501']=webappMappings['1501-47052200']={
webappId:    '1501',
documentId:  '39994',
internalId:  '47052200',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42775',
internalId:  '',
customField: '20100214-154451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42793',
internalId:  '',
customField: '20110106-161221'
};
webappMappings['1008']=webappMappings['1008-51442015']={
webappId:    '1008',
documentId:  '41528',
internalId:  '51442015',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42862',
internalId:  '',
customField: '20110227-160742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42820',
internalId:  '',
customField: '20101123-150933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42834',
internalId:  '',
customField: '20080820-095336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42766',
internalId:  '',
customField: '20110706-085440'
};
webappMappings['1008']=webappMappings['1008-51441812']={
webappId:    '1008',
documentId:  '42834',
internalId:  '51441812',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42871',
internalId:  '',
customField: '20100214-153708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43344',
internalId:  '',
customField: '20110227-160939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43353',
internalId:  '',
customField: '20111219-181155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43362',
internalId:  '',
customField: '20100210-185803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43637',
internalId:  '',
customField: '20110227-165317'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IRK5VQ';
var companyName   = 'heinz-harling-stiftung';
var htmlTitle	  = 'Heinz-Harling-Stiftung';
var metaKeywords  = 'Impressum%2C+Heinz-Harling-Stiftung';
var metaContents  = 'Das+Impressum';
					                                                                    
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 */					                                                            

