<!--
var Divs = new Array();
var Toggles = new Array();


function slide(num, flag, extern){
  obj = Divs[num];

  //console.debug("in slide  obj.Motion = "+obj.motion +"    divs["+num+"] = "+ Divs[num] +  "     flag = "+flag  +"    extern = "+extern);



  window.clearTimeout(obj.motion);
  var step=32;
  uobj = obj.getElementsByTagName('TABLE')[0];
  oht = obj.style.height;
  oht = oht.substring(0, oht.indexOf('px'));
  oht = parseInt(oht);
  uht = uobj.offsetHeight;
  if(flag>0){
    step*=(1-oht/uht);
    step = Math.ceil(step);
    while ((step-1) > (uht-oht))
	
      step--;
    oht+=step;
    obj.style.height= oht + 'px';
    uobj.style.top = oht-uht;
    if(oht!=uht)
      obj.motion = window.setTimeout("slide("+ num +","+ flag +")", 83);
    else
      window.clearTimeout(obj.motion);
  } else {
    step*=(oht/uht);
    step = Math.ceil(step);
	//console.debug("step = "+step+"    oht = "+oht);
	
	while (step-1 > oht)
	  step--;
	oht-=step;
	obj.style.height= oht + 'px';
	uobj.style.top = oht-uht;
	if(oht!=0){
	  obj.motion = window.setTimeout("slide("+ num +","+ flag +")", 83);
	} else {
	  window.clearTimeout(obj.motion);
	}if(extern){
		Toggles[4].flag = 1;
	}
	
  }

}

function init () {
  var j = 0;
  for (i=0; i<document.getElementsByTagName('DIV').length; i++ ) {
    if(document.getElementsByTagName('DIV')[i].className=="dyn"){
		//console.debug("in init    div " +j);
      Divs[j] = document.getElementsByTagName('DIV')[i];
      Divs[j].motion=false;
      Divs[j].style.height="0px";
      Table = Divs[j].getElementsByTagName('TABLE')[0];
      Table.style.top = -1*(Table.offsetHeight+Table.offsetTop) + 'px';
      j++;
    }
  }
  j = 0;
  for (i=0; i<document.getElementsByTagName('A').length; i++ ) {
    if(document.getElementsByTagName('A')[i].className=="dyn"){
		
		//console.debug("in init a tag      tag "+j);
      Toggles[j] = document.getElementsByTagName('A')[i];
      Toggles[j].flag = 1;
      Toggles[j].j=0;
      Toggles[j].onclick = function () {
                             slide(this.j, this.flag, false);
                             this.flag*=-1;
                           }
      j++;
    }if(document.getElementsByTagName('A')[i].className=="menue_rechts"){
       // console.debug("in init a tag menue_rechts     tag "+j);
      Toggles[j] = document.getElementsByTagName('A')[i];
      Toggles[j].flag = -1;
      Toggles[j].j=0;
      Toggles[j].onclick = function () {
                             slide(this.j, this.flag, true);
                           }
      j++;
    }
  }
}
//-->
