/* [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','4520',jdecode('Startseite'),jdecode(''),'/4520.html','true',[],''],
	['PAGE','57011',jdecode('Aktuell'),jdecode(''),'/57011.html','true',[],''],
	['PAGE','31503',jdecode('Stadtentwicklung'),jdecode(''),'/31503/index.html','true',[ 
		['PAGE','5203',jdecode('Ziele+'),jdecode(''),'/31503/5203.html','true',[],''],
		['PAGE','34887',jdecode('Ping-Pong+Konzept'),jdecode(''),'/31503/34887.html','true',[],''],
		['PAGE','30003',jdecode('5+Phasenmodell'),jdecode(''),'/31503/30003.html','true',[],''],
		['PAGE','32003',jdecode('Management'),jdecode(''),'/31503/32003/index.html','true',[ 
			['PAGE','38929',jdecode('12+Grundprinzipien+%28Folgeseite%29'),jdecode(''),'/31503/32003/38929.html','false',[],'']
		],''],
		['PAGE','21663',jdecode('Fragen+zur+Methodik'),jdecode(''),'/31503/21663.html','true',[],'']
	],''],
	['PAGE','6963',jdecode('Entwicklungsprozesse'),jdecode(''),'/6963/index.html','true',[ 
		['PAGE','4910',jdecode('Stadt+Ingolstadt'),jdecode(''),'/6963/4910.html','true',[],''],
		['PAGE','5230',jdecode('Stadt+Neumarkt'),jdecode(''),'/6963/5230.html','true',[],''],
		['PAGE','34428',jdecode('Region+Altm%FChtal'),jdecode(''),'/6963/34428.html','true',[],''],
		['PAGE','43811',jdecode('Statements'),jdecode(''),'/6963/43811.html','true',[],'']
	],''],
	['PAGE','45911',jdecode('Datenbank'),jdecode(''),'/45911.html','true',[],''],
	['PAGE','4937',jdecode('Beratungsangebot++'),jdecode(''),'/4937/index.html','true',[ 
		['PAGE','4577',jdecode('Leitbildprozess'),jdecode(''),'/4937/4577.html','true',[],''],
		['PAGE','24160',jdecode('Prozessberatung'),jdecode(''),'/4937/24160.html','true',[],''],
		['PAGE','42511',jdecode('Workshop'),jdecode(''),'/4937/42511.html','true',[],''],
		['PAGE','38003',jdecode('Nutzen+und+Mehrwert'),jdecode(''),'/4937/38003.html','true',[],''],
		['PAGE','43111',jdecode('Neue+Methodik'),jdecode(''),'/4937/43111.html','true',[],''],
		['PAGE','24187',jdecode('Was+%3F'),jdecode(''),'/4937/24187.html','true',[],''],
		['PAGE','24133',jdecode('Interkommunal'),jdecode(''),'/4937/24133.html','true',[],''],
		['PAGE','37714',jdecode('Teilnahme+%28Folgeseite%29'),jdecode(''),'/4937/37714.html','false',[],''],
		['PAGE','57132',jdecode('Informationsgespr%E4ch'),jdecode(''),'/4937/57132.html','true',[],''],
		['PAGE','57171',jdecode('Informationsgespr%E4ch+%28Folgeseite%29'),jdecode(''),'/4937/57171.html','false',[],'']
	],''],
	['PAGE','44611',jdecode('HIntergr%FCnde'),jdecode(''),'/44611/index.html','true',[ 
		['PAGE','21636',jdecode('Herausforderungen'),jdecode(''),'/44611/21636.html','true',[],''],
		['PAGE','27411',jdecode('Zukunftsf%E4higkeit'),jdecode(''),'/44611/27411.html','true',[],''],
		['PAGE','25915',jdecode('Lokale+Agenda+21'),jdecode(''),'/44611/25915.html','true',[],''],
		['PAGE','44011',jdecode('Aaalborg+Grunds%E4tze'),jdecode(''),'/44611/44011.html','true',[],''],
		['PAGE','44211',jdecode('Weltgipfel+2002'),jdecode(''),'/44611/44211.html','true',[],''],
		['PAGE','44486',jdecode('Weltgipfel+2002-Kommunen+'),jdecode(''),'/44611/44486.html','true',[],''],
		['PAGE','43326',jdecode('Dokumente'),jdecode(''),'/44611/43326.html','true',[],''],
		['PAGE','40415',jdecode('Anmeldung+%28Folgeseite%29'),jdecode(''),'/44611/40415.html','false',[],'']
	],''],
	['PAGE','42926',jdecode('Kontakt'),jdecode(''),'/42926/index.html','true',[ 
		['PAGE','43017',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/42926/43017.html','false',[],''],
		['PAGE','55954',jdecode('Sitemap'),jdecode(''),'/42926/55954.html','true',[],''],
		['PAGE','45549',jdecode('Disclaimer'),jdecode(''),'/42926/45549.html','true',[],'']
	],''],
	['PAGE','5955',jdecode('Programmpartner'),jdecode(''),'/5955/index.html','true',[ 
		['PAGE','55896',jdecode('Partner+werden'),jdecode(''),'/5955/55896.html','true',[],'']
	],''],
	['PAGE','46511',jdecode('English'),jdecode(''),'/46511.html','true',[],'']];
var siteelementCount=42;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
