/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','1154',jdecode('Aktuelle+Angebote'),jdecode(''),'/1154/index.html','true',[ 
		['PAGE','31270',jdecode('WERBESPECIAL++%28Folgeseite%29'),jdecode(''),'/1154/31270.html','false',[],'']
	],''],
	['PAGE','77702',jdecode('Karriere+mit+Natura+Vitalis'),jdecode(''),'/77702/index.html','true',[ 
		['PAGE','151042',jdecode('Geld+verdienen+%28Folgeseite%29'),jdecode(''),'/77702/151042.html','false',[],'']
	],''],
	['PAGE','100701',jdecode('%DCber+Natura+Vitalis'),jdecode(''),'/100701.html','true',[],''],
	['PAGE','100732',jdecode('Die+Natura+Vitalis+Idee'),jdecode(''),'/100732.html','true',[],''],
	['PAGE','100601',jdecode('Mutter+Natur'),jdecode(''),'/100601.html','true',[],''],
	['PAGE','100632',jdecode('Beste+aus+aller+Welt'),jdecode(''),'/100632.html','true',[],''],
	['PAGE','100763',jdecode('Von+Mensch+zu+Mensch'),jdecode(''),'/100763.html','true',[],''],
	['PAGE','96701',jdecode('Vorzugskundenkarte'),jdecode(''),'/96701.html','true',[],''],
	['PAGE','104001',jdecode('Wellness-Fibel'),jdecode(''),'/104001.html','true',[],''],
	['PAGE','179505',jdecode('Collagen-Lift-Drink'),jdecode(''),'/179505.html','true',[],''],
	['PAGE','173732',jdecode('Acerola-C-Retard'),jdecode(''),'/173732.html','true',[],''],
	['PAGE','173763',jdecode('Winter-Kapseln'),jdecode(''),'/173763.html','true',[],''],
	['PAGE','164501',jdecode('IQ-Weight-Management'),jdecode(''),'/164501.html','true',[],''],
	['PAGE','173701',jdecode('IQ-Activator'),jdecode(''),'/173701.html','true',[],''],
	['PAGE','176332',jdecode('IQ-Weight-Blocker'),jdecode(''),'/176332.html','true',[],''],
	['PAGE','176363',jdecode('IQ-Mental-CD'),jdecode(''),'/176363.html','true',[],''],
	['PAGE','169401',jdecode('CCA+-+OPC'),jdecode(''),'/169401.html','true',[],''],
	['PAGE','168401',jdecode('Phyto-Oil-Complex'),jdecode(''),'/168401.html','true',[],''],
	['PAGE','92605',jdecode('Magic+Sun+Br%E4unungskapseln'),jdecode(''),'/92605.html','true',[],''],
	['PAGE','158501',jdecode('A.U.A.+Kapseln'),jdecode(''),'/158501.html','true',[],''],
	['PAGE','94701',jdecode('L-Carnitin+Kapseln'),jdecode(''),'/94701.html','true',[],''],
	['PAGE','78871',jdecode('Original+Spiruletten'),jdecode(''),'/78871.html','true',[],''],
	['PAGE','99444',jdecode('Spirulina-Zink'),jdecode(''),'/99444.html','true',[],''],
	['PAGE','99475',jdecode('Spirulina-Selen'),jdecode(''),'/99475.html','true',[],''],
	['PAGE','99506',jdecode('Spirulina-+Eisen'),jdecode(''),'/99506.html','true',[],''],
	['PAGE','81302',jdecode('Royal+Spiruletten'),jdecode(''),'/81302.html','true',[],''],
	['PAGE','128101',jdecode('Eyelight+Kapseln'),jdecode(''),'/128101.html','true',[],''],
	['PAGE','112901',jdecode('Schwarzk%FCmmel%F6l-Set'),jdecode(''),'/112901.html','true',[],''],
	['PAGE','79180',jdecode('Schwarzk%FCmmel%F6lkapseln'),jdecode(''),'/79180.html','true',[],''],
	['PAGE','124301',jdecode('Schwarzk%FCmmel%F6l+Roll+On'),jdecode(''),'/124301.html','true',[],''],
	['PAGE','86202',jdecode('Woman-Aktiv+'),jdecode(''),'/86202.html','true',[],''],
	['PAGE','95301',jdecode('Sweet+Dreams+Kapseln'),jdecode(''),'/95301.html','true',[],''],
	['PAGE','95333',jdecode('Perfect-Aging+'),jdecode(''),'/95333.html','true',[],''],
	['PAGE','131001',jdecode('Gluco-Aktiv+Kapseln'),jdecode(''),'/131001.html','true',[],''],
	['PAGE','99801',jdecode('Multi+Complete+Kapseln'),jdecode(''),'/99801.html','true',[],''],
	['PAGE','99832',jdecode('+Q10+Coenzym+Kapseln'),jdecode(''),'/99832.html','true',[],''],
	['PAGE','99863',jdecode('Herz-As+'),jdecode(''),'/99863.html','true',[],''],
	['PAGE','100063',jdecode('Gluco-Energy'),jdecode(''),'/100063.html','true',[],''],
	['PAGE','100094',jdecode('Repair+Kapseln'),jdecode(''),'/100094.html','true',[],''],
	['PAGE','100156',jdecode('Lacto-Flora'),jdecode(''),'/100156.html','true',[],''],
	['PAGE','100187',jdecode('Continuum+plus'),jdecode(''),'/100187.html','true',[],''],
	['PAGE','100218',jdecode('Phytosterol-Kapseln'),jdecode(''),'/100218.html','true',[],''],
	['PAGE','100280',jdecode('Cholesterin-Balance+Kapseln'),jdecode(''),'/100280.html','true',[],''],
	['PAGE','100342',jdecode('Gastro-Vitalis'),jdecode(''),'/100342.html','true',[],''],
	['PAGE','100501',jdecode('Guarana+Plus'),jdecode(''),'/100501.html','true',[],''],
	['PAGE','129032',jdecode('Omega-3+Perilla'),jdecode(''),'/129032.html','true',[],''],
	['PAGE','67429',jdecode('Kontaktformular'),jdecode(''),'/67429/index.html','true',[ 
		['PAGE','70543',jdecode('KONTAKT+%28Folgeseite%29'),jdecode(''),'/67429/70543.html','false',[],'']
	],''],
	['PAGE','67456',jdecode('Impressum'),jdecode(''),'/67456.html','true',[],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Activate';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
