/* [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','41081',jdecode('DER+INHALT'),jdecode(''),'/41081/home.html','true',[ 
		['PAGE','40414',jdecode('%C3%9Cbersicht'),jdecode(''),'/41081/40414.html','true',[],''],
		['PAGE','40450',jdecode('Allgemeines+%2F+Widmung'),jdecode(''),'/41081/40450.html','true',[],''],
		['PAGE','42113',jdecode('Teil+I%3A+Die+Struktur+%28Ordnungspolitik%29'),jdecode(''),'/41081/42113.html','true',[],''],
		['PAGE','42158',jdecode('Teil+II.+Der+Prozess+%28Wiege+-+Bahre%29'),jdecode(''),'/41081/42158.html','true',[],''],
		['PAGE','42203',jdecode('Teil+III.+Realpolitik'),jdecode(''),'/41081/42203.html','true',[],''],
		['PAGE','42257',jdecode('Teil+IV%3A+Zum+Schluss'),jdecode(''),'/41081/42257.html','true',[],'']
	],''],
	['PAGE','40690',jdecode('Weiteres'),jdecode(''),'/40690/home.html','true',[ 
		['PAGE','40423',jdecode('Zum+Autor'),jdecode(''),'/40690/40423.html','true',[],''],
		['PAGE','40432',jdecode('Organisationen'),jdecode(''),'/40690/40432.html','true',[],''],
		['PAGE','40681',jdecode('Aktuelles+%2F+Veranstaltungen'),jdecode(''),'/40690/40681.html','true',[],''],
		['PAGE','43189',jdecode('Letzte+Aktualisierungen'),jdecode(''),'/40690/43189.html','true',[],''],
		['PAGE','41740',jdecode('Nicht+ganz+ernst+gemeint+...'),jdecode(''),'/40690/41740.html','true',[],''],
		['PAGE','43549',jdecode('Daten+und+Fakten'),jdecode(''),'/40690/43549.html','true',[],'']
	],''],
	['PAGE','42044',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/42044.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='TOI_World_1';
theSitetree.paletteFamily='DCE5EC';
theSitetree.keyvisualId='10755';
theSitetree.keyvisualName='kv_10755.jpg';
theSitetree.fontsetId='31821';
theSitetree.graphicsetId='13607';
theSitetree.contentColor='191919';
theSitetree.contentBGColor='FBFBF6';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_World_1',
				paletteFamily: 	'DCE5EC',
				keyvisualId: 	'10755',
				keyvisualName: 	'kv_10755.jpg',
				fontsetId: 		'31821',
				graphicsetId: 	'13607',
				contentColor: 	'191919',
				contentBGColor: 'FBFBF6',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20090124-173408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40414',
internalId:  '',
customField: '20081211-154311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40690',
internalId:  '',
customField: '20090118-153633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41081',
internalId:  '',
customField: '20090526-064900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40450',
internalId:  '',
customField: '20081110-090646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40423',
internalId:  '',
customField: '20100126-200839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40432',
internalId:  '',
customField: '20081209-143141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40681',
internalId:  '',
customField: '20100208-193805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41740',
internalId:  '',
customField: '20090217-202920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42044',
internalId:  '',
customField: '20100126-200522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42113',
internalId:  '',
customField: '20100126-195615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42158',
internalId:  '',
customField: '20090526-115743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42203',
internalId:  '',
customField: '20081211-153823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42257',
internalId:  '',
customField: '20090117-181003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43189',
internalId:  '',
customField: '20100126-195730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43549',
internalId:  '',
customField: '20100507-134100'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRWC3L';
var companyName   = 'Die+Pl%C3%BCnderung+der+Erde';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
