/* [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.html','true',[],''],
	['PAGE','2095',jdecode('Wir+%FCber+uns'),jdecode(''),'/2095/index.html','true',[ 
		['PAGE','3095',jdecode('Firmengeschichte'),jdecode(''),'/2095/3095.html','true',[],''],
		['PAGE','4112',jdecode('Qualifikationen+'),jdecode(''),'/2095/4112.html','true',[],'']
	],''],
	['PAGE','2141',jdecode('Brandschutz'),jdecode(''),'/2141/index.html','true',[ 
		['PAGE','2118',jdecode('Gefahren+und+Sicherheitstips'),jdecode(''),'/2141/2118.html','true',[],''],
		['PAGE','4135',jdecode('Vorbeugung'),jdecode(''),'/2141/4135.html','true',[],''],
		['PAGE','5995',jdecode('Brandbek%E4mpfung'),jdecode(''),'/2141/5995.html','true',[],''],
		['PAGE','7695',jdecode('richtiges+Verhalten+im+Brandfall'),jdecode(''),'/2141/7695.html','true',[],''],
		['PAGE','4422',jdecode('Feuerl%F6schmittel+%2F+Umweltschutz'),jdecode(''),'/2141/4422.html','true',[],''],
		['PAGE','6018',jdecode('Brand-+und+Sicherheitstechnisch'),jdecode(''),'/2141/6018.html','true',[],''],
		['PAGE','6318',jdecode('Lebensdauer'),jdecode(''),'/2141/6318.html','true',[],'']
	],''],
	['PAGE','4158',jdecode('Produkte+%2F+Leistungen'),jdecode(''),'/4158/index.html','true',[ 
		['PAGE','6341',jdecode('Feuerl%F6scher-Ratgeber'),jdecode(''),'/4158/6341.html','true',[],'']
	],''],
	['PAGE','2164',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/2164/index.html','true',[ 
		['PAGE','3119',jdecode('So+finden+Sie+uns'),jdecode(''),'/2164/3119.html','true',[],''],
		['PAGE','16493',jdecode('Impressum'),jdecode(''),'/2164/16493.html','true',[],'']
	],''],
	['PAGE','17592',jdecode('G%E4stebuch'),jdecode(''),'/17592/index.html','true',[ 
		['PAGE','17593',jdecode('Eintr%E4ge'),jdecode(''),'/17592/17593.html','true',[],'']
	],'']];
var siteelementCount=19;
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 */					                                                            

