/* [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','104901',jdecode('Wer+ist+der+Kerl+%C3%BCberhaupt%3F'),jdecode(''),'/104901.html','true',[],''],
	['PAGE','41323',jdecode('Publikationen'),jdecode(''),'/41323.html','true',[],''],
	['PAGE','108301',jdecode('Leseproben'),jdecode(''),'/108301.html','true',[],''],
	['PAGE','41332',jdecode('Termine'),jdecode(''),'/41332.html','true',[],''],
	['PAGE','103501',jdecode('Wohnzimmer-Lesung'),jdecode(''),'/103501.html','true',[],''],
	['PAGE','100701',jdecode('Vortr%C3%A4ge'),jdecode(''),'/100701.html','true',[],''],
	['PAGE','41433',jdecode('Schreibstube'),jdecode(''),'/41433.html','true',[],''],
	['PAGE','41590',jdecode('Medien'),jdecode(''),'/41590.html','true',[],''],
	['PAGE','41803',jdecode('Links'),jdecode(''),'/41803.html','true',[],''],
	['PAGE','107901',jdecode('Verbrecheralbum'),jdecode(''),'/107901.html','true',[],''],
	['PAGE','41442',jdecode('Impressum'),jdecode(''),'/41442.html','true',[],''],
	['PAGE','59401',jdecode('Kontakt'),jdecode(''),'/59401.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='395987';
theSitetree.keyvisualId='7526';
theSitetree.keyvisualName='kv_7526.jpg';
theSitetree.fontsetId='16583';
theSitetree.graphicsetId='12202';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C0B89D';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bombay',
				paletteFamily: 	'395987',
				keyvisualId: 	'7526',
				keyvisualName: 	'kv_7526.jpg',
				fontsetId: 		'16583',
				graphicsetId: 	'12202',
				contentColor: 	'000000',
				contentBGColor: 'C0B89D',
				a_color: 		'395987',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'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: '20100516-124628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59401',
internalId:  '',
customField: '20100207-204256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20100501-172725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41332',
internalId:  '',
customField: '20100501-150953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107901',
internalId:  '',
customField: '20100306-172406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41590',
internalId:  '',
customField: '20100207-204857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103501',
internalId:  '',
customField: '20100320-142424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41442',
internalId:  '',
customField: '20100207-204338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41433',
internalId:  '',
customField: '20100501-173321'
};
webappMappings['1501']=webappMappings['1501-37907964']={
webappId:    '1501',
documentId:  '39994',
internalId:  '37907964',
customField: '1501'
};
webappMappings['1007']=webappMappings['1007-12734418189']={
webappId:    '1007',
documentId:  '107901',
internalId:  '12734418189',
customField: 'g.14sq3del0.d6q2q3c5cu.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41803',
internalId:  '',
customField: '20100516-124721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100701',
internalId:  '',
customField: '20100501-151431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104901',
internalId:  '',
customField: '20100306-162300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108301',
internalId:  '',
customField: '20100516-121558'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7ZRM9';
var companyName   = 'Manfred+H.+Kr%C3%A4mer+-+freier+Autor+A.I.E.P.';
var htmlTitle	  = 'Manfred+H.+Kr%C3%A4mer%2C+Schriftsteller';
var metaKeywords  = 'Bergstrassen-Krimi+Kehl-Verlag+Lampertheim+Mord+Jaguar+Onca+H%C3%B6rbuch+Mordfred';
var metaContents  = 'Pers%C3%B6nliche+Website+des+Autors+Manfred+H.+Kr%C3%A4merKrimis%2C+Romane%2C+Kurzgeschichten%2C+';
					                                                                    
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 */					                                                            
