/* [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','13887',jdecode('Home'),jdecode(''),'/13887.html','true',[],''],
	['PAGE','22721',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/22721/home.html','true',[ 
		['PAGE','37251',jdecode('Unser+Team'),jdecode(''),'/22721/37251.html','true',[],'']
	],''],
	['PAGE','42348',jdecode('Kundenb%C3%A4der'),jdecode(''),'/42348.html','true',[],''],
	['PAGE','22748',jdecode('Produkte'),jdecode(''),'/22748/home.html','true',[ 
		['PAGE','37278',jdecode('Brennwertheizung'),jdecode(''),'/22748/37278.html','true',[],''],
		['PAGE','42293',jdecode('Pellets-Heizung'),jdecode(''),'/22748/42293.html','true',[],''],
		['PAGE','22775',jdecode('Gasheizung'),jdecode(''),'/22748/22775.html','true',[],''],
		['PAGE','37305',jdecode('%C3%96lheizung'),jdecode(''),'/22748/37305.html','true',[],''],
		['PAGE','22829',jdecode('Solaranlagen'),jdecode(''),'/22748/22829.html','true',[],'']
	],''],
	['PAGE','22856',jdecode('Eigene+Ausstellung'),jdecode(''),'/22856/home.html','true',[ 
		['PAGE','37359',jdecode('Badplanung'),jdecode(''),'/22856/37359.html','true',[],''],
		['PAGE','22802',jdecode('B%C3%A4der'),jdecode(''),'/22856/22802.html','true',[],'']
	],''],
	['PAGE','37386',jdecode('Preis+%26+Leistung'),jdecode(''),'/37386.html','true',[],''],
	['PAGE','22937',jdecode('Notruf'),jdecode(''),'/22937.html','true',[],''],
	['PAGE','22991',jdecode('Kontakt'),jdecode(''),'/22991/home.html','true',[ 
		['PAGE','23252',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/22991/23252.html','false',[],'']
	],''],
	['PAGE','23018',jdecode('Impressum'),jdecode(''),'/23018.html','true',[],''],
	['PAGE','23152',jdecode('Anfahrt'),jdecode(''),'/23152.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='2354B7';
theSitetree.keyvisualId='2698';
theSitetree.keyvisualName='blanco.jpg';
theSitetree.fontsetId='10404';
theSitetree.graphicsetId='10633';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C6E2FE';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Match',
				paletteFamily: 	'2354B7',
				keyvisualId: 	'2698',
				keyvisualName: 	'blanco.jpg',
				fontsetId: 		'10404',
				graphicsetId: 	'10633',
				contentColor: 	'000000',
				contentBGColor: 'C6E2FE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'2354B7',
				e_color: 		'707070',
				f_color: 		'707070',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13887',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '23152',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-1367186']={
webappId:    '1501',
documentId:  '13887',
internalId:  '1367186',
customField: '1501'
};
webappMappings['1001']=webappMappings['1001-atoix0invlue9976ad72aaea68d7']={
webappId:    '1001',
documentId:  '22991',
internalId:  'atoix0invlue9976ad72aaea68d7',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0invlue9976ad72aaea68d7']={
webappId:    '1001',
documentId:  '23252',
internalId:  'atoix0invlue9976ad72aaea68d7',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13887',
internalId:  '',
customField: '20110330-082928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37386',
internalId:  '',
customField: '20100520-160909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23152',
internalId:  '',
customField: '20040401-215552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23018',
internalId:  '',
customField: '20061229-150833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22721',
internalId:  '',
customField: '20110923-144825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22748',
internalId:  '',
customField: '20100119-140340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42293',
internalId:  '',
customField: '20050823-100518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22856',
internalId:  '',
customField: '20090509-171756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22802',
internalId:  '',
customField: '20060130-093723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42348',
internalId:  '',
customField: '20110919-103733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37251',
internalId:  '',
customField: '20091130-103537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37278',
internalId:  '',
customField: '20040424-184758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22775',
internalId:  '',
customField: '20091130-152526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37305',
internalId:  '',
customField: '20091130-151820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22829',
internalId:  '',
customField: '20091130-105544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37359',
internalId:  '',
customField: '20040909-221225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22937',
internalId:  '',
customField: '20040703-144611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22991',
internalId:  '',
customField: '20040328-220632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23252',
internalId:  '',
customField: '20040328-203139'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INVLUE';
var companyName   = 'Klaus+Betz+GmbH++Bad+und+Heizung';
var htmlTitle	  = 'Meisterbetrieb++Bad+%2B+Heizung';
var metaKeywords  = '0';
var metaContents  = 'Planung+und+Montage+von+modernen+B%C3%A4dern.+Seniorengerechte+B%C3%A4der+werden+mit+Fliesenleger+komplett+realisiert.+Moderne+Heiztechnik+wird+in+verbindung+mit+Solartechnik+von+dem+bekannten+Hersteller%22Vaillant%22+komplett+installiert.+Verkauf%2C+Beratung+und+Kundendienst+steht+bei+uns+im+Vordergrund.';
					                                                                    
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 */					                                                            

