/* [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','4598',jdecode('Home'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','21145',jdecode('Home+%28Folgeseite%29'),jdecode(''),'/4598/21145.html','false',[],'']
	],''],
	['PAGE','5403',jdecode('Rohrreinigung'),jdecode(''),'/5403/index.html','true',[ 
		['PAGE','5430',jdecode('TV+Untersuchung'),jdecode(''),'/5403/5430.html','true',[],''],
		['PAGE','5457',jdecode('Wurzelfr%E4sen'),jdecode(''),'/5403/5457.html','true',[],''],
		['PAGE','5484',jdecode('Rohrortung'),jdecode(''),'/5403/5484.html','true',[],''],
		['PAGE','5511',jdecode('Hochdrucksp%FClung'),jdecode(''),'/5403/5511.html','true',[],''],
		['PAGE','5538',jdecode('Notdienst'),jdecode(''),'/5403/5538.html','true',[],'']
	],''],
	['PAGE','5565',jdecode('Kanal+Sanierung'),jdecode(''),'/5565/index.html','true',[ 
		['PAGE','5592',jdecode('Kurzliner'),jdecode(''),'/5565/5592.html','true',[],''],
		['PAGE','5619',jdecode('Rohr+in+Rohr+Verfahren'),jdecode(''),'/5565/5619.html','true',[],''],
		['PAGE','5646',jdecode('Langliner%2C+Inliner'),jdecode(''),'/5565/5646.html','true',[],''],
		['PAGE','5673',jdecode('Rohrbruchreparaturen'),jdecode(''),'/5565/5673.html','true',[],'']
	],''],
	['PAGE','5700',jdecode('Technische+Trocknung'),jdecode(''),'/5700/index.html','true',[ 
		['PAGE','5727',jdecode('Neubautrocknung'),jdecode(''),'/5700/5727.html','true',[],''],
		['PAGE','5754',jdecode('Notdienst'),jdecode(''),'/5700/5754.html','true',[],''],
		['PAGE','5781',jdecode('Wasserschadenbeseitigung'),jdecode(''),'/5700/5781.html','true',[],''],
		['PAGE','5808',jdecode('Rohrbruch+Austrocknen'),jdecode(''),'/5700/5808.html','true',[],''],
		['PAGE','5835',jdecode('D%E4mmschicht+Trocknung'),jdecode(''),'/5700/5835.html','true',[],''],
		['PAGE','5862',jdecode('Hohlraumtrocknung'),jdecode(''),'/5700/5862.html','true',[],'']
	],''],
	['PAGE','5889',jdecode('Kanalreparaturen'),jdecode(''),'/5889/index.html','true',[ 
		['PAGE','5916',jdecode('Grundleitungreparaturen'),jdecode(''),'/5889/5916.html','true',[],''],
		['PAGE','5943',jdecode('Sch%E4chte'),jdecode(''),'/5889/5943.html','true',[],''],
		['PAGE','5970',jdecode('Pflaster'),jdecode(''),'/5889/5970.html','true',[],''],
		['PAGE','5997',jdecode('Zisternen+Einbau'),jdecode(''),'/5889/5997.html','true',[],''],
		['PAGE','6024',jdecode('Regenrohre'),jdecode(''),'/5889/6024.html','true',[],''],
		['PAGE','6051',jdecode('Bauwerksabdichtungen'),jdecode(''),'/5889/6051.html','true',[],'']
	],''],
	['PAGE','6078',jdecode('KESSEL++Kundendienst'),jdecode(''),'/6078/index.html','true',[ 
		['PAGE','6105',jdecode('R%FCckstauverschl%FCsse'),jdecode(''),'/6078/6105.html','true',[],''],
		['PAGE','6132',jdecode('RS+-+Sch%E4chte'),jdecode(''),'/6078/6132.html','true',[],''],
		['PAGE','6159',jdecode('Zisternen'),jdecode(''),'/6078/6159.html','true',[],''],
		['PAGE','6186',jdecode('Bodenabl%E4ufe'),jdecode(''),'/6078/6186.html','true',[],''],
		['PAGE','6213',jdecode('Hebeanlagen+und+Pumpen'),jdecode(''),'/6078/6213.html','true',[],''],
		['PAGE','6240',jdecode('Fettabscheider'),jdecode(''),'/6078/6240.html','true',[],''],
		['PAGE','6267',jdecode('Wasser+im+Keller'),jdecode(''),'/6078/6267.html','true',[],''],
		['PAGE','6294',jdecode('Staurohr+DN+50+++bl'),jdecode(''),'/6078/6294.html','true',[],'']
	],''],
	['PAGE','6321',jdecode('Dichtigkeitspr%FCfungen'),jdecode(''),'/6321.html','true',[],''],
	['PAGE','6348',jdecode('Impressum'),jdecode(''),'/6348.html','true',[],''],
	['PAGE','22781',jdecode('Referenzen'),jdecode(''),'/22781.html','true',[],''],
	['PAGE','22902',jdecode('Wetter'),jdecode(''),'/22902.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Amaze';
					                                                                    
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 */					                                                            

