/* [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','4579',jdecode('Textrapunkt'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','24201',jdecode('Text'),jdecode(''),'/24201.html','true',[],''],
	['PAGE','53165',jdecode('Gestaltung'),jdecode(''),'/53165.html','true',[],''],
	['PAGE','53186',jdecode('Seminare+'),jdecode(''),'/53186.html','true',[],''],
	['PAGE','53249',jdecode('Wir'),jdecode(''),'/53249/home.html','true',[ 
		['PAGE','53207',jdecode('Ver%C3%B6ffentlichungen'),jdecode(''),'/53249/53207.html','true',[],''],
		['PAGE','53228',jdecode('Kindertexte'),jdecode(''),'/53249/53228.html','true',[],''],
		['PAGE','76744',jdecode('Leseproben'),jdecode(''),'/53249/76744.html','true',[],'']
	],''],
	['PAGE','54944',jdecode('Impressum'),jdecode(''),'/54944.html','true',[],''],
	['PAGE','91944',jdecode('Kontakt'),jdecode(''),'/91944.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='978';
theSitetree.keyvisualName='adresskartei.jpg';
theSitetree.fontsetId='169';
theSitetree.graphicsetId='197';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'NewYork',
				paletteFamily: 	'660000',
				keyvisualId: 	'978',
				keyvisualName: 	'adresskartei.jpg',
				fontsetId: 		'169',
				graphicsetId: 	'197',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'660000',
				c_color: 		'000000',
				d_color: 		'990000',
				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:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53249',
internalId:  '',
customField: '20110311-163019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53228',
internalId:  '',
customField: '20100321-171156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20111130-232528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20080229-120959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53165',
internalId:  '',
customField: '20110311-164432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53186',
internalId:  '',
customField: '20110311-164229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53207',
internalId:  '',
customField: '20110311-164020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54944',
internalId:  '',
customField: '20111130-232710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76744',
internalId:  '',
customField: '20110328-120747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91944',
internalId:  '',
customField: '20080301-101901'
};
webappMappings['1008']=webappMappings['1008-29553080']={
webappId:    '1008',
documentId:  '91944',
internalId:  '29553080',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IN30LJ';
var companyName   = 'B%C3%BCro+f%C3%BCr+Text+und+Gestaltung';
var htmlTitle	  = 'textrapunkt+-+B%C3%BCro+f%C3%BCr+Text+und+Gestaltung%2C+Dietlind+Steinh%C3%B6fel';
var metaKeywords  = 'Texte+-+Redaktion+-+Layout+-+Recherche+-+Illustration+-+Burkhard+Dube+-+Weimar+-+Dietlind+Steinhoefel+-+Steinhoefel+-+Grafik+-+Kindergeschichten+-+Kinderliteratur+-+Annika+Dube-Wnek+-+druckfertige+Daten+-+Buch+-+Flyer+-+Faltblaetter+-+Kinderbuch+-+Grafikbuero+Weimar+-+Redaktionsbuero+Weimar';
var metaContents  = 'Texte+-+Redaktion+-+Layout+-+Recherche+-+Illustration+-+DesignTexte+erstellen%2C+korrigieren%2C+Textarchiv+%28Erzaehlungen+fuer+Kinder+und+Erwachsene%29Wir+liefern+auf+Wunsch+druckfertige+Daten.';
					                                                                    
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 */					                                                            

