/* [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','1112',jdecode('Startseite'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','2618',jdecode('Unsere+Leisungen'),jdecode(''),'/2618/index.html','true',[ 
		['PAGE','7638',jdecode('%C4sthetische+Behandlungen'),jdecode(''),'/2618/7638.html','true',[],''],
		['PAGE','13703',jdecode('Implantate+-+Feste+Z%E4hne'),jdecode(''),'/2618/13703.html','true',[],''],
		['PAGE','24667',jdecode('Inlays+%26+Kronen+mit+CEREC'),jdecode(''),'/2618/24667.html','true',[],''],
		['PAGE','67426',jdecode('Laser+'),jdecode(''),'/2618/67426.html','true',[],''],
		['PAGE','67475',jdecode('Prophylaxe+'),jdecode(''),'/2618/67475.html','true',[],''],
		['PAGE','80073',jdecode('Mundgeruch-Sprechstunde'),jdecode(''),'/2618/80073.html','true',[],''],
		['PAGE','79706',jdecode('Sanfte+Parodontitistherapie'),jdecode(''),'/2618/79706.html','true',[],''],
		['PAGE','80042',jdecode('Ambulante+Operationen'),jdecode(''),'/2618/80042.html','true',[],'']
	],''],
	['PAGE','79137',jdecode('Interdisziplin%E4re+Cooperationen'),jdecode(''),'/79137.html','true',[],''],
	['PAGE','79306',jdecode('F%FCr+Zahn%E4rzte'),jdecode(''),'/79306.html','true',[],''],
	['PAGE','2825',jdecode('%DCber+uns'),jdecode(''),'/2825/index.html','true',[ 
		['PAGE','2802',jdecode('Die+Zahn%E4rzte'),jdecode(''),'/2825/2802.html','true',[],''],
		['PAGE','65726',jdecode('Die+Assistentinnen'),jdecode(''),'/2825/65726.html','true',[],''],
		['PAGE','2595',jdecode('Sprechzeiten'),jdecode(''),'/2825/2595.html','true',[],''],
		['PAGE','65326',jdecode('Praxis-Ferien'),jdecode(''),'/2825/65326.html','true',[],''],
		['PAGE','66026',jdecode('Kindergartenbetreuung'),jdecode(''),'/2825/66026.html','true',[],''],
		['PAGE','65426',jdecode('Notdienst'),jdecode(''),'/2825/65426.html','true',[],''],
		['PAGE','66926',jdecode('Stellenangebote'),jdecode(''),'/2825/66926.html','true',[],'']
	],''],
	['PAGE','3218',jdecode('Kontakt'),jdecode(''),'/3218.html','true',[],''],
	['PAGE','65126',jdecode('Anfahrt'),jdecode(''),'/65126.html','true',[],''],
	['PAGE','46926',jdecode('Impressum'),jdecode(''),'/46926.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            

