/* [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','4554',jdecode('Home+%26+Anleitung'),jdecode(''),'/4554/index.html','true',[ 
		['PAGE','116861',jdecode('%D6ffnungszeiten'),jdecode(''),'/4554/116861.html','true',[],''],
		['PAGE','17341',jdecode('Kontakt+%26+Lage+'),jdecode(''),'/4554/17341.html','true',[],''],
		['PAGE','17314',jdecode('Versand+%26+AGB'),jdecode(''),'/4554/17314.html','true',[],''],
		['PAGE','101361',jdecode('Widerrufsrecht'),jdecode(''),'/4554/101361.html','true',[],''],
		['PAGE','100661',jdecode('Impressum'),jdecode(''),'/4554/100661.html','true',[],'']
	],''],
	['PAGE','78409',jdecode('Rundgang'),jdecode(''),'/78409.html','true',[],''],
	['PAGE','4692',jdecode('M%F6bel+%26+Einrichtung+'),jdecode(''),'/4692.html','true',[],''],
	['PAGE','9982',jdecode('Gem%E4lde+Weimar+1'),jdecode(''),'/9982.html','true',[],''],
	['PAGE','112961',jdecode('Gem%E4lde+Weimar+2'),jdecode(''),'/112961.html','true',[],''],
	['PAGE','159581',jdecode('Gem%E4lde+Weimar+3'),jdecode(''),'/159581.html','true',[],''],
	['PAGE','166381',jdecode('Karl+Buchholz'),jdecode(''),'/166381.html','true',[],''],
	['PAGE','137981',jdecode('Franz+Bunke'),jdecode(''),'/137981.html','true',[],''],
	['PAGE','170372',jdecode('A.+v.+Szpinger'),jdecode(''),'/170372.html','true',[],''],
	['PAGE','81692',jdecode('Theodor+Hagen'),jdecode(''),'/81692.html','true',[],''],
	['PAGE','131681',jdecode('Fritz+Lattke'),jdecode(''),'/131681.html','true',[],''],
	['PAGE','60792',jdecode('Gem%E4lde+%26+Grafik'),jdecode(''),'/60792.html','true',[],''],
	['PAGE','14871',jdecode('Plastik+%26+Skulptur++'),jdecode(''),'/14871.html','true',[],''],
	['PAGE','169381',jdecode('Schiller'),jdecode(''),'/169381.html','true',[],''],
	['PAGE','10009',jdecode('Porzellan+%26+Keramik'),jdecode(''),'/10009.html','true',[],''],
	['PAGE','98920',jdecode('Bauhaus+Weimar'),jdecode(''),'/98920.html','true',[],''],
	['PAGE','10036',jdecode('Glas+%26+Kristall'),jdecode(''),'/10036.html','true',[],''],
	['PAGE','10063',jdecode('Orden+%26+Militaria'),jdecode(''),'/10063.html','true',[],''],
	['PAGE','171025',jdecode('Reservistika'),jdecode(''),'/171025.html','true',[],''],
	['PAGE','168881',jdecode('Armbrust'),jdecode(''),'/168881.html','true',[],''],
	['PAGE','10090',jdecode('Metallarbeiten'),jdecode(''),'/10090.html','true',[],''],
	['PAGE','16201',jdecode('Schmuck+'),jdecode(''),'/16201.html','true',[],''],
	['PAGE','33101',jdecode('Uhren'),jdecode(''),'/33101.html','true',[],''],
	['PAGE','95320',jdecode('Russland'),jdecode(''),'/95320.html','true',[],''],
	['PAGE','4773',jdecode('verkaufte+Highlights'),jdecode(''),'/4773.html','true',[],''],
	['PAGE','78824',jdecode('Wir++KAUFEN++an'),jdecode(''),'/78824.html','true',[],''],
	['PAGE','78855',jdecode('Gesuchte+K%FCnstler'),jdecode(''),'/78855.html','true',[],''],
	['PAGE','80074',jdecode('Kontakt+Button'),jdecode(''),'/80074.html','true',[],''],
	['PAGE','53292',jdecode('WEIMAR+Aktuell'),jdecode(''),'/53292.html','true',[],''],
	['PAGE','103461',jdecode('Hotel+-+Empfehlung'),jdecode(''),'/103461.html','true',[],''],
	['PAGE','79730',jdecode('Weimar+Wetter'),jdecode(''),'/79730.html','true',[],''],
	['PAGE','79993',jdecode('Routenplaner'),jdecode(''),'/79993.html','true',[],''],
	['PAGE','80023',jdecode('Stadtplan+Weimar'),jdecode(''),'/80023.html','true',[],''],
	['PAGE','80154',jdecode('Geld+-+Eurokurs'),jdecode(''),'/80154.html','true',[],''],
	['PAGE','77792',jdecode('Interessante+LINKS'),jdecode(''),'/77792.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='echo';
					                                                                    
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 */					                                                            

