/* [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','13801',jdecode('Home+und+Impressum'),jdecode(''),'/13801.html','true',[],''],
	['PAGE','13858',jdecode('ENSEMBLE'),jdecode(''),'/13858/home.html','true',[ 
		['PAGE','13885',jdecode('Partner'),jdecode(''),'/13858/13885.html','true',[],'']
	],''],
	['PAGE','13912',jdecode('Leistungen'),jdecode(''),'/13912/home.html','true',[ 
		['PAGE','13939',jdecode('Neubau'),jdecode(''),'/13912/13939.html','true',[],''],
		['PAGE','13966',jdecode('Bauen+im+Bestand'),jdecode(''),'/13912/13966.html','true',[],''],
		['PAGE','22983',jdecode('Seminare+und+Vortr%C3%A4ge'),jdecode(''),'/13912/22983.html','true',[],'']
	],''],
	['PAGE','13993',jdecode('Referenzen'),jdecode(''),'/13993.html','true',[],''],
	['PAGE','16415',jdecode('Projektgalerie'),jdecode(''),'/16415.html','true',[],''],
	['PAGE','14047',jdecode('Aktuelles+und+Allgemeines'),jdecode(''),'/14047.html','true',[],''],
	['PAGE','14074',jdecode('Kontakt'),jdecode(''),'/14074/home.html','true',[ 
		['PAGE','14318',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/14074/14318.html','false',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='FliegendeEcke';
theSitetree.paletteFamily='FDAF5F';
theSitetree.keyvisualId='11048';
theSitetree.keyvisualName='kv_11048.jpg';
theSitetree.fontsetId='32080';
theSitetree.graphicsetId='13778';
theSitetree.contentColor='6A421B';
theSitetree.contentBGColor='FDAF5F';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'FliegendeEcke',
				paletteFamily: 	'FDAF5F',
				keyvisualId: 	'11048',
				keyvisualName: 	'kv_11048.jpg',
				fontsetId: 		'32080',
				graphicsetId: 	'13778',
				contentColor: 	'6A421B',
				contentBGColor: 'FDAF5F',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0invn6z1543a200efbb6b37']={
webappId:    '1001',
documentId:  '14074',
internalId:  'atoix0invn6z1543a200efbb6b37',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0invn6z1543a200efbb6b37']={
webappId:    '1001',
documentId:  '14318',
internalId:  'atoix0invn6z1543a200efbb6b37',
customField: 'followUp'
};
webappMappings['1007']=webappMappings['1007-105a5d3c79b']={
webappId:    '1007',
documentId:  '16415',
internalId:  '105a5d3c79b',
customField: 'g.10mit7hsr.2fkpsn50e16of.6rn80'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20111117-150547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14047',
internalId:  '',
customField: '20111117-151810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13858',
internalId:  '',
customField: '20090305-141531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13885',
internalId:  '',
customField: '20101120-163755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13912',
internalId:  '',
customField: '20090305-141712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13939',
internalId:  '',
customField: '20040106-031128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13966',
internalId:  '',
customField: '20080311-165649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13993',
internalId:  '',
customField: '20090305-141923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16415',
internalId:  '',
customField: '20040111-163458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14074',
internalId:  '',
customField: '20090305-142144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14318',
internalId:  '',
customField: '20031231-142909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22983',
internalId:  '',
customField: '20110213-135705'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INVN6Z';
var companyName   = 'ENSEMBLE+Planungsb%C3%BCro';
var htmlTitle	  = 'ENSEMBLE+Planungsb%C3%BCro+B%C3%A4rbel+Ebeling';
var metaKeywords  = 'Altbausanierung%2C+Architekt%2C+Bremen%2C+Niedersachsen%2C+Holzrahmenbau%2C+Holzhaus%2C+%C3%B6kologisch%2C+familienfreundlich%2C+gesund%2C+Wohnen%2C+Baubiologie%2C+Denkmalschutz%2C+Umbau%2C+Anbau%2C+energiesparend%2C+Bauen';
var metaContents  = 'Das+ENSEMBLE+Planungsb%C3%BCro+plant+und+ber%C3%A4t+zu+vielen+Fragen+rund+ums+Bauen.+Schwerpunkte+sind+%C3%B6kologischer+Holzrahmenbau+und+Altbaumodernisierung.+Ihr+Haus+-+genau+f%C3%BCr+Sie.';
					                                                                    
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 */					                                                            

