/* [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','22920',jdecode('Home'),jdecode(''),'/22920.html','true',[],''],
	['PAGE','23028',jdecode('Produkte'),jdecode(''),'/23028.html','true',[],''],
	['PAGE','35442',jdecode('Produkt-Info+1'),jdecode(''),'/35442.html','true',[],''],
	['PAGE','35627',jdecode('Produkt-Info+2'),jdecode(''),'/35627.html','true',[],''],
	['PAGE','35654',jdecode('Produkt-Info+3'),jdecode(''),'/35654.html','true',[],''],
	['PAGE','36842',jdecode('Produkt-Info+4'),jdecode(''),'/36842.html','true',[],''],
	['PAGE','36851',jdecode('Produkt-Info+5'),jdecode(''),'/36851.html','true',[],''],
	['PAGE','38026',jdecode('neu'),jdecode(''),'/38026.html','true',[],''],
	['PAGE','33027',jdecode('AGB'),jdecode(''),'/33027.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='FDBC3F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10896';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'FDBC3F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10896',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FDBC3F',
				e_color: 		'FDBC3F',
				f_color: 		'FDBC3F',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36851',
internalId:  '',
customField: '20090317-141107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36842',
internalId:  '',
customField: '20120210-095443'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22920',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-890060']={
webappId:    '1501',
documentId:  '22920',
internalId:  '890060',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22920',
internalId:  '',
customField: '20120210-171441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35654',
internalId:  '',
customField: '20120210-104535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35442',
internalId:  '',
customField: '20090317-141107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35627',
internalId:  '',
customField: '20120210-095039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33027',
internalId:  '',
customField: '20081109-131934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23028',
internalId:  '',
customField: '20120210-173500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38026',
internalId:  '',
customField: '20081109-143835'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INVJBZ';
var companyName   = 'airheil*Produkte+mit+Heilkr%C3%A4ften+der+Natur';
var htmlTitle	  = 'Naturheilkunde+airheil+Rezepturen';
var metaKeywords  = '++Warzen++H%C3%A4morrhoiden+Schlafprobleme++Grippe+Infektionen++Kopfschmerzen+Migr%C3%A4ne++Stress+M%C3%BCckenschutz++L%C3%A4use+Heuschnupfen++Lippenherpes+Herpes++Sekundenschlaf++Fu%C3%9Fpilz+++Erk%C3%A4ltung++Haarwuchs+Cellulite++Mundgeruch+H%C3%BChneraugen+Gelenkschmerzen';
var metaContents  = '++Naturheilplanzen+mit+Heilkraft+der+%C3%A4therischen+%C3%96le+in+airheil+-Rezepturen..Nat%C3%BCrliche+Heilung+durch+%C3%A4therische+%C3%96le+in+fertigen+Rezepturen+von+airheil.+z.B.+airheil-Warzen+Killer+schmerz-+und+narbenlose+Ver%C3%B6dung+in+2+Wochen+oder+airheil-H%C3%A4morrhoiden+%C3%96l+Tinktur+lindert+bereits+nach+der+ersten+Anwendung.+Naturmittel+von+airheil';
					                                                                    
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 */					                                                            

