/* [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','5888',jdecode('Startseite'),jdecode(''),'/5888.html','true',[],''],
	['PAGE','10476',jdecode('Leistungen'),jdecode(''),'/10476.html','true',[],''],
	['PAGE','34075',jdecode('Arbeit+und+Ziele'),jdecode(''),'/34075/home.html','true',[ 
		['PAGE','35098',jdecode('Thema+Planungsarbeit'),jdecode(''),'/34075/35098.html','true',[],'']
	],''],
	['PAGE','33645',jdecode('Impressionen'),jdecode(''),'/33645.html','true',[],''],
	['PAGE','10422',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/10422/home.html','true',[ 
		['PAGE','13035',jdecode('Referenzen+Hubert'),jdecode(''),'/10422/13035.html','true',[],''],
		['PAGE','16913',jdecode('Referenzen+Marco'),jdecode(''),'/10422/16913.html','false',[],''],
		['PAGE','34129',jdecode('B%C3%BCro+im+Bild'),jdecode(''),'/10422/34129.html','true',[],'']
	],''],
	['PAGE','10557',jdecode('Kontakt'),jdecode(''),'/10557/home.html','true',[ 
		['PAGE','36338',jdecode('Kontaktformular'),jdecode(''),'/10557/36338/home.html','true',[ 
			['PAGE','36480',jdecode('Kontaktformular+%28Folgeseite%29'),jdecode(''),'/10557/36338/36480.html','false',[],'']
		],'']
	],''],
	['PAGE','11102',jdecode('So+finden+Sie+uns'),jdecode(''),'/11102.html','true',[],''],
	['PAGE','10530',jdecode('Links'),jdecode(''),'/10530.html','true',[],''],
	['PAGE','16940',jdecode('h%C2%B2...unser+Logo'),jdecode(''),'/16940.html','true',[],''],
	['PAGE','20001',jdecode('Impressum%2FHinweis'),jdecode(''),'/20001.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='333333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='174';
theSitetree.graphicsetId='204';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333333';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'333333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'174',
				graphicsetId: 	'204',
				contentColor: 	'FFFFFF',
				contentBGColor: '333333',
				a_color: 		'333333',
				b_color: 		'999999',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '11102',
internalId:  'location',
customField: 'location'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5888',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-1058e595eef']={
webappId:    '1007',
documentId:  '33645',
internalId:  '1058e595eef',
customField: 'g.10m75innf.2lgvf37lqgbt0.6rn80'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10476',
internalId:  '',
customField: '20061101-130447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16940',
internalId:  '',
customField: '20080408-191819'
};
webappMappings['1501']=webappMappings['1501-654492']={
webappId:    '1501',
documentId:  '5888',
internalId:  '654492',
customField: '1501'
};
webappMappings['1001']=webappMappings['1001-atoix0invkzz7452afd1bcd95dce']={
webappId:    '1001',
documentId:  '36338',
internalId:  'atoix0invkzz7452afd1bcd95dce',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0invkzz7452afd1bcd95dce']={
webappId:    '1001',
documentId:  '36480',
internalId:  'atoix0invkzz7452afd1bcd95dce',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5888',
internalId:  '',
customField: '20090826-193852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20090218-080615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10557',
internalId:  '',
customField: '20080408-191909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10422',
internalId:  '',
customField: '20080408-192343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34129',
internalId:  '',
customField: '20080408-192452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33645',
internalId:  '',
customField: '20061101-174404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34075',
internalId:  '',
customField: '20061101-130600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35098',
internalId:  '',
customField: '20050707-114034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13035',
internalId:  '',
customField: '20050217-142729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16913',
internalId:  '',
customField: '20060710-132940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36338',
internalId:  '',
customField: '20050820-164808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36480',
internalId:  '',
customField: '20050706-174720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11102',
internalId:  '',
customField: '20050707-191017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10530',
internalId:  '',
customField: '20050822-094634'
};
var canonHostname = 'cfawrk05.aul.t-online.de';
var accountId     = 'ATOIX0INVKZZ';
var companyName   = 'Architekturb%C3%BCro+h%C2%B2';
var htmlTitle	  = 'Architekturb%C3%BCro+h%C2%B2+.+Hupperath';
var metaKeywords  = 'Architektur%2C+Architekt%2C+Bauen%2C+Wohnen%2C+Haus%2C+Hupperath%2C+Hoffmann%2C+Planung%2C+Marco%2C+Hubert%2C+B%C3%BCro%2C+Geb%C3%A4ude%2C+Architekturb%C3%BCro%2C+Beratung%2C+Bau%2C+Wohnhaus%2C+Planen%2C+';
var metaContents  = 'Willkommen+bei+h%C2%B2-architektur%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 */					                                                            

