/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */
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','1111','HOME','','/1111.html','true',[],''],
	['PAGE','13303','EMAIL','','/13303.html','true',[],''],
	['PAGE','1210','KONTAKT','','/1210/index.html','true',[ 
		['PAGE','11805','KONTAKT (Folgeseite)','','/1210/11805.html','false',[],''],
		['PAGE','11621','Formular','','/1210/11621.html','true',[],''],
		['PAGE','11643','Anschrift','','/1210/11643.html','true',[],'']
	],''],
	['PAGE','1348','ÜBER MICH','','/1348.html','true',[],''],
	['PAGE','10400','.','','/10400.html','true',[],''],
	['PAGE','10559','DAS TAGEBUCH','','/10559/index.html','true',[ 
		['PAGE','11203','Vorwort','','/10559/11203.html','true',[],''],
		['PAGE','10581','Danke','','/10559/10581.html','true',[],''],
		['PAGE','10603','Die erste Untersuchung','','/10559/10603.html','true',[],''],
		['PAGE','10625','Die OP mit Diagnose','','/10559/10625.html','true',[],''],
		['PAGE','10647','CT Untersuchung','','/10559/10647.html','true',[],''],
		['PAGE','10669','weitere Untersuchungen','','/10559/10669.html','true',[],''],
		['PAGE','10691','Chemo Teil 1 (im KH)','','/10559/10691.html','true',[],''],
		['PAGE','10713','Chemo Teil 1 (zu Hause)','','/10559/10713.html','true',[],''],
		['PAGE','10735','Chemo Teil 2 (im KH)','','/10559/10735.html','true',[],''],
		['PAGE','10757','Chemo Teil 2 (zu Hause)','','/10559/10757.html','true',[],''],
		['PAGE','10779','Chemo Teil 3 (im KH)','','/10559/10779.html','true',[],''],
		['PAGE','10801','Chemo Teil 3 (zu Hause)','','/10559/10801.html','true',[],''],
		['PAGE','10823','Abschlussuntersuchung','','/10559/10823.html','true',[],''],
		['PAGE','10845','Anschlussheilbehandlung','','/10559/10845.html','true',[],''],
		['PAGE','11225','wieder zu Hause','','/10559/11225.html','true',[],''],
		['PAGE','11247','erster Arbeitseinstieg','','/10559/11247.html','true',[],''],
		['PAGE','11269','Zwangspause','','/10559/11269.html','true',[],''],
		['PAGE','11291','zweiter Arbeitseinstieg','','/10559/11291.html','true',[],''],
		['PAGE','11313','Geschafft','','/10559/11313.html','true',[],''],
		['PAGE','12103','Schlusswort','','/10559/12103.html','true',[],''],
		['PAGE','12973','.','','/10559/12973.html','true',[],'']
	],''],
	['PAGE','11335','DOWNLOAD','','/11335.html','true',[],''],
	['PAGE','1164','LINKS','','/1164.html','true',[],''],
	['PAGE','11665','IMPRESSUM','','/11665.html','true',[],''],
	['PAGE','26900','GÄSTEBUCH','','/26900.html','true',[],''],
	['PAGE','12995','.','','/12995.html','true',[],'']];


var siteelementCount=33;
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.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 */					                                                            
