/* [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','4466',jdecode('HOME+Therapieformen'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','41976',jdecode('Klienten-Information'),jdecode(''),'/41976.html','true',[],''],
	['PAGE','96801',jdecode('%22Selbst-Management%22'),jdecode(''),'/96801.html','true',[],''],
	['PAGE','4763',jdecode('HYPNOSE'),jdecode(''),'/4763/index.html','true',[ 
		['PAGE','27201',jdecode('Hypnoseformeln'),jdecode(''),'/4763/27201.html','true',[],''],
		['PAGE','41301',jdecode('INNENWELTEN-Trance'),jdecode(''),'/4763/41301.html','true',[],''],
		['PAGE','57301',jdecode('Hypnose-Glossar'),jdecode(''),'/4763/57301.html','true',[],'']
	],''],
	['PAGE','39201',jdecode('HYPNOSE%3A+Nikotinfrei'),jdecode(''),'/39201.html','true',[],''],
	['PAGE','39232',jdecode('HYPNOSE%3A+Schlank'),jdecode(''),'/39232.html','true',[],''],
	['PAGE','41332',jdecode('HYPNOSE%3A+Stressfrei'),jdecode(''),'/41332.html','true',[],''],
	['PAGE','50401',jdecode('Therapiemethoden'),jdecode(''),'/50401/index.html','true',[ 
		['PAGE','4701',jdecode('Verhaltenstherapie'),jdecode(''),'/50401/4701.html','true',[],''],
		['PAGE','4601',jdecode('Tiefenpsychologie'),jdecode(''),'/50401/4601.html','true',[],''],
		['PAGE','7926',jdecode('Focusing-Therapie'),jdecode(''),'/50401/7926.html','true',[],''],
		['PAGE','7957',jdecode('Katathyme+Therapie'),jdecode(''),'/50401/7957.html','true',[],''],
		['PAGE','8050',jdecode('Gestalttherapie'),jdecode(''),'/50401/8050.html','true',[],''],
		['PAGE','12801',jdecode('NLP+-+alle+Sinne+'),jdecode(''),'/50401/12801.html','true',[],''],
		['PAGE','4901',jdecode('EMDR'),jdecode(''),'/50401/4901.html','true',[],''],
		['PAGE','49701',jdecode('Transpersonale+Th.'),jdecode(''),'/50401/49701.html','true',[],''],
		['PAGE','49732',jdecode('Transaktionsanalyse'),jdecode(''),'/50401/49732.html','true',[],'']
	],''],
	['PAGE','4732',jdecode('Gespr%E4chstherapie'),jdecode(''),'/4732.html','true',[],''],
	['PAGE','55901',jdecode('Paarberatung%2F-therapie'),jdecode(''),'/55901/index.html','true',[ 
		['PAGE','42501',jdecode('%28Paar-%29Geschichten'),jdecode(''),'/55901/42501.html','true',[],''],
		['PAGE','97301',jdecode('Partner-Vereinbarung'),jdecode(''),'/55901/97301.html','true',[],'']
	],''],
	['PAGE','4794',jdecode('Syst.-L%F6sungsorient.+B.'),jdecode(''),'/4794.html','true',[],''],
	['PAGE','95033',jdecode('Psychodrama'),jdecode(''),'/95033.html','true',[],''],
	['PAGE','7988',jdecode('Entspannungstechniken'),jdecode(''),'/7988.html','true',[],''],
	['PAGE','48101',jdecode('Weitere+Methoden'),jdecode(''),'/48101.html','true',[],''],
	['PAGE','8019',jdecode('Bachbl%FCten-Therapie'),jdecode(''),'/8019.html','true',[],'']];
var siteelementCount=29;
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 */					                                                            
