/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41282',jdecode('Profil'),jdecode(''),'/41282.html','true',[],''],
	['PAGE','41291',jdecode('Leistungen'),jdecode(''),'/41291.html','true',[],''],
	['PAGE','41300',jdecode('Spektrum'),jdecode(''),'/41300.html','true',[],''],
	['PAGE','42484',jdecode('Energieberatung'),jdecode(''),'/42484.html','true',[],''],
	['PAGE','42833',jdecode('Verband+Privater+Bauherren'),jdecode(''),'/42833.html','true',[],''],
	['PAGE','41309',jdecode('Informationen'),jdecode(''),'/41309.html','true',[],''],
	['PAGE','41372',jdecode('Anfahrt'),jdecode(''),'/41372.html','true',[],''],
	['PAGE','42283',jdecode('Kontakt'),jdecode(''),'/42283.html','true',[],''],
	['PAGE','41318',jdecode('Impressum'),jdecode(''),'/41318.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='650000';
theSitetree.keyvisualId='1384';
theSitetree.keyvisualName='detail.jpg';
theSitetree.fontsetId='237';
theSitetree.graphicsetId='296';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'650000',
				keyvisualId: 	'1384',
				keyvisualName: 	'detail.jpg',
				fontsetId: 		'237',
				graphicsetId: 	'296',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'650000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41372',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20101111-150923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41282',
internalId:  '',
customField: '20120104-135236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41291',
internalId:  '',
customField: '20101118-140603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41318',
internalId:  '',
customField: '20110210-120743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41309',
internalId:  '',
customField: '20101019-103356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41300',
internalId:  '',
customField: '20101019-104153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41372',
internalId:  '',
customField: '20101019-103425'
};
webappMappings['1501']=webappMappings['1501-26635022']={
webappId:    '1501',
documentId:  '44',
internalId:  '26635022',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42283',
internalId:  '',
customField: '20101019-103444'
};
webappMappings['1008']=webappMappings['1008-26635369']={
webappId:    '1008',
documentId:  '42283',
internalId:  '26635369',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42484',
internalId:  '',
customField: '20101019-100739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42833',
internalId:  '',
customField: '20110722-101242'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7IAFU';
var companyName   = 'Architekturb%C3%BCro+Sommer';
var htmlTitle	  = 'ARCHITEKTURB%C3%9CRO+SOMMER+in+WARSTEIN';
var metaKeywords  = 'Sommer%2C+Karsten%2C+Architektenkammer%2C+Diplom%2C+Ingenieur%2C+Architekt%2C+Architekturb%C3%BCro%2C+Architektur%2C+selbst%C3%A4ndiger%2C+freiberuflicher%2C+freier%2C+Freiberufler%2C+Bauherrenberater%2C+Bauexperte%2C+Sachverst%C3%A4ndiger%2C+Bausachverst%C3%A4ndiger%2C+Baubetreuung%2C+Bauberatung%2C+allgemeine+Bauberatungen%2C++Fachingenieur%2C+Warstein%2C+Hirschberg%2C+Suttrop%2C+Belecke%2C+M%C3%BClheim%2C+Sichtigvor%2C+Waldhausen%2C+Allagen%2C+Niederbergheim%2C+Warstein-Hirschberg%2C+Warstein-Suttrop%2C+Warstein-Belecke%2C+Warstein-M%C3%BClheim%2C+Warstein-Sichtigvor%2C+Warstein-Waldhausen%2C+Warstein-Allagen%2C+Warstein-Niederbergheim%2C+R%C3%BCthen%2C+Kallenhardt%2C+Anr%C3%B6chte%2C+Erwitte%2C+Lippstadt%2C+Soest%2C+Meschede%2C+M%C3%B6hnesee%2C+V%C3%B6llinghausen%2C+Wamel%2C+Stockum%2C+K%C3%B6rbecke%2C+Delecke%2C+Echtrop%2C+59581%2C+59494%2C+59604%2C+59519%2C+59597%2C+59609%2C+59872%2C+Nordrhein-Westfalen%2C+Nordrhein-+Westfalen%2C+Sauerland%2C+Hellweg%2C+Hochsauerlandkreis%2C+Kreis+Soest';
var metaContents  = 'Planung+und+Baubetreuung+von+Neubau-%2C+Umbau-+und+Sanierungsma%C3%9Fnahmen+von+Wohnungs-%2C+Industrie-+und+Gewerbebauten+sowie+%C3%B6ffentlichen+Geb%C3%A4uden+seit+%C3%BCber+20+Jahren%21';
					                                                                    
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 */					                                                            

