/* [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','4519',jdecode('Home'),jdecode(''),'/4519.html','true',[],''],
	['PAGE','4576',jdecode('Wir+%FCber+uns'),jdecode(''),'/4576/index.html','true',[ 
		['PAGE','4603',jdecode('Unternehmen'),jdecode(''),'/4576/4603.html','true',[],''],
		['PAGE','4630',jdecode('Philosophie'),jdecode(''),'/4576/4630.html','true',[],''],
		['PAGE','4657',jdecode('Management'),jdecode(''),'/4576/4657.html','true',[],'']
	],''],
	['PAGE','20965',jdecode('Messebau+'),jdecode(''),'/20965/index.html','true',[ 
		['PAGE','33102',jdecode('Stahlbau'),jdecode(''),'/20965/33102.html','true',[],''],
		['PAGE','33129',jdecode('Glasbau'),jdecode(''),'/20965/33129.html','true',[],''],
		['PAGE','33156',jdecode('Metallbau'),jdecode(''),'/20965/33156.html','true',[],'']
	],''],
	['PAGE','4684',jdecode('Treppen+und+Randprofile'),jdecode(''),'/4684/index.html','true',[ 
		['PAGE','4711',jdecode('Tragwerke'),jdecode(''),'/4684/4711.html','true',[],''],
		['PAGE','4738',jdecode('Stufen'),jdecode(''),'/4684/4738.html','true',[],''],
		['PAGE','4765',jdecode('Gel%E4nder'),jdecode(''),'/4684/4765.html','true',[],''],
		['PAGE','41341',jdecode('Randprofile'),jdecode(''),'/4684/41341.html','true',[],'']
	],''],
	['PAGE','31905',jdecode('Balkone+und+Terrassen'),jdecode(''),'/31905/index.html','true',[ 
		['PAGE','33183',jdecode('Tragwerke'),jdecode(''),'/31905/33183.html','true',[],''],
		['PAGE','33210',jdecode('Belag'),jdecode(''),'/31905/33210.html','true',[],''],
		['PAGE','33237',jdecode('Gel%E4nder'),jdecode(''),'/31905/33237.html','true',[],''],
		['PAGE','40241',jdecode('Sanierung'),jdecode(''),'/31905/40241.html','true',[],''],
		['PAGE','42341',jdecode('Finanzierung'),jdecode(''),'/31905/42341.html','true',[],'']
	],''],
	['PAGE','4792',jdecode('Gel%E4nder+und+Handl%E4ufe'),jdecode(''),'/4792/index.html','true',[ 
		['PAGE','33264',jdecode('Glasgel%E4nder'),jdecode(''),'/4792/33264.html','true',[],''],
		['PAGE','33291',jdecode('Edelstahlgel%E4nder'),jdecode(''),'/4792/33291.html','true',[],''],
		['PAGE','33318',jdecode('Fotos'),jdecode(''),'/4792/33318.html','true',[],'']
	],''],
	['PAGE','37641',jdecode('Flucht-+und+Rettungswege'),jdecode(''),'/37641/index.html','true',[ 
		['PAGE','37668',jdecode('Fluchttreppen'),jdecode(''),'/37641/37668.html','true',[],''],
		['PAGE','37695',jdecode('Fluchtbalkone'),jdecode(''),'/37641/37695.html','true',[],''],
		['PAGE','37722',jdecode('Wartungsstege'),jdecode(''),'/37641/37722.html','true',[],'']
	],''],
	['PAGE','48372',jdecode('Sonstiges'),jdecode(''),'/48372/index.html','true',[ 
		['PAGE','44541',jdecode('Tore+Z%E4une'),jdecode(''),'/48372/44541.html','true',[],''],
		['PAGE','49263',jdecode('Taubenschutz'),jdecode(''),'/48372/49263.html','true',[],'']
	],''],
	['PAGE','4819',jdecode('Aktuelles'),jdecode(''),'/4819/index.html','true',[ 
		['PAGE','36402',jdecode('Umfrage'),jdecode(''),'/4819/36402.html','true',[],''],
		['PAGE','4846',jdecode('Neuigkeiten'),jdecode(''),'/4819/4846.html','true',[],''],
		['PAGE','4873',jdecode('Termine'),jdecode(''),'/4819/4873.html','true',[],''],
		['PAGE','4900',jdecode('Referenzen'),jdecode(''),'/4819/4900.html','true',[],'']
	],''],
	['PAGE','4927',jdecode('Fotos'),jdecode(''),'/4927.html','true',[],''],
	['PAGE','4954',jdecode('Kontakt+Impressum'),jdecode(''),'/4954/index.html','true',[ 
		['PAGE','66869',jdecode('Kontakt+Impressum+%28Folgeseite%29'),jdecode(''),'/4954/66869.html','false',[],''],
		['PAGE','4981',jdecode('Adresse%2C+Telefon'),jdecode(''),'/4954/4981.html','true',[],''],
		['PAGE','5008',jdecode('E-Mail+Adressen'),jdecode(''),'/4954/5008.html','true',[],'']
	],''],
	['PAGE','5035',jdecode('Informationen'),jdecode(''),'/5035/index.html','true',[ 
		['PAGE','20702',jdecode('Vorschriften'),jdecode(''),'/5035/20702.html','true',[],''],
		['PAGE','36941',jdecode('AGB%60s'),jdecode(''),'/5035/36941.html','true',[],''],
		['PAGE','20729',jdecode('Dxf-Files'),jdecode(''),'/5035/20729.html','true',[],'']
	],''],
	['PAGE','36641',jdecode('Eildienste'),jdecode(''),'/36641.html','true',[],''],
	['PAGE','42541',jdecode('Standort%3A+Rhein-+Ruhr'),jdecode(''),'/42541.html','true',[],''],
	['PAGE','49425',jdecode('Jobs'),jdecode(''),'/49425.html','true',[],''],
	['PAGE','57841',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/57841.html','true',[],''],
	['PAGE','62541',jdecode('Fotos+Treppen'),jdecode(''),'/62541.html','true',[],''],
	['PAGE','63241',jdecode('Fotos+Gel%E4nder'),jdecode(''),'/63241.html','true',[],''],
	['PAGE','64741',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/64741.html','true',[],''],
	['PAGE','65040',jdecode('Kooperationen'),jdecode(''),'/65040.html','true',[],''],
	['PAGE','65577',jdecode('Sonderkonstruktionen'),jdecode(''),'/65577.html','true',[],'']];
var siteelementCount=54;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
