/* [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('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','23201',jdecode('Produkte%26L%F6sungen'),jdecode(''),'/23201/index.html','true',[ 
		['PAGE','24101',jdecode('Engineering'),jdecode(''),'/23201/24101.html','true',[],''],
		['PAGE','24194',jdecode('Softwareleistungen'),jdecode(''),'/23201/24194.html','true',[],''],
		['PAGE','24132',jdecode('Schaltanlagenbau'),jdecode(''),'/23201/24132.html','true',[],''],
		['PAGE','24163',jdecode('Montage%26Service'),jdecode(''),'/23201/24163.html','true',[],''],
		['PAGE','25088',jdecode('Schulungen'),jdecode(''),'/23201/25088.html','true',[],''],
		['PAGE','24225',jdecode('Referenzen'),jdecode(''),'/23201/24225.html','true',[],'']
	],''],
	['PAGE','13650',jdecode('Wir+%FCber+uns'),jdecode(''),'/13650/index.html','true',[ 
		['PAGE','23427',jdecode('Telefonregister'),jdecode(''),'/13650/23427.html','true',[],''],
		['PAGE','23458',jdecode('Adresse'),jdecode(''),'/13650/23458.html','true',[],''],
		['PAGE','24853',jdecode('Anfahrt'),jdecode(''),'/13650/24853.html','true',[],''],
		['PAGE','26502',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/13650/26502.html','true',[],'']
	],''],
	['PAGE','25406',jdecode('Impressum'),jdecode(''),'/25406.html','true',[],''],
	['PAGE','4655',jdecode('Bilder-Galerie'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','24541',jdecode('PWL_Schaltanlagen'),jdecode(''),'/4655/24541.html','true',[],''],
		['PAGE','25139',jdecode('PWL_Planung'),jdecode(''),'/4655/25139.html','true',[],''],
		['PAGE','25203',jdecode('PWL_Anlagen'),jdecode(''),'/4655/25203.html','true',[],'']
	],''],
	['PAGE','13677',jdecode('Kontakt'),jdecode(''),'/13677/index.html','true',[ 
		['PAGE','24702',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13677/24702.html','false',[],'']
	],''],
	['PAGE','13704',jdecode('Links'),jdecode(''),'/13704/index.html','true',[ 
		['PAGE','25278',jdecode('Sprachkalender'),jdecode(''),'/13704/25278.html','true',[],''],
		['PAGE','25314',jdecode('Termine'),jdecode(''),'/13704/25314.html','true',[],''],
		['PAGE','25350',jdecode('Wetter'),jdecode(''),'/13704/25350.html','true',[],'']
	],''],
	['PAGE','25701',jdecode('PWL+intern'),jdecode(''),'/25701/index.html','true',[ 
		['PAGE','25732',jdecode('Download_PWL'),jdecode(''),'/25701/25732.html','true',[],''],
		['PAGE','26402',jdecode('DOKU-Archiv'),jdecode(''),'/25701/26402.html','true',[],''],
		['PAGE','24953',jdecode('G%E4stebuch%2FForum'),jdecode(''),'/25701/24953.html','true',[],''],
		['PAGE','24954',jdecode('G%E4stebucheintr%E4ge'),jdecode(''),'/25701/24954.html','true',[],''],
		['PAGE','29429',jdecode('SATIPEL'),jdecode(''),'/25701/29429.html','true',[],'']
	],''],
	['PAGE','27325',jdecode('Downloads'),jdecode(''),'/27325.html','true',[],''],
	['PAGE','27825',jdecode('Praesentation'),jdecode(''),'/27825.html','true',[],''],
	['PAGE','31841',jdecode('Stellenangebote'),jdecode(''),'/31841.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            

