/* [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','41393',jdecode('Referenzen'),jdecode(''),'/41393.html','true',[],''],
	['PAGE','41411',jdecode('Kontakt'),jdecode(''),'/41411.html','true',[],''],
	['PAGE','41420',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41420.html','true',[],''],
	['PAGE','41438',jdecode('Impressum'),jdecode(''),'/41438.html','true',[],''],
	['PAGE','41516',jdecode('Fotoalbum+und+Tipp'),jdecode(''),'/41516.html','true',[],''],
	['PAGE','41565',jdecode('Spektrum'),jdecode(''),'/41565.html','true',[],''],
	['PAGE','41617',jdecode('Preis+%26+Leistung'),jdecode(''),'/41617.html','true',[],''],
	['PAGE','42841',jdecode('G%C3%A4stebuch'),jdecode(''),'/42841/home.html','true',[ 
		['PAGE','42840',jdecode('Eintr%C3%A4ge'),jdecode(''),'/42841/42840.html','true',[],'']
	],''],
	['PAGE','43149',jdecode('Multimedia+Show+1'),jdecode(''),'/43149.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='01343D';
theSitetree.keyvisualId='2152';
theSitetree.keyvisualName='architektur.jpg';
theSitetree.fontsetId='356';
theSitetree.graphicsetId='409';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='01343D';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Medium',
				paletteFamily: 	'01343D',
				keyvisualId: 	'2152',
				keyvisualName: 	'architektur.jpg',
				fontsetId: 		'356',
				graphicsetId: 	'409',
				contentColor: 	'FFFFFF',
				contentBGColor: '01343D',
				a_color: 		'01343D',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, 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: '20110217-215647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41565',
internalId:  '',
customField: '20080608-231013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41411',
internalId:  '',
customField: '20110217-215734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41393',
internalId:  '',
customField: '20110217-215715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41516',
internalId:  '',
customField: '20110217-192000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41420',
internalId:  '',
customField: '20080913-182441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41438',
internalId:  '',
customField: '20100503-120559'
};
webappMappings['1007']=webappMappings['1007-11a45cb59d3']={
webappId:    '1007',
documentId:  '41516',
internalId:  '11a45cb59d3',
customField: 'g.1392s6p7q.1535pm4cllj.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41617',
internalId:  '',
customField: '20080608-225603'
};
webappMappings['7060']=webappMappings['7060-cb012925e8de3f8ae0406ebe8e4fd24f']={
webappId:    '7060',
documentId:  '43149',
internalId:  'cb012925e8de3f8ae0406ebe8e4fd24f',
customField: 'language:de;country:DE;'
};
webappMappings['1002']=webappMappings['1002-42841atoix0irmk91']={
webappId:    '1002',
documentId:  '42841',
internalId:  '42841atoix0irmk91',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-42841atoix0irmk91']={
webappId:    '1002',
documentId:  '42840',
internalId:  '42841atoix0irmk91',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42841',
internalId:  '',
customField: '20080608-232119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42840',
internalId:  '',
customField: '20080608-232119'
};
webappMappings['1501']=webappMappings['1501-49427216']={
webappId:    '1501',
documentId:  '39994',
internalId:  '49427216',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43149',
internalId:  '',
customField: '20110217-215021'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRMK91';
var companyName   = 'TROCKEN+u.+AKUSTIKBAU+HORNIG++';
var htmlTitle	  = 'Trocken+u.Akustikbau';
var metaKeywords  = 'Trocken+und+Akustikbau%2C+Gerd+Hornig+%2CHandwerker%2C+Bau%2C+Fliesen%2C+Bad%2C+Dachausbau%2C+Dachgeschossausbau%2C+Fliesenleger%2C+Trockenbau%2C+%2C+Parkett++Innenausbau%2CAkustikw%C3%A4nde-+und+Decken+%2C+Brandschutz%2C+Schallschutz%2C+Fachbetrieb+WUPPERTAL';
var metaContents  = 'Willkommen+bei+Trocken+und+Akustikbau.+Ihr+Handwerkspartner+vom+Fach.++';
					                                                                    
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 */					                                                            

