/* [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','40734',jdecode('%C3%9Cber+mich'),jdecode(''),'/40734.html','true',[],''],
	['PAGE','40555',jdecode('Mein+Angebot'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40744',jdecode('Aktuelle+Angebote'),jdecode(''),'/40744.html','true',[],''],
	['PAGE','40759',jdecode('Bildergalerie'),jdecode(''),'/40759.html','true',[],''],
	['PAGE','40564',jdecode('Preise'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','40804',jdecode('Termine'),jdecode(''),'/40804.html','true',[],''],
	['PAGE','40582',jdecode('Kontakt'),jdecode(''),'/40582.html','true',[],''],
	['PAGE','40631',jdecode('Anfahrt'),jdecode(''),'/40631.html','true',[],''],
	['PAGE','40723',jdecode('Impressum'),jdecode(''),'/40723.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Dinner_1';
theSitetree.paletteFamily='EF8000';
theSitetree.keyvisualId='10568';
theSitetree.keyvisualName='kv_10568.jpg';
theSitetree.fontsetId='31735';
theSitetree.graphicsetId='13502';
theSitetree.contentColor='614E39';
theSitetree.contentBGColor='EF8000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Dinner_1',
				paletteFamily: 	'EF8000',
				keyvisualId: 	'10568',
				keyvisualName: 	'kv_10568.jpg',
				fontsetId: 		'31735',
				graphicsetId: 	'13502',
				contentColor: 	'614E39',
				contentBGColor: 'EF8000',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20091210-195405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20101203-155539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20111111-220412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20101201-214327'
};
webappMappings['1008']=webappMappings['1008-66782710']={
webappId:    '1008',
documentId:  '40582',
internalId:  '66782710',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40734',
internalId:  '',
customField: '20111210-084630'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40631',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40631',
internalId:  '',
customField: '20091210-204705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40723',
internalId:  '',
customField: '20100207-170949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40744',
internalId:  '',
customField: '20111210-085454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40759',
internalId:  '',
customField: '20120129-154012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40804',
internalId:  '',
customField: '20120129-150533'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRIZZE';
var companyName   = 'Hautsache+S.+K%C3%A4mper-Baldeau';
var htmlTitle	  = 'hautsache-skb.de';
var metaKeywords  = 'Hautsache%2C+Silvia+K%C3%A4mper-Baldeau%2C+Kosmetik%2C+Massagen%2C+Dr.+Rimpler%2C+Isabelle+Lancray%2C+Gesichtsbehandlungen%2C+Entspannung%2C+Progressive+Muskelentspannung%2C+Beauty%2C+Wellness%2C+SKB%2C+Wenholthausen%2C+Eslohe%2C+Sauerland%2C+Sauerl%C3%A4nder+Hof%2C+Kosmetikbehandlungen%2C+Entspannungsmassagen%2C+Aroma%C3%B6lmassage+%2C+Kosmetikerin%2C+Fachkosmetikerin%2C+';
var metaContents  = 'Willkommen+bei+Hautsache+Silvia+K%C3%A4mper-Baldeau%2C+Erleben+Sie+Kosmetische+Behandlungen+und+Massagen++';
					                                                                    
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 */					                                                            

