/* [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','40341',jdecode('Leistungen'),jdecode(''),'/40341.html','true',[],''],
	['PAGE','40359',jdecode('Wertermittlungen'),jdecode(''),'/40359.html','true',[],''],
	['PAGE','40368',jdecode('Baurecht'),jdecode(''),'/40368.html','true',[],''],
	['PAGE','40796',jdecode('Wohnhof+'),jdecode(''),'/40796.html','true',[],''],
	['PAGE','40406',jdecode('Kontakt'),jdecode(''),'/40406/home.html','true',[ 
		['PAGE','40415',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/40406/40415.html','false',[],'']
	],''],
	['PAGE','41014',jdecode('Linkliste'),jdecode(''),'/41014.html','true',[],''],
	['PAGE','40498',jdecode('Anfahrt'),jdecode(''),'/40498.html','true',[],''],
	['PAGE','41268',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/41268.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Tide';
theSitetree.paletteFamily='314EB6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13619';
theSitetree.graphicsetId='12065';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tide',
				paletteFamily: 	'314EB6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13619',
				graphicsetId: 	'12065',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				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['1001']=webappMappings['1001-atoix0in3t7a1080f106d5c']={
webappId:    '1001',
documentId:  '40406',
internalId:  'atoix0in3t7a1080f106d5c',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0in3t7a1080f106d5c']={
webappId:    '1001',
documentId:  '40415',
internalId:  'atoix0in3t7a1080f106d5c',
customField: 'followUp'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40498',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20120210-123051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40341',
internalId:  '',
customField: '20110610-114854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41014',
internalId:  '',
customField: '20111121-131107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40359',
internalId:  '',
customField: '20051209-184246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40368',
internalId:  '',
customField: '20111121-131520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40406',
internalId:  '',
customField: '20111121-131405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40415',
internalId:  '',
customField: '20051209-112824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40498',
internalId:  '',
customField: '20120210-132323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40796',
internalId:  '',
customField: '20111121-131329'
};
webappMappings['1501']=webappMappings['1501-68050129']={
webappId:    '1501',
documentId:  '44',
internalId:  '68050129',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '41268',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41268',
internalId:  '',
customField: '20120210-112149'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN3T7A';
var companyName   = 'Architekturb%C3%BCro+Michael+Sperling';
var htmlTitle	  = 'Sperling+Architekt';
var metaKeywords  = 'Sperling%2C+Architekturbuero%2C+Architekten%2C+Architektur%2C+architecture%2C+Architekt%2C+architects%2C+Architekt%2C+Bauen%2C+Gebaeude%2C+Baurecht%2C+Bauplanung%2C+Modernisierung%2C+Sanierung%2C+++Wohnen%2C+Wohngebaeude%2C+Buerogebaeude%2C+Buero%2C+Immobilien+Gewerbebauten%2C+Verwaltungsbauten%2C++Wertermittlungen%2C+Renovierung%2C+Staedtebau+%2C+Industriebau%2CFertighaus%2C+Auenwald%2C+Backnang%2C+Rems-Murr+Kreis%2C+';
var metaContents  = 'Architektenleistungen%2C+Immobilien%2CWertermittlungen+und+baurechtliche+Beratungen+sind+unser+T%C3%A4tigkeitsfeld';
					                                                                    
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 */					                                                            

