/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4613',jdecode('China+hautnah'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','7103',jdecode('Die+Zeitungsartikel'),jdecode(''),'/7103.html','true',[],''],
	['PAGE','4640',jdecode('Das+Buch'),jdecode(''),'/4640.html','true',[],''],
	['PAGE','4667',jdecode('Die+Kapitel'),jdecode(''),'/4667/index.html','true',[ 
		['PAGE','5303',jdecode('Peking'),jdecode(''),'/4667/5303.html','true',[],''],
		['PAGE','5330',jdecode('Shanghai'),jdecode(''),'/4667/5330.html','true',[],''],
		['PAGE','5357',jdecode('Gro%DFe+Mauer'),jdecode(''),'/4667/5357.html','true',[],''],
		['PAGE','5384',jdecode('Am+Meer'),jdecode(''),'/4667/5384.html','true',[],'']
	],''],
	['PAGE','4694',jdecode('Die+Bilder'),jdecode(''),'/4694/index.html','true',[ 
		['PAGE','5411',jdecode('Peking'),jdecode(''),'/4694/5411.html','true',[],''],
		['PAGE','5438',jdecode('Shanghai'),jdecode(''),'/4694/5438.html','true',[],''],
		['PAGE','5465',jdecode('Gro%DFe+Mauer'),jdecode(''),'/4694/5465.html','true',[],''],
		['PAGE','5492',jdecode('Am+Meer'),jdecode(''),'/4694/5492.html','true',[],'']
	],''],
	['PAGE','4721',jdecode('China+Bankwesen'),jdecode(''),'/4721/index.html','true',[ 
		['PAGE','4748',jdecode('Das+Buch'),jdecode(''),'/4721/4748.html','true',[],''],
		['PAGE','4775',jdecode('Die+Kapitel'),jdecode(''),'/4721/4775.html','true',[],'']
	],''],
	['PAGE','4802',jdecode('Die+Autorin'),jdecode(''),'/4802.html','true',[],''],
	['PAGE','4829',jdecode('Der+Verlag'),jdecode(''),'/4829/index.html','true',[ 
		['PAGE','5573',jdecode('WiKu+Germany'),jdecode(''),'/4829/5573.html','true',[],''],
		['PAGE','5600',jdecode('WiKu+France'),jdecode(''),'/4829/5600.html','true',[],''],
		['PAGE','5627',jdecode('WiKu+Austria'),jdecode(''),'/4829/5627.html','true',[],''],
		['PAGE','5654',jdecode('WiKu+Switzerland'),jdecode(''),'/4829/5654.html','true',[],''],
		['PAGE','5681',jdecode('Verlagsprogramm'),jdecode(''),'/4829/5681.html','true',[],'']
	],''],
	['PAGE','9502',jdecode('Fotoalbum+zum+Buch'),jdecode(''),'/9502.html','true',[],''],
	['PAGE','11203',jdecode('Rezensionen'),jdecode(''),'/11203.html','true',[],''],
	['PAGE','10003',jdecode('Forum+zum+Buch'),jdecode(''),'/10003.html','true',[],''],
	['PAGE','6530',jdecode('G%E4stebuch'),jdecode(''),'/6530/index.html','true',[ 
		['PAGE','6531',jdecode('Eintr%E4ge'),jdecode(''),'/6530/6531.html','true',[],'']
	],''],
	['PAGE','10603',jdecode('Franz%F6sisch'),jdecode(''),'/10603.html','true',[],''],
	['PAGE','11230',jdecode('Interessante+Links'),jdecode(''),'/11230.html','true',[],''],
	['PAGE','4856',jdecode('Kontakt'),jdecode(''),'/4856/index.html','true',[ 
		['PAGE','8574',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4856/8574.html','false',[],'']
	],''],
	['PAGE','4910',jdecode('Impressum'),jdecode(''),'/4910.html','true',[],''],
	['PAGE','4937',jdecode('Juristische+Hinweise'),jdecode(''),'/4937/index.html','true',[ 
		['PAGE','8831',jdecode('Markenschutz'),jdecode(''),'/4937/8831.html','true',[],'']
	],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Natural';
					                                                                    
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 */					                                                            

