/* [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','1112',jdecode('Auf+ein+Wort'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','1741',jdecode('Auf+den+Stand'),jdecode(''),'/1741.html','true',[],''],
	['PAGE','1718',jdecode('Auf+den+Autoren'),jdecode(''),'/1718/index.html','true',[ 
		['PAGE','1892',jdecode('Kontakt'),jdecode(''),'/1718/1892.html','false',[],'']
	],''],
	['PAGE','1188',jdecode('Hamburger+Dogma'),jdecode(''),'/1188/index.html','true',[ 
		['PAGE','23816',jdecode('Auf+die+Presse'),jdecode(''),'/1188/23816.html','true',[],''],
		['PAGE','23862',jdecode('Auf+eine+Geschichte'),jdecode(''),'/1188/23862.html','true',[],''],
		['PAGE','23894',jdecode('Auf+eine+zweite+Geschichte'),jdecode(''),'/1188/23894.html','true',[],''],
		['PAGE','27701',jdecode('Auf+eine+dritte+Geschichte'),jdecode(''),'/1188/27701.html','true',[],'']
	],''],
	['PAGE','1165',jdecode('Auf+ein+Buch'),jdecode(''),'/1165/index.html','true',[ 
		['PAGE','24001',jdecode('M%FCll'),jdecode(''),'/1165/24001.html','true',[],''],
		['PAGE','24032',jdecode('Die+Welt+ist+Hund'),jdecode(''),'/1165/24032.html','true',[],''],
		['PAGE','24063',jdecode('Dumm+gelaufen'),jdecode(''),'/1165/24063.html','true',[],''],
		['PAGE','24094',jdecode('Sieben'),jdecode(''),'/1165/24094.html','true',[],''],
		['PAGE','24125',jdecode('Bei+Anruf+Wort'),jdecode(''),'/1165/24125.html','true',[],''],
		['PAGE','24156',jdecode('Drei+Namen%2C+eine+Nacht'),jdecode(''),'/1165/24156.html','true',[],''],
		['PAGE','24187',jdecode('Wei%DFer+wurde+%FCber+Nacht+schwarz'),jdecode(''),'/1165/24187.html','true',[],''],
		['PAGE','24218',jdecode('Lachgas+im+Airbag'),jdecode(''),'/1165/24218.html','true',[],'']
	],''],
	['PAGE','24249',jdecode('Auf+Hamburg'),jdecode(''),'/24249/index.html','true',[ 
		['PAGE','24280',jdecode('Hamburg+von+unten'),jdecode(''),'/24249/24280.html','true',[],''],
		['PAGE','24311',jdecode('Hamburg+Geheim'),jdecode(''),'/24249/24311.html','true',[],'']
	],''],
	['PAGE','6189',jdecode('Auf+die+Termine'),jdecode(''),'/6189.html','true',[],''],
	['PAGE','1787',jdecode('Auf+die+Anderen'),jdecode(''),'/1787.html','true',[],'']];
var siteelementCount=23;
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 */					                                                            
