/* [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','1597',jdecode('Home'),jdecode(''),'/1597/index.html','true',[ 
		['PAGE','1654',jdecode('Wir+%FCber+uns'),jdecode(''),'/1597/1654.html','true',[],''],
		['PAGE','1735',jdecode('Das+Unternehmen'),jdecode(''),'/1597/1735.html','true',[],''],
		['PAGE','38349',jdecode('Aus-+und+Weiterbildung'),jdecode(''),'/1597/38349.html','true',[],'']
	],''],
	['PAGE','21703',jdecode('Impressum'),jdecode(''),'/21703.html','true',[],''],
	['PAGE','1762',jdecode('Kontakt'),jdecode(''),'/1762/index.html','true',[ 
		['PAGE','7150',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/1762/7150.html','false',[],''],
		['PAGE','1789',jdecode('Adresse%2C+Telefon'),jdecode(''),'/1762/1789.html','true',[],''],
		['PAGE','1816',jdecode('So+finden+Sie+uns'),jdecode(''),'/1762/1816.html','true',[],'']
	],''],
	['PAGE','1843',jdecode('Sortiment+und+Leistung'),jdecode(''),'/1843/index.html','true',[ 
		['PAGE','14307',jdecode('Eigene+Produktion'),jdecode(''),'/1843/14307.html','true',[],''],
		['PAGE','16448',jdecode('Unser+Service'),jdecode(''),'/1843/16448.html','true',[],''],
		['PAGE','2032',jdecode('Fenster'),jdecode(''),'/1843/2032.html','true',[],''],
		['PAGE','13203',jdecode('Haust%FCren'),jdecode(''),'/1843/13203.html','true',[],''],
		['PAGE','1978',jdecode('Innent%FCren'),jdecode(''),'/1843/1978.html','true',[],''],
		['PAGE','13230',jdecode('Rollladen'),jdecode(''),'/1843/13230.html','true',[],''],
		['PAGE','13257',jdecode('Markisen'),jdecode(''),'/1843/13257.html','true',[],''],
		['PAGE','33205',jdecode('Insektenschutz'),jdecode(''),'/1843/33205.html','true',[],''],
		['PAGE','33232',jdecode('Garagentore'),jdecode(''),'/1843/33232.html','true',[],'']
	],''],
	['PAGE','2221',jdecode('Referenzen'),jdecode(''),'/2221/index.html','true',[ 
		['PAGE','14620',jdecode('Eigen+Produkte'),jdecode(''),'/2221/14620.html','true',[],''],
		['PAGE','14647',jdecode('Haust%FCren'),jdecode(''),'/2221/14647.html','true',[],''],
		['PAGE','36761',jdecode('Fenster'),jdecode(''),'/2221/36761.html','true',[],''],
		['PAGE','29805',jdecode('Innent%FCren'),jdecode(''),'/2221/29805.html','true',[],''],
		['PAGE','29832',jdecode('Rolladen'),jdecode(''),'/2221/29832.html','true',[],'']
	],''],
	['PAGE','2248',jdecode('Partnerfirmen'),jdecode(''),'/2248/index.html','true',[ 
		['PAGE','2275',jdecode('Weru'),jdecode(''),'/2248/2275.html','true',[],''],
		['PAGE','2302',jdecode('Roma'),jdecode(''),'/2248/2302.html','true',[],''],
		['PAGE','13284',jdecode('Thermosecur'),jdecode(''),'/2248/13284.html','true',[],'']
	],''],
	['PAGE','2356',jdecode('Angebote'),jdecode(''),'/2356.html','true',[],''],
	['PAGE','2383',jdecode('Aktuelles'),jdecode(''),'/2383/index.html','true',[ 
		['PAGE','2410',jdecode('Neuigkeiten'),jdecode(''),'/2383/2410.html','true',[],''],
		['PAGE','2437',jdecode('Termine+und+Aktionen'),jdecode(''),'/2383/2437.html','true',[],'']
	],''],
	['PAGE','31805',jdecode('Links'),jdecode(''),'/31805.html','true',[],''],
	['PAGE','2719',jdecode('G%E4stebuch'),jdecode(''),'/2719/index.html','true',[ 
		['PAGE','2720',jdecode('Eintr%E4ge'),jdecode(''),'/2719/2720.html','true',[],'']
	],''],
	['PAGE','35005',jdecode('Wetter'),jdecode(''),'/35005.html','true',[],''],
	['PAGE','35041',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/35041.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Arena';
					                                                                    
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 */					                                                            
