/* [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('Klimatherapie'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40690',jdecode('Ihr+Team'),jdecode(''),'/40690.html','true',[],''],
	['PAGE','40578',jdecode('Klima'),jdecode(''),'/40578/home.html','true',[ 
		['PAGE','41351',jdecode('Klimazonen+%26+Bioklima'),jdecode(''),'/40578/41351.html','true',[],''],
		['PAGE','41360',jdecode('Wetter+und+Wohlbefinden'),jdecode(''),'/40578/41360.html','true',[],''],
		['PAGE','42835',jdecode('Klimafaktoren'),jdecode(''),'/40578/42835.html','true',[],'']
	],''],
	['PAGE','40596',jdecode('Entstehung+der+Klimakur'),jdecode(''),'/40596/home.html','true',[ 
		['PAGE','41369',jdecode('Heilklimatische+Kurorte+in+Deutschland'),jdecode(''),'/40596/41369.html','true',[],''],
		['PAGE','40605',jdecode('Freudenstadt+und+Lossburg'),jdecode(''),'/40596/40605.html','true',[],''],
		['PAGE','42526',jdecode('Chronologie+Klimakur'),jdecode(''),'/40596/42526.html','true',[],'']
	],''],
	['PAGE','40614',jdecode('Ein+neuer+Trend%3F'),jdecode(''),'/40614/home.html','true',[ 
		['PAGE','40676',jdecode('Warum+Klima-Therapie'),jdecode(''),'/40614/40676.html','true',[],''],
		['PAGE','41378',jdecode('Heilklima'),jdecode(''),'/40614/41378.html','true',[],''],
		['PAGE','41387',jdecode('Zielgruppen'),jdecode(''),'/40614/41387.html','true',[],'']
	],''],
	['PAGE','41396',jdecode('Bewegung+im+Heilklima'),jdecode(''),'/41396/home.html','true',[ 
		['PAGE','41405',jdecode('Tipps+f%C3%BCr+Neustarter'),jdecode(''),'/41396/41405.html','true',[],''],
		['PAGE','43006',jdecode('Trainingspuls'),jdecode(''),'/41396/43006.html','true',[],''],
		['PAGE','41414',jdecode('Tipps+f%C3%BCr+die+Praxis'),jdecode(''),'/41396/41414.html','false',[],'']
	],''],
	['PAGE','41424',jdecode('Impressum'),jdecode(''),'/41424.html','false',[],''],
	['PAGE','42520',jdecode('Verschmelzen+mit+der+Natur'),jdecode(''),'/42520.html','false',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='819B9B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='102';
theSitetree.graphicsetId='127';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='819B9B';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Inspiration',
				paletteFamily: 	'819B9B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'102',
				graphicsetId: 	'127',
				contentColor: 	'FFFFFF',
				contentBGColor: '819B9B',
				a_color: 		'819B9B',
				b_color: 		'C8C899',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				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: '20100321-190221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43006',
internalId:  '',
customField: '20100330-132425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40676',
internalId:  '',
customField: '20100330-122513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40690',
internalId:  '',
customField: '20100321-145627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42835',
internalId:  '',
customField: '20100330-121510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40578',
internalId:  '',
customField: '20100321-163958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41424',
internalId:  '',
customField: '20091215-210047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40596',
internalId:  '',
customField: '20100328-183957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40605',
internalId:  '',
customField: '20100329-203729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40614',
internalId:  '',
customField: '20100330-122155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41351',
internalId:  '',
customField: '20100321-152041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41360',
internalId:  '',
customField: '20100321-153006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41369',
internalId:  '',
customField: '20100321-155947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41378',
internalId:  '',
customField: '20100330-130601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41387',
internalId:  '',
customField: '20100330-130058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41396',
internalId:  '',
customField: '20100330-125639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41405',
internalId:  '',
customField: '20100330-132143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41414',
internalId:  '',
customField: '20091215-203723'
};
webappMappings['7060']=webappMappings['7060-68c21b4ee91ef789c101912a1284d18a']={
webappId:    '7060',
documentId:  '42520',
internalId:  '68c21b4ee91ef789c101912a1284d18a',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42520',
internalId:  '',
customField: '20100321-105103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42526',
internalId:  '',
customField: '20100329-205413'
};
var canonHostname = 'cfawrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRWQRL';
var companyName   = 'Klimatherapie';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

