/* [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','14328',jdecode('In+eigener+Sache'),jdecode(''),'/14328/index.html','true',[ 
		['PAGE','14359',jdecode('Impressum'),jdecode(''),'/14328/14359.html','true',[],'']
	],''],
	['PAGE','14235',jdecode('Wie+alles+begann'),jdecode(''),'/14235.html','true',[],''],
	['PAGE','14266',jdecode('Zukunftsmusik'),jdecode(''),'/14266.html','true',[],''],
	['PAGE','19990',jdecode('Unser+Dach+und+mehr'),jdecode(''),'/19990.html','true',[],''],
	['PAGE','20026',jdecode('Besichtigung'),jdecode(''),'/20026.html','true',[],''],
	['PAGE','14297',jdecode('Fotos'),jdecode(''),'/14297/index.html','true',[ 
		['PAGE','14529',jdecode('2002'),jdecode(''),'/14297/14529.html','true',[],''],
		['PAGE','14560',jdecode('2003'),jdecode(''),'/14297/14560.html','true',[],''],
		['PAGE','14622',jdecode('2004'),jdecode(''),'/14297/14622.html','true',[],''],
		['PAGE','16921',jdecode('Oktober+2005'),jdecode(''),'/14297/16921.html','true',[],''],
		['PAGE','18990',jdecode('2006'),jdecode(''),'/14297/18990.html','true',[],''],
		['PAGE','19490',jdecode('Vorher+%26+Nachher'),jdecode(''),'/14297/19490.html','true',[],''],
		['PAGE','21032',jdecode('2007'),jdecode(''),'/14297/21032.html','true',[],''],
		['PAGE','21001',jdecode('2008'),jdecode(''),'/14297/21001.html','true',[],'']
	],''],
	['PAGE','16190',jdecode('Mittelalter'),jdecode(''),'/16190/index.html','true',[ 
		['PAGE','16221',jdecode('Scarb%E4ja'),jdecode(''),'/16190/16221.html','true',[],''],
		['PAGE','16283',jdecode('Lager'),jdecode(''),'/16190/16283.html','true',[],'']
	],''],
	['PAGE','16890',jdecode('Tag+des+offenen+Denkmals+2005'),jdecode(''),'/16890.html','true',[],''],
	['PAGE','17490',jdecode('Erlebtes'),jdecode(''),'/17490/index.html','true',[ 
		['PAGE','17529',jdecode('Ist+Johann+ein+Spinner+%3F'),jdecode(''),'/17490/17529.html','true',[],''],
		['PAGE','17690',jdecode('Alles+nur+Zufall+%3F'),jdecode(''),'/17490/17690.html','true',[],''],
		['PAGE','17730',jdecode('Alles+nur+Einbildung+%3F'),jdecode(''),'/17490/17730.html','true',[],''],
		['PAGE','17769',jdecode('Hilfe+von+Freunden'),jdecode(''),'/17490/17769.html','true',[],'']
	],''],
	['PAGE','18390',jdecode('Untermieter'),jdecode(''),'/18390.html','true',[],''],
	['PAGE','15354',jdecode('G%E4stebuch'),jdecode(''),'/15354/index.html','true',[ 
		['PAGE','15355',jdecode('Eintr%E4ge'),jdecode(''),'/15354/15355.html','true',[],'']
	],''],
	['PAGE','17591',jdecode('Anfahrt'),jdecode(''),'/17591.html','true',[],''],
	['PAGE','20890',jdecode('Freunde'),jdecode(''),'/20890.html','true',[],''],
	['PAGE','20959',jdecode('Termine'),jdecode(''),'/20959.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Digital';
					                                                                    
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 */					                                                            

