/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40555',jdecode('Philosophie'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40564',jdecode('Leistungen'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','42145',jdecode('Pers%C3%B6nlich'),jdecode(''),'/42145.html','true',[],''],
	['PAGE','42156',jdecode('Referenzen'),jdecode(''),'/42156.html','true',[],''],
	['PAGE','40582',jdecode('Kontakt'),jdecode(''),'/40582.html','true',[],''],
	['PAGE','42013',jdecode('Anfahrt'),jdecode(''),'/42013.html','true',[],''],
	['PAGE','40591',jdecode('Impressum'),jdecode(''),'/40591.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='TOI_Health_1';
theSitetree.paletteFamily='F1F1F0';
theSitetree.keyvisualId='10594';
theSitetree.keyvisualName='kv_10594.jpg';
theSitetree.fontsetId='31746';
theSitetree.graphicsetId='13515';
theSitetree.contentColor='534F48';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Health_1',
				paletteFamily: 	'F1F1F0',
				keyvisualId: 	'10594',
				keyvisualName: 	'kv_10594.jpg',
				fontsetId: 		'31746',
				graphicsetId: 	'13515',
				contentColor: 	'534F48',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20110204-105431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42145',
internalId:  '',
customField: '20110301-133426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20110131-143244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20110131-092658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40591',
internalId:  '',
customField: '20110204-110153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20080505-122040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42156',
internalId:  '',
customField: '20110301-134258'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42013',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1008']=webappMappings['1008-47467951']={
webappId:    '1008',
documentId:  '40582',
internalId:  '47467951',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42013',
internalId:  '',
customField: '20071219-141026'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7ZX7H';
var companyName   = 'Herzlich+Willkommen';
var htmlTitle	  = 'Mediendienstleistungen+art%2Bword+media';
var metaKeywords  = 'artword%2C+art%2Bword%2C+art+%2B+word%2C+art%2C+word%2C+medien%2C+media%2C+Katrin%2C+J%C3%B6rk%2C+Katrin+J%C3%B6rk%2C+Mediendesign%2C+Mediengestaltung%2C+Werbung%2C+Werbeagentur%2C+Werbemittel%2C+Werbekonzept%2C+Druckprodukte%2C+Printmedien%2C+Drucksachen%2C+Design%2C+Grafik%2C+Grafik-Design%2C+Dienstleistung%2C+Gestaltung%2C+Idee%2C+Ideen%2C+Konzept%2C+Kommunikation%2C+Logo%2C+Layout%2C+Gesch%C3%A4ftsausstattung%2C+Flyer%2C+Anzeigen%2C+Brosch%C3%BCren%2C+Kataloge%2C+Aufsteller%2C+Mailings%2C+B2B%2C+B2C%2CBildbearbeitung%2C+Typografie%2C+individuell%2C+Th%C3%BCringen%2C+Wartburgkreis%2C+Bad+Salzungen%2C+Vacha%2C+36404';
var metaContents  = 'art%2Bword+media.+Perfekt+in+Bild%2C+Text+und+auf+allen+Medien.+Werbung+kann+mehr%21+Lassen+Sie+sich+%C3%BCberzeugen.';
					                                                                    
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 */					                                                            

