/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','30584',jdecode('Seminare%2FWorkshops'),jdecode(''),'/30584/index.html','true',[ 
		['PAGE','32605',jdecode('Basistherapien'),jdecode(''),'/30584/32605.html','true',[],''],
		['PAGE','32666',jdecode('Dorn-Therapie'),jdecode(''),'/30584/32666.html','true',[],''],
		['PAGE','31395',jdecode('Breu%DF-Massage'),jdecode(''),'/30584/31395.html','true',[],''],
		['PAGE','36760',jdecode('Schr%F6pfen'),jdecode(''),'/30584/36760.html','true',[],''],
		['PAGE','33184',jdecode('TuiNa'),jdecode(''),'/30584/33184.html','true',[],''],
		['PAGE','32484',jdecode('Fu%DFreflexzonentherapie'),jdecode(''),'/30584/32484.html','true',[],''],
		['PAGE','31426',jdecode('Aku+%2F+Medi-Taping'),jdecode(''),'/30584/31426.html','true',[],''],
		['PAGE','31364',jdecode('Gua+Sha'),jdecode(''),'/30584/31364.html','true',[],''],
		['PAGE','36184',jdecode('Ayurveda'),jdecode(''),'/30584/36184.html','true',[],'']
	],''],
	['PAGE','4709',jdecode('Praxis+K%F6ln'),jdecode(''),'/4709.html','true',[],''],
	['PAGE','34377',jdecode('Praxis+Br%FChl'),jdecode(''),'/34377.html','true',[],''],
	['PAGE','38984',jdecode('Vortr%E4ge'),jdecode(''),'/38984.html','true',[],''],
	['PAGE','4844',jdecode('Dorn+Therapie'),jdecode(''),'/4844.html','true',[],''],
	['PAGE','33484',jdecode('Kontakt'),jdecode(''),'/33484/index.html','true',[ 
		['PAGE','33545',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/33484/33545.html','false',[],'']
	],''],
	['PAGE','19279',jdecode('Anfahrt'),jdecode(''),'/19279.html','true',[],''],
	['PAGE','4736',jdecode('Links'),jdecode(''),'/4736.html','true',[],''],
	['PAGE','30495',jdecode('Impressum'),jdecode(''),'/30495.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Aeskulap';
					                                                                    
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 */					                                                            
