/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','4612',jdecode('Zur+Praxis'),jdecode(''),'/4612/index.html','true',[ 
		['PAGE','45903',jdecode('Zur+Person'),jdecode(''),'/4612/45903.html','true',[],''],
		['PAGE','49603',jdecode('Leistungen'),jdecode(''),'/4612/49603.html','true',[],''],
		['PAGE','4639',jdecode('Sprechzeiten+'),jdecode(''),'/4612/4639.html','true',[],''],
		['PAGE','113805',jdecode('Anfahrt'),jdecode(''),'/4612/113805.html','true',[],'']
	],''],
	['PAGE','111907',jdecode('Die+Behandlung'),jdecode(''),'/111907/index.html','true',[ 
		['PAGE','112001',jdecode('Behandlung+Pferd'),jdecode(''),'/111907/112001.html','true',[],''],
		['PAGE','112032',jdecode('Behandlung+Kleintier'),jdecode(''),'/111907/112032.html','true',[],'']
	],''],
	['PAGE','203301',jdecode('%22Vorsorge-Check-up%22'),jdecode(''),'/203301.html','true',[],''],
	['PAGE','4666',jdecode('Chiropraktik'),jdecode(''),'/4666/index.html','true',[ 
		['PAGE','40009',jdecode('Die+Blockierung'),jdecode(''),'/4666/40009.html','true',[],''],
		['PAGE','4720',jdecode('Behandlungsprinzip'),jdecode(''),'/4666/4720.html','true',[],'']
	],''],
	['PAGE','111701',jdecode('Physiotherapie'),jdecode(''),'/111701/index.html','true',[ 
		['PAGE','111732',jdecode('Bewegungstherapie'),jdecode(''),'/111701/111732.html','true',[],''],
		['PAGE','111763',jdecode('Unterwasserlaufband'),jdecode(''),'/111701/111763.html','true',[],''],
		['PAGE','111794',jdecode('TENS'),jdecode(''),'/111701/111794.html','true',[],''],
		['PAGE','111825',jdecode('Massage'),jdecode(''),'/111701/111825.html','true',[],''],
		['PAGE','111856',jdecode('K%E4lte-+%2F+W%E4rmetherapie'),jdecode(''),'/111701/111856.html','true',[],'']
	],''],
	['PAGE','4693',jdecode('Einsatzgebiete'),jdecode(''),'/4693/index.html','true',[ 
		['PAGE','212676',jdecode('Pferd'),jdecode(''),'/4693/212676.html','true',[],''],
		['PAGE','212707',jdecode('Hund%2C+Katze'),jdecode(''),'/4693/212707.html','true',[],'']
	],''],
	['PAGE','42455',jdecode('Anfragen+%2F+Kontakt'),jdecode(''),'/42455/index.html','true',[ 
		['PAGE','114155',jdecode('Anfragen+%2F+Feedback+%28Folgeseite%29'),jdecode(''),'/42455/114155.html','false',[],'']
	],''],
	['PAGE','110672',jdecode('Impressum'),jdecode(''),'/110672.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            

