/* (c) Steffen Friedrich */

//var pageRootString = '/de/kanzlei/team/'; // hier reinpacken wo die Mitarbeierseiten liegen.

function _i()
{ this.tt = 0;
  this.e = document.getElementById('employContent');
  this.e.id = 'employContentMama';
  this.li = document.getElementById('employsList');
  this.li.id = 'employsListMama';
  this.fr = document.createElement('IFRAME');
//  this.fr.src = pageRootString + 'lade-mitarbeiterdaten.html?type=97';
  // this.fr.src = 'index.php?id=227';
  this.fr.src = '/index.php?id=550&type=97';
  // this.e.appendChild( document.createTextNode(pageRootString + 'lade-mitarbeiterdaten.html?type=97') );
  this.e.appendChild(this.fr);
}
function _w()
{ this.e.removeChild(this.fr);
  this.fr = 0;
  this.a = 0;this.h = 0;this.l = new Array();this.t = new Array();
  this.o = this.e.innerHTML;

  // this.e.appendChild( document.createTextNode(pageRootString + 'lade-mitarbeiterdaten.html?type=97') );

  this.f( this.li );

}
function _f(n)
{ do{ if( n.nodeType == 1  && n.attributes.href )
       { n.onclick=s;
         if( n.parentNode.className=="active" )
           { this.a=n;
             this.l[n.href]=n;
             this.t[n.href]=this.e.innerHTML; }
           n.onmouseover=h;
           n.onmouseout=u; }
      if( n.firstChild )
          this.f( n.firstChild );
      n = n.nextSibling;
  }while(n);
}
function _s(i)
{ if(!this.t[i])
     this.t[i]=this.tt;
  this.e.innerHTML=this.t[i];
  if(this.a==this.l[i])
    this.o=this.t[i]
}
function s()
{ if(lada.a==this)
     return; //"false" here if no follow at all
  if(lada.a)
    lada.a.parentNode.className = "";
  this.parentNode.className = "active";
  lada.a = this;

  if( lada.t[this.href] )
  {   lada.r = 0;
      lada.o = lada.t[this.href];
  }else lada.r = this.href;
  return false;
}
function _d(i,t)
{ if( !this.tt )
    { this.tt = t;
      this.w();
      return;
    }
  if( i.indexOf('?')>-1 )
      i = i.substr(0, i.indexOf('?'));
  if(lada.r==i)
  { lada.o = t;lada.r = 0; }
  this.t[i]=t;
  if(this.l[i]==this.a&&!this.h||this.h&&this.l[i]==this.h)
    this.e.innerHTML=t;
  this.l[i].fr.parentNode.removeChild( this.l[i].fr );
  var m = this.l[i].fr;
  this.l[i].fr = 0;
  delete m;
  if(this.l[i]==this.a)this.o = t
}
function h()
{ if(this==lada.a||this==lada.h)
    return;
  lada.h=this;
  if(!lada.l[this.href])
    { lada.l[this.href] = this;
      this.fr = document.createElement('IFRAME');
      this.fr.src= this.href+'?type=97';
      lada.li.appendChild(this.fr); }
  lada.s(this.href)
}
function u()
{ if(this!=lada.a)
    lada.e.innerHTML=lada.o;
  lada.h = 0
}
function E()
{ this.i = _i;this.w = _w;this.f = _f;this.s = _s;this.d = _d }
lada = new E();
