/* [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','9401',jdecode('Home'),jdecode(''),'/9401.html','true',[],''],
	['PAGE','9485',jdecode('Leistungen'),jdecode(''),'/9485/home.html','true',[ 
		['PAGE','9512',jdecode('Malerarbeiten'),jdecode(''),'/9485/9512.html','true',[],''],
		['PAGE','9539',jdecode('Putzarbeiten'),jdecode(''),'/9485/9539.html','true',[],''],
		['PAGE','9566',jdecode('Stuckarbeiten'),jdecode(''),'/9485/9566.html','true',[],''],
		['PAGE','9593',jdecode('Denkmalpflege'),jdecode(''),'/9485/9593.html','true',[],''],
		['PAGE','9620',jdecode('Trockenbau'),jdecode(''),'/9485/9620.html','true',[],''],
		['PAGE','9801',jdecode('Tapezierarbeiten'),jdecode(''),'/9485/9801.html','true',[],''],
		['PAGE','9828',jdecode('Klebearbeiten'),jdecode(''),'/9485/9828.html','true',[],''],
		['PAGE','9855',jdecode('Spannarbeiten'),jdecode(''),'/9485/9855.html','true',[],''],
		['PAGE','9882',jdecode('Holzschutz'),jdecode(''),'/9485/9882.html','true',[],''],
		['PAGE','14363',jdecode('Bodenarbeiten'),jdecode(''),'/9485/14363.html','true',[],'']
	],''],
	['PAGE','9674',jdecode('Kontakt'),jdecode(''),'/9674.html','true',[],''],
	['PAGE','9909',jdecode('Service'),jdecode(''),'/9909.html','true',[],''],
	['PAGE','14390',jdecode('Referenzen'),jdecode(''),'/14390.html','true',[],''],
	['PAGE','14471',jdecode('Impressum'),jdecode(''),'/14471.html','true',[],''],
	['PAGE','14607',jdecode('Anfahrt'),jdecode(''),'/14607.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2461';
theSitetree.keyvisualName='maler.jpg';
theSitetree.fontsetId='403';
theSitetree.graphicsetId='460';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2461',
				keyvisualName: 	'maler.jpg',
				fontsetId: 		'403',
				graphicsetId: 	'460',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				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['1501']=webappMappings['1501-2108647']={
webappId:    '1501',
documentId:  '9401',
internalId:  '2108647',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14607',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20050126-153236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14471',
internalId:  '',
customField: '20081204-154021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9485',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9512',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9539',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9566',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9593',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9620',
internalId:  '',
customField: '20040623-090654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20040623-093037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9828',
internalId:  '',
customField: '20040623-093037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9855',
internalId:  '',
customField: '20040623-093037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9882',
internalId:  '',
customField: '20040623-093037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14363',
internalId:  '',
customField: '20050126-142846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9674',
internalId:  '',
customField: '20081204-155735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9909',
internalId:  '',
customField: '20040623-093037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14390',
internalId:  '',
customField: '20050126-142846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14607',
internalId:  '',
customField: '20050126-150314'
};
var canonHostname = 'cfawrk09.aul.t-online.de';
var accountId     = 'ATOIX0INZAOT';
var companyName   = 'Farbenhaus+Bruckm%C3%BCller+GmbH';
var htmlTitle	  = 'Farbenhaus+Bruckm%C3%BCller';
var metaKeywords  = '0';
var metaContents  = 'inof+%C3%BCber+den+Betrieb';
					                                                                    
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 */					                                                            
