/* [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','4655',jdecode('Teezubeh%F6r-Galerie'),jdecode(''),'/4655.html','true',[],''],
	['PAGE','35180',jdecode('Veranstaltungen'),jdecode(''),'/35180/index.html','true',[ 
		['PAGE','39505',jdecode('Veranstaltungen+%28Folgeseite%29'),jdecode(''),'/35180/39505.html','false',[],''],
		['PAGE','37533',jdecode('Kleinkunstabend'),jdecode(''),'/35180/37533.html','true',[],''],
		['PAGE','37501',jdecode('Teeseminar'),jdecode(''),'/35180/37501.html','true',[],''],
		['PAGE','37564',jdecode('Literaturtee'),jdecode(''),'/35180/37564.html','true',[],'']
	],''],
	['PAGE','23201',jdecode('Tee-Informationen'),jdecode(''),'/23201/index.html','true',[ 
		['PAGE','38001',jdecode('Teerituale+der+Welt'),jdecode(''),'/23201/38001.html','true',[],''],
		['PAGE','43057',jdecode('Gr%FCner+Tee+-+Wirkungen'),jdecode(''),'/23201/43057.html','true',[],''],
		['PAGE','43088',jdecode('Tee%3A+neue+Aufbr%FChregeln'),jdecode(''),'/23201/43088.html','true',[],''],
		['PAGE','43119',jdecode('Cistrosetee-Virenkiller'),jdecode(''),'/23201/43119.html','true',[],''],
		['PAGE','43150',jdecode('Jiaogulantee'),jdecode(''),'/23201/43150.html','true',[],''],
		['PAGE','43243',jdecode('Matetee'),jdecode(''),'/23201/43243.html','true',[],''],
		['PAGE','43212',jdecode('Lapachotee'),jdecode(''),'/23201/43212.html','true',[],''],
		['PAGE','43181',jdecode('Sylter+Meeresalgen'),jdecode(''),'/23201/43181.html','true',[],'']
	],''],
	['PAGE','34303',jdecode('Tee-Historie'),jdecode(''),'/34303/index.html','true',[ 
		['PAGE','34901',jdecode('...vor+1000+n.Chr.'),jdecode(''),'/34303/34901.html','true',[],''],
		['PAGE','34932',jdecode('...vor+1500+n.Chr.'),jdecode(''),'/34303/34932.html','true',[],''],
		['PAGE','34963',jdecode('1500-1700'),jdecode(''),'/34303/34963.html','true',[],''],
		['PAGE','34994',jdecode('1701-1800'),jdecode(''),'/34303/34994.html','true',[],''],
		['PAGE','35025',jdecode('1801-1900'),jdecode(''),'/34303/35025.html','true',[],''],
		['PAGE','35056',jdecode('1900-2005'),jdecode(''),'/34303/35056.html','true',[],'']
	],''],
	['PAGE','23232',jdecode('Literaturliste'),jdecode(''),'/23232/index.html','true',[ 
		['PAGE','35087',jdecode('TeeAlmanach'),jdecode(''),'/23232/35087.html','true',[],''],
		['PAGE','35118',jdecode('Schnarchen...'),jdecode(''),'/23232/35118.html','true',[],''],
		['PAGE','35149',jdecode('JONAS...'),jdecode(''),'/23232/35149.html','true',[],'']
	],''],
	['PAGE','13780',jdecode('Newsletter'),jdecode(''),'/13780.html','true',[],''],
	['PAGE','13834',jdecode('Kontakt'),jdecode(''),'/13834/index.html','true',[ 
		['PAGE','18748',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13834/18748.html','false',[],'']
	],''],
	['PAGE','18566',jdecode('G%E4stebuch'),jdecode(''),'/18566/index.html','true',[ 
		['PAGE','18567',jdecode('Eintr%E4ge'),jdecode(''),'/18566/18567.html','true',[],'']
	],''],
	['PAGE','39810',jdecode('Tee-+und+Sylt-Links'),jdecode(''),'/39810.html','true',[],''],
	['PAGE','43274',jdecode('Teesortimentliste'),jdecode(''),'/43274.html','true',[],'']];
var siteelementCount=34;
theSitetree.topTemplateName='NewYork';
					                                                                    
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 */					                                                            
