/* [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','1112',jdecode('Home'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','66912',jdecode('%2B%2B%2B+NEWS+%2B%2B%2B'),jdecode(''),'/66912.html','true',[],''],
	['PAGE','8399',jdecode('Das+Unternehmen'),jdecode(''),'/8399.html','true',[],''],
	['PAGE','64612',jdecode('Kreativit%E4t+managen'),jdecode(''),'/64612/index.html','true',[ 
		['PAGE','8453',jdecode('Die+Philosophie'),jdecode(''),'/64612/8453.html','true',[],'']
	],''],
	['PAGE','32143',jdecode('Leistungen%3A+Orga+%2B+Prozesse'),jdecode(''),'/32143/index.html','true',[ 
		['PAGE','47341',jdecode('QM-+und+Prozessmgmt'),jdecode(''),'/32143/47341.html','true',[],''],
		['PAGE','8999',jdecode('Ver%E4nderungsmgmt'),jdecode(''),'/32143/8999.html','true',[],''],
		['PAGE','47372',jdecode('Projektmgmt'),jdecode(''),'/32143/47372.html','true',[],''],
		['PAGE','47403',jdecode('Veranstaltungsmgmt'),jdecode(''),'/32143/47403.html','true',[],'']
	],''],
	['PAGE','47003',jdecode('Energieeffiziente+Mobilit%E4t'),jdecode(''),'/47003/index.html','true',[ 
		['PAGE','65812',jdecode('Studie+E-Mobilit%E4t+2008'),jdecode(''),'/47003/65812.html','true',[],''],
		['PAGE','46941',jdecode('Clean+Moves+2007'),jdecode(''),'/47003/46941.html','true',[],''],
		['PAGE','46972',jdecode('Clean+Moves+2006'),jdecode(''),'/47003/46972.html','true',[],''],
		['PAGE','1165',jdecode('NewMobility+Forum+2002'),jdecode(''),'/47003/1165.html','true',[],'']
	],''],
	['PAGE','64212',jdecode('Planungsleistungen'),jdecode(''),'/64212/index.html','true',[ 
		['PAGE','64795',jdecode('Visualisierungsbeispiele'),jdecode(''),'/64212/64795.html','true',[],''],
		['PAGE','64243',jdecode('Kurortplanung'),jdecode(''),'/64212/64243.html','true',[],''],
		['PAGE','64305',jdecode('Parkverwaltung'),jdecode(''),'/64212/64305.html','true',[],''],
		['PAGE','64274',jdecode('Objektberatung'),jdecode(''),'/64212/64274.html','true',[],'']
	],''],
	['PAGE','9026',jdecode('Referenzen'),jdecode(''),'/9026/index.html','true',[ 
		['PAGE','47611',jdecode('QM-+und+Prozessmgmt'),jdecode(''),'/9026/47611.html','true',[],''],
		['PAGE','47673',jdecode('Ver%E4nderungsmgmt'),jdecode(''),'/9026/47673.html','true',[],''],
		['PAGE','47704',jdecode('Projektmgmt'),jdecode(''),'/9026/47704.html','true',[],''],
		['PAGE','47642',jdecode('Veranstaltungsmgmt'),jdecode(''),'/9026/47642.html','true',[],'']
	],''],
	['PAGE','44041',jdecode('Kooperationspartner'),jdecode(''),'/44041.html','true',[],''],
	['PAGE','10650',jdecode('Soziale+Verantwortung'),jdecode(''),'/10650/index.html','true',[ 
		['PAGE','43855',jdecode('Energiemanagement'),jdecode(''),'/10650/43855.html','true',[],''],
		['PAGE','12208',jdecode('Energie+f%FCr+Frieden'),jdecode(''),'/10650/12208.html','true',[],''],
		['PAGE','43886',jdecode('Ethische+Verantwortung'),jdecode(''),'/10650/43886.html','true',[],''],
		['PAGE','19698',jdecode('NLB+-+Impressionen'),jdecode(''),'/10650/19698.html','true',[],'']
	],''],
	['PAGE','63423',jdecode('Presseberichte'),jdecode(''),'/63423.html','true',[],''],
	['PAGE','34641',jdecode('Impressum'),jdecode(''),'/34641.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            

