/* [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('Home'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40638',jdecode('Psychotherapie'),jdecode(''),'/40638.html','true',[],''],
	['PAGE','40656',jdecode('Coaching'),jdecode(''),'/40656.html','true',[],''],
	['PAGE','40848',jdecode('Paarberatung'),jdecode(''),'/40848.html','true',[],''],
	['PAGE','40647',jdecode('Beratung'),jdecode(''),'/40647.html','true',[],''],
	['PAGE','40665',jdecode('Pers%C3%B6nlich'),jdecode(''),'/40665.html','true',[],''],
	['PAGE','40674',jdecode('Schweigepflicht'),jdecode(''),'/40674.html','true',[],''],
	['PAGE','40683',jdecode('Kontakt'),jdecode(''),'/40683.html','true',[],''],
	['PAGE','40692',jdecode('Impressum'),jdecode(''),'/40692.html','true',[],''],
	['PAGE','40722',jdecode('Anfahrt'),jdecode(''),'/40722.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='650D0D';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17859';
theSitetree.graphicsetId='12984';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='9D6464';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Firma',
				paletteFamily: 	'650D0D',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17859',
				graphicsetId: 	'12984',
				contentColor: 	'FFFFFF',
				contentBGColor: '9D6464',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40722',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20090809-203011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40665',
internalId:  '',
customField: '20080121-144641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40683',
internalId:  '',
customField: '20080615-125440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40638',
internalId:  '',
customField: '20081018-020852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40647',
internalId:  '',
customField: '20070508-110318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40848',
internalId:  '',
customField: '20070114-184852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40656',
internalId:  '',
customField: '20080615-124851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40674',
internalId:  '',
customField: '20061114-180219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40692',
internalId:  '',
customField: '20080917-150922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40722',
internalId:  '',
customField: '20080615-125637'
};
webappMappings['1008']=webappMappings['1008-25119067']={
webappId:    '1008',
documentId:  '40683',
internalId:  '25119067',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk06.aul.t-online.de';
var accountId     = 'ATOIX0I7Y8FF';
var companyName   = 'Privatpraxis+f%C3%BCr+Coaching+%26+Psychotherapie+%28HpG%29';
var htmlTitle	  = 'S.+Friese+-+Privatpraxis+f%C3%BCr+Coaching+u.+Psychotherapie++in+Essen';
var metaKeywords  = 'Psychotherapeut%2C+Psychotherapie%2C+Psychologische+Beratung%2C+Angst%2C+Depression%2C+Coaching%2C+Beratung%2C+Stephan+Friese%2C+Psychoanalyse%2C+Essen%2C+Stress%2C+Eheberatung%2C+Paarberatung%2C++Personal+Coaching%2C+Psychotherapeutischer%2C+Gespr%C3%A4chspsychotherapie%2C+Verhaltenstherapie%2C+Mobbing%2C+Therapie%2C+Paartherapie%2C+Psychotherapeut%2C+45134';
var metaContents  = 'Stephan+Friese+-+Praxis+f%C3%BCr++Coaching++und+Psychotherapie+in+Essen%2C+D%C3%BCsseldorf.+Mein+Name+ist+Stephan+Friese+ich+bin+Coach+und+Psychotherapeutischer+Heilpraktiker.+Mein+Anliegen+ist+es+Sie+bei+Ihrer+pers%C3%B6nlichen+Entwicklung+zu+unterst%C3%BCtzen.';
					                                                                    
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 */					                                                            
