/* [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','9701',jdecode('Startseite'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','38222',jdecode('H%C3%B6rbuch-CD+%2B+Textheft%3A+Allens+totaal+normaal'),jdecode(''),'/38222.html','true',[],''],
	['PAGE','38243',jdecode('H%C3%B6rbuch-CD+%2B++Textheft%3A+Schikaanschen+Kraam'),jdecode(''),'/38243.html','true',[],''],
	['PAGE','38264',jdecode('H%C3%B6rbuch-CD+%2B+Textheft%3A+L%C3%BCtt+beten+mall+...'),jdecode(''),'/38264.html','true',[],''],
	['PAGE','53001',jdecode('H%C3%B6rbuch-CD%3A+Op%26%23x27%3Bn+D%C3%B6rpen+is+nich+achtern+Maand'),jdecode(''),'/53001.html','true',[],''],
	['PAGE','46801',jdecode('B%C3%BCcher'),jdecode(''),'/46801.html','true',[],''],
	['PAGE','47301',jdecode('Kaufen%3F+Bestellen%3F++%3Ehier'),jdecode(''),'/47301.html','true',[],''],
	['PAGE','9706',jdecode('Termine+und+Links'),jdecode(''),'/9706.html','true',[],''],
	['PAGE','38306',jdecode('Impressum+'),jdecode(''),'/38306.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='463';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Business',
				paletteFamily: 	'003366',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'463',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53001',
internalId:  '',
customField: '20090222-164425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9706',
internalId:  '',
customField: '20100607-175606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38306',
internalId:  '',
customField: '20080213-140612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20100607-173222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38222',
internalId:  '',
customField: '20070214-012341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38243',
internalId:  '',
customField: '20090222-105820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38264',
internalId:  '',
customField: '20090222-164225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46801',
internalId:  '',
customField: '20091109-021548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47301',
internalId:  '',
customField: '20090222-024408'
};
webappMappings['1008']=webappMappings['1008-32809735']={
webappId:    '1008',
documentId:  '47301',
internalId:  '32809735',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0INEIR5';
var companyName   = 'Peter+Maurer';
var htmlTitle	  = 'Peter+Maurer+schreibt++plattdeutsche+Geschichten+und+Gedichte%2C+tr%C3%A4gt+sie+auch+vor';
var metaKeywords  = 'Peter%2C+Maurer%2Cplattdeutsch%2C+Autor%2C+plattd%C3%BC%C3%BCtsch%2C+eigene%2C+selbst%2C+Geschichten%2C+Texte%2C+Gedichte%2C+B%C3%BCcher%2C+Texthefte%2C+CDs%2C+H%C3%B6rbuch%2C+H%C3%B6rbook%2C+vortragen%2C+schreiben%2C+lesen%2C+Sch%C3%B6nberg%2C+Hzgt.+Lauenburg%2C+Schleswig-Holstein%2C+Veranstaltungen%2C+Lesung%2C+live%2C+H%C3%B6rbuch-CD';
var metaContents  = 'Peter+Maurer+schreibt+unterhaltsame+plattdeutsche+Texte%2C+tr%C3%A4gt+sie+auf+Wunsch+live+vor.+Es+gibt+B%C3%BCcher%2C+H%C3%B6rb%C3%BCcher+und+CDs+mit+den+entsprechenden+Textheften.';
					                                                                    
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 */					                                                            
