/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, &quot;%20&quot;)
    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('Startseite'),jdecode(''),'/4481.html','true',[],''],
 ['PAGE','68301',jdecode('Test4Q%2FHost+'),jdecode(''),'/68301/index.html','true',[ 
  ['PAGE','82111',jdecode('Systemkonzept'),jdecode(''),'/68301/82111.html','true',[],''],
  ['PAGE','82142',jdecode('Aufzeichnung'),jdecode(''),'/68301/82142.html','true',[],''],
  ['PAGE','82173',jdecode('Wiedergabe'),jdecode(''),'/68301/82173.html','true',[],''],
  ['PAGE','82204',jdecode('Vergleich'),jdecode(''),'/68301/82204.html','true',[],''],
  ['PAGE','82235',jdecode('Projektergebnisse'),jdecode(''),'/68301/82235.html','true',[],''],
  ['PAGE','82266',jdecode('Maskenanalyse'),jdecode(''),'/68301/82266.html','true',[],''],
  ['PAGE','82297',jdecode('Manuelle+Scripte'),jdecode(''),'/68301/82297.html','true',[],''],
  ['PAGE','82328',jdecode('Excel+Scripte'),jdecode(''),'/68301/82328.html','true',[],''],
  ['PAGE','82359',jdecode('Sollvorgaben'),jdecode(''),'/68301/82359.html','true',[],''],
  ['PAGE','82390',jdecode('Maskierungen'),jdecode(''),'/68301/82390.html','true',[],''],
  ['PAGE','82421',jdecode('Technik'),jdecode(''),'/68301/82421.html','true',[],'']
 ],''],
 ['PAGE','89332',jdecode('Test4Q%2FA2O'),jdecode(''),'/89332.html','true',[],''],
 ['PAGE','18469',jdecode('Download'),jdecode(''),'/18469.html','true',[],''],
 ['PAGE','18500',jdecode('Lizenzhinweise'),jdecode(''),'/18500.html','true',[],''],
 ['PAGE','88001',jdecode('Impressum'),jdecode(''),'/88001.html','true',[],''],
 ['PAGE','88033',jdecode('AGB'),jdecode(''),'/88033.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Seifenblase';
                                                                         
theSitetree.getById = function(id, ar) {            
       if (typeof(ar) == 'undefined')                              
        ar = this;                                              
       for (var i=0; i &lt; ar.length; i++) {                         
        if (ar[i][POS_ID] == id)                                
         return ar[i];                                       
        if (ar[i][POS_CHILDS].length &gt; 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 &lt; ar.length; i++) {                          
       for (var j = 0; j &lt; 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 &lt; 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 &gt; 0) {                                          
   var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); 
   if (result != null)                                                      
    return result;                                                       
  }                                                  
 }                                                                                
 return null;                                                                     
 };                                                                               
/* EOF */                                                                 

