/* [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('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','13661',jdecode('Werkstatt+'),jdecode(''),'/13661.html','true',[],''],
	['PAGE','14808',jdecode('H%C3%B6lzernes'),jdecode(''),'/14808.html','true',[],''],
	['PAGE','35368',jdecode('Einzelst%C3%BCcke'),jdecode(''),'/35368.html','true',[],''],
	['PAGE','49720',jdecode('Bilder'),jdecode(''),'/49720.html','true',[],''],
	['PAGE','14902',jdecode('Bildergalerie'),jdecode(''),'/14902.html','false',[],''],
	['PAGE','13736',jdecode('G%C3%A4stebuch'),jdecode(''),'/13736/home.html','true',[ 
		['PAGE','13737',jdecode('Eintr%C3%A4ge'),jdecode(''),'/13736/13737.html','true',[],'']
	],''],
	['PAGE','40094',jdecode('Bohlenweg+im+Wittemoor'),jdecode(''),'/40094.html','true',[],''],
	['PAGE','14101',jdecode('+Interessante+Links'),jdecode(''),'/14101.html','true',[],''],
	['PAGE','38168',jdecode('Impressum'),jdecode(''),'/38168.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='1351';
theSitetree.keyvisualName='gartenbau.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='294';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'000000',
				keyvisualId: 	'1351',
				keyvisualName: 	'gartenbau.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'294',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-853298']={
webappId:    '1501',
documentId:  '4579',
internalId:  '853298',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-13736ATOIX0INVJX7']={
webappId:    '1002',
documentId:  '13736',
internalId:  '13736ATOIX0INVJX7',
customField: 'action=form&icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-1059eeedb43']={
webappId:    '1007',
documentId:  '14902',
internalId:  '1059eeedb43',
customField: 'g.10mfetmq3.2ja1ddsntimuh.6rn80'
};
webappMappings['1002']=webappMappings['1002-13736ATOIX0INVJX7']={
webappId:    '1002',
documentId:  '13737',
internalId:  '13736ATOIX0INVJX7',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49720',
internalId:  '',
customField: '20120114-105327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20120113-232851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13661',
internalId:  '',
customField: '20120120-200711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14808',
internalId:  '',
customField: '20090909-231317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35368',
internalId:  '',
customField: '20120114-102249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14902',
internalId:  '',
customField: '20040129-094338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13736',
internalId:  '',
customField: '20080701-150214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13737',
internalId:  '',
customField: '20040124-103147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40094',
internalId:  '',
customField: '20080406-233307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20110901-234148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38168',
internalId:  '',
customField: '20091202-113235'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INVJX7';
var companyName   = 'Willkommen+auf+meiner++Hompage+';
var htmlTitle	  = 'Wachtendorf12+der+etwas+andere+Tischler';
var metaKeywords  = 'Ewald+Wachtendorf%2CTischlerei%2CDrechselarbeiten%2CDraisine%2CUhrenbau%2CKarl+Friedrich+Freiherr+Drais+v.Sauerbronn%2CLaufrad%2CBohlenweg%2CHude%2CHolzschwerter';
var metaContents  = 'Wachtendorf12+der+etwas+andere+Tischler';
					                                                                    
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 */					                                                            

