/* [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('Wer+bin+ich'),jdecode(''),'/41010.html','true',[],''],
	['PAGE','41021',jdecode('Erz%C3%A4hlerin+f%C3%BCr++Kinder'),jdecode(''),'/41021.html','true',[],''],
	['PAGE','41130',jdecode('Geschichtenerfinderwerkstatt'),jdecode(''),'/41130.html','true',[],''],
	['PAGE','41039',jdecode('Downloads%2CH%C3%B6rproben+'),jdecode(''),'/41039.html','true',[],''],
	['PAGE','41030',jdecode('+Community+Storyteller'),jdecode(''),'/41030.html','true',[],''],
	['PAGE','41048',jdecode('+Erz%C3%A4hlforum%2C+wann%2C+was'),jdecode(''),'/41048.html','true',[],''],
	['PAGE','41090',jdecode('Veranstaltungskalender'),jdecode(''),'/41090.html','true',[],''],
	['PAGE','41075',jdecode('Kontakt%2C+Links+und+Tipps'),jdecode(''),'/41075.html','true',[],''],
	['PAGE','41358',jdecode('B%C3%BCcher+und+Presse'),jdecode(''),'/41358.html','true',[],''],
	['PAGE','41489',jdecode('News+-+Blog'),jdecode(''),'/41489.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Pencil';
theSitetree.paletteFamily='007D48';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10725';
theSitetree.graphicsetId='10516';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Pencil',
				paletteFamily: 	'007D48',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10725',
				graphicsetId: 	'10516',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:  '41010',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41010',
internalId:  '',
customField: '20111204-094514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41021',
internalId:  '',
customField: '20120114-082641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41130',
internalId:  '',
customField: '20120102-053903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41039',
internalId:  '',
customField: '20120219-182859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41030',
internalId:  '',
customField: '20110506-075628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41048',
internalId:  '',
customField: '20111016-155035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41090',
internalId:  '',
customField: '20120218-174252'
};
webappMappings['7050']=webappMappings['7050-1']={
webappId:    '7050',
documentId:  '41489',
internalId:  '1',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41075',
internalId:  '',
customField: '20120206-081853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41358',
internalId:  '',
customField: '20120211-083425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41489',
internalId:  '',
customField: '20120218-173543'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7U6S9';
var companyName   = 'Sie+suchen+eine+Erz%C3%A4hlerin+%3F';
var htmlTitle	  = 'Erz%C3%A4hlerin';
var metaKeywords  = 'Helga+Gruschka%2C+Erz%C3%A4hlen%2C+privat%2C+in+Krankenh%C3%A4usern%2C+in+Kinderg%C3%A4rten%2C+Schulen%2C+Horts%2C+Altenheimen%2C+Seniorenresidenzen++';
var metaContents  = 'Willkommen+bei+Helga+Gruschka%2C+Erz%C3%A4hlerin+und+geschichtenbaumeisterin+f%C3%BCr+Kinder+und+Erwachsene+';
					                                                                    
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 */					                                                            

