/* [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','41010',jdecode('Startseite'),jdecode(''),'/41010.html','true',[],''],
	['PAGE','41028',jdecode('Publikationen'),jdecode(''),'/41028.html','true',[],''],
	['PAGE','41019',jdecode('Verweise'),jdecode(''),'/41019.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='333333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='74';
theSitetree.graphicsetId='82';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D6D6D6';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'333333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'74',
				graphicsetId: 	'82',
				contentColor: 	'000000',
				contentBGColor: 'D6D6D6',
				a_color: 		'333333',
				b_color: 		'DBD9D9',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41010',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41010',
internalId:  '',
customField: '20120208-164020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41019',
internalId:  '',
customField: '20120208-163738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41028',
internalId:  '',
customField: '20120208-163419'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7II56';
var companyName   = 'Thomas+Diecks+-+Literaturkritiker%2C+Rundfunkautor%2C+Publizist';
var htmlTitle	  = 'Thomas+Diecks+-+Literaturkritiker%2C+Rundfunkautor%2C+Publizist';
var metaKeywords  = 'Thomas+Diecks%2C+Diecks%2C+Dieks%2C+Thomas+Diecks%2C+Literaturkritiker%2C+Publizist%2C+Autor%2C+Radio-Feature%2C+Rundfunk%2C+NDR%2C+RBB%2C+Berlin%2C+NDB%2C+Rundfunk-Feature%2C+H%C3%B6rspiel%2C+radio+play%2C+features%2C+Feature%2C+radio%2C+Greene%2C+Beckett%2C+Marbach%2C+Literaturarchiv%2C+Charms%2C+FAZ%2C+NZZ%2C+SFB%2C++Heidelberg%2C+Thomas+Diecks%2C+Diecks%2C+Thomas%2C+Diecks%2C+Norddeutscher+Rundfunk%2C+Rundfunk+Berlin-Brandenburg%2C+Frankfurter+Allgemeine+Zeitung%2C+Neue+Z%C3%BCrcher+Zeitung%2C+Berlin%2C+Diecks%2C+Thomas+Diecks%2C+Oldenburg%2C+Dalhousie%2C+Halifax%2C+Literarische+Spazierg%C3%A4nge+Berlin%2C+Samuel+Beckett%2C+Graham+Greene%2C+Daniil+Charms%2C+Marbach%2C+Literaturarchiv%2C+Rundfunk%2C+Berlin%2C+Dieks%2C+Berlin%2C+Diecks%2C+Diecks%2C+Dieks%2C+Thomas+Diecks%2C+Berlin%2C+Diecks%2C+Gy%C3%B6rgy+Konr%C3%A1d%2C+Johann+Peter+Hebel%2C+Kalendergeschichten%2C+Alchimie+des+Geldes%2C+Alchemie+des+Geldes%2C+Goethe%2C+Faust%2C+Paul+Fleming%2C+Kurt+Tucholsky%2C+Jan+Graf+Potocki%2C+Handschrift+von+Saragossa%2C+Czeslaw+Milosz%2C+Reuchlin%2C+Augenspiegel';
var metaContents  = 'Thomas+Diecks';
					                                                                    
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 */					                                                            

