/* [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','1111',jdecode('Home'),jdecode(''),'/1111/index.html','true',[ 
		['PAGE','1905',jdecode('Anschrift'),jdecode(''),'/1111/1905.html','true',[],''],
		['PAGE','1690',jdecode('%D6ffnungszeiten'),jdecode(''),'/1111/1690.html','true',[],'']
	],''],
	['PAGE','1256',jdecode('Ausstellungen'),jdecode(''),'/1256/index.html','true',[ 
		['PAGE','36057',jdecode('2004'),jdecode(''),'/1256/36057.html','true',[],''],
		['PAGE','10594',jdecode('Alexander+Vo%DF'),jdecode(''),'/1256/10594.html','true',[],''],
		['PAGE','35375',jdecode('Memories+International'),jdecode(''),'/1256/35375.html','true',[],''],
		['PAGE','35693',jdecode('Heiner+Blumenthal'),jdecode(''),'/1256/35693.html','true',[],''],
		['PAGE','35437',jdecode('Lowell+Nesbitt'),jdecode(''),'/1256/35437.html','true',[],''],
		['PAGE','36026',jdecode('2003'),jdecode(''),'/1256/36026.html','true',[],''],
		['PAGE','35468',jdecode('Dagmar+Varady'),jdecode(''),'/1256/35468.html','true',[],''],
		['PAGE','35499',jdecode('Barbara+D%F6rffler'),jdecode(''),'/1256/35499.html','true',[],''],
		['PAGE','35575',jdecode('Rune+Mields'),jdecode(''),'/1256/35575.html','true',[],''],
		['PAGE','35775',jdecode('Knopp+Ferro'),jdecode(''),'/1256/35775.html','true',[],''],
		['PAGE','35806',jdecode('Christoph+Gesing'),jdecode(''),'/1256/35806.html','true',[],''],
		['PAGE','35837',jdecode('Gerd+Winner'),jdecode(''),'/1256/35837.html','true',[],''],
		['PAGE','35995',jdecode('2002'),jdecode(''),'/1256/35995.html','true',[],''],
		['PAGE','35868',jdecode('Bits%26%23x27%3Bn+Pieces'),jdecode(''),'/1256/35868.html','true',[],''],
		['PAGE','35899',jdecode('Paul+Thek'),jdecode(''),'/1256/35899.html','true',[],''],
		['PAGE','35930',jdecode('Bernh.+Joh.+Blume'),jdecode(''),'/1256/35930.html','true',[],''],
		['PAGE','34837',jdecode('Franziska+Becker'),jdecode(''),'/1256/34837.html','true',[],''],
		['PAGE','34806',jdecode('Hardware+and+Tools+'),jdecode(''),'/1256/34806.html','true',[],''],
		['PAGE','34775',jdecode('Rune+Mields'),jdecode(''),'/1256/34775.html','true',[],''],
		['PAGE','5388',jdecode('demn%E4chst'),jdecode(''),'/1256/5388.html','true',[],'']
	],''],
	['PAGE','2717',jdecode('K%FCnstler'),jdecode(''),'/2717/index.html','true',[ 
		['PAGE','27066',jdecode('Franziska+Becker'),jdecode(''),'/2717/27066.html','true',[],''],
		['PAGE','27174',jdecode('Bernh.+Joh.+Blume'),jdecode(''),'/2717/27174.html','true',[],''],
		['PAGE','35406',jdecode('Heiner+Blumenthal'),jdecode(''),'/2717/35406.html','true',[],''],
		['PAGE','27201',jdecode('Christian+Boltanski'),jdecode(''),'/2717/27201.html','true',[],''],
		['PAGE','27093',jdecode('Barbara+D%F6rffler'),jdecode(''),'/2717/27093.html','true',[],''],
		['PAGE','2763',jdecode('Knopp+Ferro'),jdecode(''),'/2717/2763.html','true',[],''],
		['PAGE','27663',jdecode('G%E9rard+Gasiorowski'),jdecode(''),'/2717/27663.html','true',[],''],
		['PAGE','1713',jdecode('Christoph+Gesing'),jdecode(''),'/2717/1713.html','true',[],''],
		['PAGE','27228',jdecode('Alain+Jacquet'),jdecode(''),'/2717/27228.html','true',[],''],
		['PAGE','33275',jdecode('Jiri+Kolar'),jdecode(''),'/2717/33275.html','true',[],''],
		['PAGE','1974',jdecode('Rune+Mields'),jdecode(''),'/2717/1974.html','true',[],''],
		['PAGE','33175',jdecode('Malcolm+Morley'),jdecode(''),'/2717/33175.html','true',[],''],
		['PAGE','27255',jdecode('Lowell+Nesbitt'),jdecode(''),'/2717/27255.html','true',[],''],
		['PAGE','33375',jdecode('Daniel+Spoerri'),jdecode(''),'/2717/33375.html','true',[],''],
		['PAGE','27282',jdecode('Paul+Thek'),jdecode(''),'/2717/27282.html','true',[],''],
		['PAGE','27120',jdecode('Dagmar+Varady'),jdecode(''),'/2717/27120.html','true',[],''],
		['PAGE','27147',jdecode('Alexander+Vo%DF'),jdecode(''),'/2717/27147.html','true',[],''],
		['PAGE','27309',jdecode('Gerd+Winner'),jdecode(''),'/2717/27309.html','true',[],'']
	],''],
	['PAGE','1187',jdecode('Kontakt'),jdecode(''),'/1187.html','true',[],'']];
var siteelementCount=44;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
