/* [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','1153',jdecode('Home'),jdecode(''),'/1153/index.html','true',[ 
		['PAGE','213503',jdecode('%DCber+mich'),jdecode(''),'/1153/213503.html','true',[],''],
		['PAGE','14803',jdecode('Impressum'),jdecode(''),'/1153/14803.html','true',[],''],
		['PAGE','20414',jdecode('Kontaktaufnahme'),jdecode(''),'/1153/20414/index.html','true',[ 
			['PAGE','21102',jdecode('Kontaktaufnahme+%28Folgeseite%29'),jdecode(''),'/1153/20414/21102.html','false',[],'']
		],'']
	],''],
	['PAGE','217468',jdecode('101-Kurs+'),jdecode(''),'/217468/index.html','true',[ 
		['PAGE','217739',jdecode('Seminarleitfaden'),jdecode(''),'/217468/217739.html','true',[],'']
	],''],
	['PAGE','2195',jdecode('Fortbildung+TA'),jdecode(''),'/2195/index.html','true',[ 
		['PAGE','223301',jdecode('Termine+2009'),jdecode(''),'/2195/223301.html','true',[],''],
		['PAGE','224752',jdecode('Herbstseminar+in+Rendsburg'),jdecode(''),'/2195/224752.html','true',[],'']
	],''],
	['PAGE','2218',jdecode('Supervision'),jdecode(''),'/2218/index.html','true',[ 
		['PAGE','215011',jdecode('Termine'),jdecode(''),'/2218/215011.html','true',[],'']
	],''],
	['PAGE','215413',jdecode('Therapie+am+Wochenende'),jdecode(''),'/215413.html','true',[],''],
	['PAGE','224501',jdecode('TA-KollegInnen'),jdecode(''),'/224501.html','true',[],''],
	['PAGE','4995',jdecode('WHV-TA-Netzwerk'),jdecode(''),'/4995/index.html','true',[ 
		['PAGE','3218',jdecode('Anmeldung'),jdecode(''),'/4995/3218.html','false',[],'']
	],''],
	['PAGE','3398',jdecode('Links'),jdecode(''),'/3398/index.html','true',[ 
		['PAGE','224201',jdecode('Christa+Krzysteczko'),jdecode(''),'/3398/224201.html','true',[],''],
		['PAGE','216632',jdecode('Ferienwohnungen'),jdecode(''),'/3398/216632.html','true',[],'']
	],''],
	['PAGE','223807',jdecode('Literatur'),jdecode(''),'/223807/index.html','true',[ 
		['PAGE','224025',jdecode('Buch+des+Monats'),jdecode(''),'/223807/224025.html','true',[],''],
		['PAGE','11403',jdecode('Literatur+Gestalttherapie'),jdecode(''),'/223807/11403.html','true',[],''],
		['PAGE','12303',jdecode('Bild+1'),jdecode(''),'/223807/12303.html','true',[],''],
		['PAGE','12330',jdecode('Bild+2'),jdecode(''),'/223807/12330.html','true',[],''],
		['PAGE','12357',jdecode('Bild+3'),jdecode(''),'/223807/12357.html','true',[],''],
		['PAGE','12384',jdecode('Bild+4'),jdecode(''),'/223807/12384.html','true',[],''],
		['PAGE','12411',jdecode('Bild+5'),jdecode(''),'/223807/12411.html','true',[],''],
		['PAGE','13113',jdecode('Bild+6'),jdecode(''),'/223807/13113.html','true',[],''],
		['PAGE','13140',jdecode('Bild+7'),jdecode(''),'/223807/13140.html','true',[],''],
		['PAGE','13167',jdecode('Bild+8'),jdecode(''),'/223807/13167.html','true',[],''],
		['PAGE','13194',jdecode('Bild+9'),jdecode(''),'/223807/13194.html','true',[],''],
		['PAGE','210030',jdecode('Literatur+Psychodrama'),jdecode(''),'/223807/210030.html','true',[],'']
	],''],
	['PAGE','14402',jdecode('Anfahrt'),jdecode(''),'/14402.html','true',[],''],
	['PAGE','223602',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/223602.html','true',[],''],
	['PAGE','212602',jdecode('G%E4stebuch'),jdecode(''),'/212602/index.html','true',[ 
		['PAGE','212603',jdecode('Eintr%E4ge'),jdecode(''),'/212602/212603.html','true',[],'']
	],''],
	['PAGE','212864',jdecode('Anmeldung'),jdecode(''),'/212864.html','true',[],''],
	['PAGE','223632',jdecode('Familie+und+Gesellschaft'),jdecode(''),'/223632.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
