/* [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','41031',jdecode('Aktuell'),jdecode(''),'/41031.html','true',[],''],
	['PAGE','40993',jdecode('B%C3%BCro'),jdecode(''),'/40993/home.html','true',[ 
		['PAGE','41013',jdecode('Profil'),jdecode(''),'/40993/41013.html','true',[],''],
		['PAGE','41959',jdecode('Vita'),jdecode(''),'/40993/41959.html','true',[],''],
		['PAGE','42766',jdecode('Jobs'),jdecode(''),'/40993/42766.html','true',[],''],
		['PAGE','41049',jdecode('Kontakt'),jdecode(''),'/40993/41049.html','true',[],'']
	],''],
	['PAGE','41004',jdecode('Projekte'),jdecode(''),'/41004/home.html','true',[ 
		['PAGE','42780',jdecode('Impressionen'),jdecode(''),'/41004/42780.html','true',[],''],
		['PAGE','42730',jdecode('Referenzen'),jdecode(''),'/41004/42730.html','true',[],'']
	],''],
	['PAGE','42611',jdecode('Downloads'),jdecode(''),'/42611.html','true',[],''],
	['PAGE','41058',jdecode('Impressum'),jdecode(''),'/41058.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Circles';
theSitetree.paletteFamily='D2D2D2';
theSitetree.keyvisualId='10971';
theSitetree.keyvisualName='kv_10971.jpg';
theSitetree.fontsetId='31910';
theSitetree.graphicsetId='13728';
theSitetree.contentColor='424242';
theSitetree.contentBGColor='D2D2D2';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circles',
				paletteFamily: 	'D2D2D2',
				keyvisualId: 	'10971',
				keyvisualName: 	'kv_10971.jpg',
				fontsetId: 		'31910',
				graphicsetId: 	'13728',
				contentColor: 	'424242',
				contentBGColor: 'D2D2D2',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41031',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40993',
internalId:  '',
customField: '20090710-164729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41004',
internalId:  '',
customField: '20090106-175327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41013',
internalId:  '',
customField: '20100201-141446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42730',
internalId:  '',
customField: '20100129-154207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41058',
internalId:  '',
customField: '20080605-143417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41049',
internalId:  '',
customField: '20081210-184403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41031',
internalId:  '',
customField: '20100201-135836'
};
webappMappings['1008']=webappMappings['1008-33646208']={
webappId:    '1008',
documentId:  '41049',
internalId:  '33646208',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42766',
internalId:  '',
customField: '20100215-194253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42780',
internalId:  '',
customField: '20100226-092241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41959',
internalId:  '',
customField: '20100215-194948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42611',
internalId:  '',
customField: '20100216-104339'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7XZVX';
var companyName   = 'schaefers+concept+-+b%C3%BCro+f%C3%BCr+landschaftsarchitektur';
var htmlTitle	  = 'schaefers+concept+-+b%C3%BCro+f%C3%BCr+landschaftsarchitektur+kassel';
var metaKeywords  = 'Sch%C3%A4fers%2C+Objektplanung%2C+Landschaftsplanung%2C+Freiraumplanung%2C+Markus+Schaefers%2C+Markus+Sch%C3%A4fers%2C+Gartendesign%2C+Gartenarchitektur%2C+Landschaftsarchitektur%2C+schaefers+landschaftsarchitektur%2C+landschaftsarchitekt+markus+schaefers%2C+landschaftsarchitektur+kassel%2C+landschaftsarchitektur+kaufungen%2C+kaufungen%2C+b%C3%BCro+f%C3%BCr+landschaftsarchitektur+kassel';
var metaContents  = 'Willkommen+bei+schaefers+concept.+Unser+B%C3%BCro+f%C3%BCr+Landschaftsarchitektur+bearbeitet+das+gesamte+fachliche+Spektrum%3A+Objektplanung%2C+Landschaftsplanung%2C+Freiraumplanung';
					                                                                    
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 */					                                                            
