/* [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','4481',jdecode('Startseite'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','13739',jdecode('Kontakt%2F+Impressum'),jdecode(''),'/13739.html','true',[],''],
	['PAGE','13712',jdecode('Diagnose'),jdecode(''),'/13712/index.html','true',[ 
		['PAGE','17576',jdecode('Schimmel'),jdecode(''),'/13712/17576.html','true',[],''],
		['PAGE','19101',jdecode('Insekten+und+Pilze'),jdecode(''),'/13712/19101.html','true',[],''],
		['PAGE','17607',jdecode('Thermografie'),jdecode(''),'/13712/17607.html','true',[],''],
		['PAGE','17638',jdecode('Differenzdruxkmesssung%2F+bloer+door+Test'),jdecode(''),'/13712/17638.html','true',[],''],
		['PAGE','17669',jdecode('Leckageortung'),jdecode(''),'/13712/17669.html','true',[],''],
		['PAGE','17876',jdecode('Energieberatung'),jdecode(''),'/13712/17876.html','true',[],''],
		['PAGE','19163',jdecode('Immobilienckeck'),jdecode(''),'/13712/19163.html','true',[],'']
	],''],
	['PAGE','17837',jdecode('Sanierungen'),jdecode(''),'/17837/index.html','true',[ 
		['PAGE','13658',jdecode('technische+Trocknung'),jdecode(''),'/17837/13658.html','true',[],''],
		['PAGE','17731',jdecode('mikrobieller+Befall+%2F+Schimmel+%26+co.'),jdecode(''),'/17837/17731.html','true',[],''],
		['PAGE','17806',jdecode('Geruchsbeseitigung'),jdecode(''),'/17837/17806.html','true',[],''],
		['PAGE','19132',jdecode('Insekten+%26+Pilze'),jdecode(''),'/17837/19132.html','true',[],'']
	],''],
	['PAGE','13685',jdecode('Informationen'),jdecode(''),'/13685/index.html','true',[ 
		['PAGE','17700',jdecode('Baubiologie'),jdecode(''),'/13685/17700.html','true',[],''],
		['PAGE','17959',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/13685/17959.html','true',[],''],
		['PAGE','18902',jdecode('Wetter'),jdecode(''),'/13685/18902.html','true',[],''],
		['PAGE','20601',jdecode('PCP'),jdecode(''),'/13685/20601.html','true',[],''],
		['PAGE','21101',jdecode('Asbest'),jdecode(''),'/13685/21101.html','true',[],'']
	],''],
	['PAGE','13631',jdecode('Qualifikation'),jdecode(''),'/13631.html','true',[],''],
	['PAGE','18397',jdecode('Sanierungsbeispiele'),jdecode(''),'/18397/index.html','true',[ 
		['PAGE','4655',jdecode('Sanierung+Schwimmbad'),jdecode(''),'/18397/4655.html','true',[],''],
		['PAGE','18293',jdecode('Dachstuhl+Neubau'),jdecode(''),'/18397/18293.html','true',[],''],
		['PAGE','18328',jdecode('Sanierung+F%E4kalienschaden'),jdecode(''),'/18397/18328.html','true',[],''],
		['PAGE','18363',jdecode('Sanierung+von+Hochwassersch%E4den'),jdecode(''),'/18397/18363.html','true',[],''],
		['PAGE','18533',jdecode('OSB+Platten+und+Dachstuhl+verschimmelt'),jdecode(''),'/18397/18533.html','true',[],'']
	],''],
	['PAGE','20201',jdecode('Holzschutz'),jdecode(''),'/20201/index.html','true',[ 
		['PAGE','20301',jdecode('Holzw%FCrmer'),jdecode(''),'/20201/20301.html','true',[],''],
		['PAGE','20701',jdecode('Hausbock'),jdecode(''),'/20201/20701.html','true',[],'']
	],''],
	['PAGE','21001',jdecode('Links'),jdecode(''),'/21001.html','true',[],''],
	['PAGE','21802',jdecode('Anfahrt'),jdecode(''),'/21802.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
