/* [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.html','true',[],''],
	['PAGE','1486',jdecode('Wir+%FCber+uns'),jdecode(''),'/1486.html','true',[],''],
	['PAGE','1394',jdecode('Leistungen'),jdecode(''),'/1394/index.html','true',[ 
		['PAGE','16802',jdecode('Mentales+Training'),jdecode(''),'/1394/16802.html','true',[],''],
		['PAGE','1463',jdecode('Training+und+Coaching'),jdecode(''),'/1394/1463.html','true',[],''],
		['PAGE','1440',jdecode('Qualit%E4tsmanagement'),jdecode(''),'/1394/1440.html','true',[],''],
		['PAGE','1417',jdecode('Projektmanagement'),jdecode(''),'/1394/1417.html','true',[],'']
	],''],
	['PAGE','36101',jdecode('IKON'),jdecode(''),'/36101/index.html','true',[ 
		['PAGE','36901',jdecode('Unser+Selbstverst%E4ndnis'),jdecode(''),'/36101/36901.html','true',[],''],
		['PAGE','34601',jdecode('Kontakt'),jdecode(''),'/36101/34601/index.html','true',[ 
			['PAGE','37313',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/36101/34601/37313.html','false',[],'']
		],'']
	],''],
	['PAGE','1279',jdecode('Dozenten'),jdecode(''),'/1279.html','true',[],''],
	['PAGE','10102',jdecode('Termine+%26+Aktuelles'),jdecode(''),'/10102/index.html','true',[ 
		['PAGE','10156',jdecode('News+11%2F09%2F02'),jdecode(''),'/10102/10156.html','true',[],'']
	],''],
	['PAGE','1371',jdecode('Literaturtipps+%26+Links'),jdecode(''),'/1371.html','true',[],''],
	['PAGE','1187',jdecode('Kontakt'),jdecode(''),'/1187.html','true',[],''],
	['PAGE','1994',jdecode('Gesch%E4ftsbedingungen'),jdecode(''),'/1994.html','true',[],''],
	['PAGE','5184',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5184.html','false',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            
