/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40555',jdecode('Leistungen'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','41071',jdecode('Hallenbau'),jdecode(''),'/41071.html','true',[],''],
	['PAGE','40879',jdecode('Kran+%26+Verlegeger%C3%A4t'),jdecode(''),'/40879.html','true',[],''],
	['PAGE','40691',jdecode('Referenzen'),jdecode(''),'/40691.html','true',[],''],
	['PAGE','40600',jdecode('Kontakt'),jdecode(''),'/40600.html','true',[],''],
	['PAGE','40678',jdecode('So+finden+Sie+uns'),jdecode(''),'/40678.html','true',[],''],
	['PAGE','40627',jdecode('Links'),jdecode(''),'/40627.html','true',[],''],
	['PAGE','40888',jdecode('Impressum'),jdecode(''),'/40888.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Litfass';
theSitetree.paletteFamily='465461';
theSitetree.keyvisualId='11041';
theSitetree.keyvisualName='kv_11041.jpg';
theSitetree.fontsetId='32074';
theSitetree.graphicsetId='13772';
theSitetree.contentColor='F2F9FF';
theSitetree.contentBGColor='465461';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Litfass',
				paletteFamily: 	'465461',
				keyvisualId: 	'11041',
				keyvisualName: 	'kv_11041.jpg',
				fontsetId: 		'32074',
				graphicsetId: 	'13772',
				contentColor: 	'F2F9FF',
				contentBGColor: '465461',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20090608-220533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20091116-193605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40691',
internalId:  '',
customField: '20070916-140704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40600',
internalId:  '',
customField: '20070916-121536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40678',
internalId:  '',
customField: '20070916-140911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40627',
internalId:  '',
customField: '20090405-132330'
};
webappMappings['1007']=webappMappings['1007-1150e32be43']={
webappId:    '1007',
documentId:  '40691',
internalId:  '1150e32be43',
customField: 'g.12k7300i7.fi6pl74hig.3o'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40678',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-39227429']={
webappId:    '1008',
documentId:  '40600',
internalId:  '39227429',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40879',
internalId:  '',
customField: '20091116-210700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40888',
internalId:  '',
customField: '20071023-115802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41071',
internalId:  '',
customField: '20090201-174811'
};
var canonHostname = 'cfawrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7F49F';
var companyName   = 'Zimmerei+Hornung';
var htmlTitle	  = 'Zimmerei+Hornung';
var metaKeywords  = 'Hornung%2C+Zimmerei%2C+Tischlerei%2C+Innenausbau%2C+Dachstuhl%2C+Dachstuehle%2C+Dachausbau%2C+Treppen%2C+Echtholztreppen%2C+Restaurierungen%2C+Denkmalschutz%2C+Holzschutz%2C+Holzbau%2C+Parkett%2C+Laminat%2C+Trockenausbau%2C+S%C3%A4gewerk%2C+Holzbau%2C+Altbaumodernisierung%2C+Engergieeinsparverordnung%2C+Carport%2C+Dachdeckungen%2C+Holz%2C+G%C3%BCnstig%2C+fachlich%2C+Zimmerer%2C+Rothenburg%2C+Gebsattel%2C+Neusitz%2C+Wachsenberg%2C+Stettberg%2C+Kreuth%2C+Dornhausen%2C+Hartershofen%2C+Spielbach%2C+Colmberg%2C+Binzwangen%2C+H%C3%BCrbel%2C+Ansbach%2C+Braumandl%2C+Dach%2C+Haus%2C+Dachfenster%2C+Roto%2C+Velux%2C+Tore%2C+Dachboden%2C+Spengler%2C+Lohnschnitt%2C+Holzverkauf%2C+gehobelte+H%C3%B6lzer%2C+Hobeln%2C+Fr%C3%A4sen%2C+Asbestentsorgung%2C+Eternit%2C+Braas%2C+Pavatex%2C+Gutex%2C+Tyvek%2C+Dupont%2C+Geslau%2C+Gunzendorf%2C+Steinach%2C+Trapezblech%2C+Hallen%2C+Hallenbau%2C+Landwirtschaft%2C+Bergehalle%2C+Maschinenhalle++Hallenbau%2C+Rinderstall%2C+Stall%2C+Stallbau%2C+AMS%2C+Melkrobotor';
var metaContents  = 'Willkommen+bei+Zimmerei+Hornung.++++';
					                                                                    
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 */					                                                            
