/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41861',jdecode('Sylt-B%C3%BCcher'),jdecode(''),'/41861.html','true',[],''],
	['PAGE','41294',jdecode('Kinder-B%C3%BCcher'),jdecode(''),'/41294.html','true',[],''],
	['PAGE','41303',jdecode('H%C3%B6r-B%C3%BCcher'),jdecode(''),'/41303.html','true',[],''],
	['PAGE','41469',jdecode('Krimis'),jdecode(''),'/41469.html','true',[],''],
	['PAGE','41312',jdecode('Autoren'),jdecode(''),'/41312/home.html','true',[ 
		['PAGE','42129',jdecode('Ernst+W.+Kr%C3%BCger'),jdecode(''),'/41312/42129.html','true',[],''],
		['PAGE','41339',jdecode('Hinrich+Matthiesen'),jdecode(''),'/41312/41339.html','true',[],''],
		['PAGE','41348',jdecode('Benigna+Werthen'),jdecode(''),'/41312/41348.html','true',[],'']
	],''],
	['PAGE','41321',jdecode('Sprecher'),jdecode(''),'/41321.html','true',[],''],
	['PAGE','41330',jdecode('Termine'),jdecode(''),'/41330.html','true',[],''],
	['PAGE','41276',jdecode('Interessante+Links'),jdecode(''),'/41276.html','true',[],''],
	['PAGE','41267',jdecode('Kontakt'),jdecode(''),'/41267.html','true',[],''],
	['PAGE','41285',jdecode('Impressum'),jdecode(''),'/41285.html','true',[],''],
	['PAGE','41764',jdecode('Quermarken+Shop'),jdecode(''),'/41764.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Modul';
theSitetree.paletteFamily='151B65';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10709';
theSitetree.graphicsetId='10557';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F1F1F1';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Modul',
				paletteFamily: 	'151B65',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10709',
				graphicsetId: 	'10557',
				contentColor: 	'000000',
				contentBGColor: 'F1F1F1',
				a_color: 		'1643AA',
				b_color: 		'3B84E0',
				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:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20111013-211728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41294',
internalId:  '',
customField: '20111013-214955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41469',
internalId:  '',
customField: '20090305-214257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42129',
internalId:  '',
customField: '20111013-214453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41303',
internalId:  '',
customField: '20080225-202022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41312',
internalId:  '',
customField: '20111013-212247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41330',
internalId:  '',
customField: '20111016-180201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41285',
internalId:  '',
customField: '20080302-162913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41267',
internalId:  '',
customField: '20071021-190748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41276',
internalId:  '',
customField: '20071021-175812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41339',
internalId:  '',
customField: '20090921-211652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41348',
internalId:  '',
customField: '20071023-195338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41321',
internalId:  '',
customField: '20071111-203715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41764',
internalId:  '',
customField: '20071030-230439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41861',
internalId:  '',
customField: '20090305-210747'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7WOHE';
var companyName   = 'Quermarken+Verlag';
var htmlTitle	  = 'Quermarken+Verlag';
var metaKeywords  = 'Quermarken+Verlag%2C+Buch%2C+B%C3%BCcher%2C+H%C3%B6rbuch%2C+H%C3%B6rb%C3%BCcher%2C+Thriller%2C+Roman%2C+Abenteuer%2C+Geschichte%2C+Matthiesen%2C+Werthen%2C+Loessl%2C+Svendine%2C+Benigna%2C+Hinrich%2C+Kinderbuch%2C+Erstleser%2C+Vorlesebuch%2C+vorlesen%2C+erstes+Lesen';
var metaContents  = 'Quermarken+Verlag%2C+spannende+Unterhaltung+';
					                                                                    
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 */					                                                            

