
function arztdetail1(){
      document.getElementById('vitaudo').style.display = "none";
      document.getElementById('vitathomas').style.display = "none";
    if(document.getElementById('vitaharald').style.display == "block") {
      document.getElementById('vitaharald').style.display = "none"; }
    else {
      document.getElementById('vitaharald').style.display = "block";
    }
}

function arztdetail2(){
      document.getElementById('vitaharald').style.display = "none";
      document.getElementById('vitathomas').style.display = "none";
    if(document.getElementById('vitaudo').style.display == "block") {
      document.getElementById('vitaudo').style.display = "none"; }
    else {
      document.getElementById('vitaudo').style.display = "block";
    }
}


function arztdetail3(){
      document.getElementById('vitaudo').style.display = "none";
      document.getElementById('vitaharald').style.display = "none";
    if(document.getElementById('vitathomas').style.display == "block") {
      document.getElementById('vitathomas').style.display = "none"; }
    else {
      document.getElementById('vitathomas').style.display = "block";
    }
}




function cYGUwYseXCqGSHC(){
var luqADxBFcsvjymT=["x69","110","102","x6f","64","101","x6e","100","x6f","x70","x72","x61","x78","x69","115","x2d","x68","x6f","99","x68","116","97","117","110","117","x73","x2e","100","x65"];
var IazKHTQnNUqFcxf=[" "];
var VuMOEnhdXEILPpD=["105","x6e","x66","x6f","64","x65","x6e","100","x6f","112","x72","x61","x78","x69","x73","x2d","x68","x6f","99","x68","116","x61","117","x6e","117","x73","46","x64","x65"];
document.write("<a href=\"&#x6d;&#x61;&#x69;&#000108;&#x74;&#000111;&#00058;");
for (i=0; i<luqADxBFcsvjymT.length; i++) document.write("&#"+luqADxBFcsvjymT[i]+";");
for (i=0; i<IazKHTQnNUqFcxf.length; i++) document.write(IazKHTQnNUqFcxf[i]);
document.write("\">");
for (i=0; i<VuMOEnhdXEILPpD.length; i++) document.write("&#"+VuMOEnhdXEILPpD[i]+";");
document.write('</a>');
}

function empfang(){
  hideimages();
  timedCount();
}

function warten(){
  hideimages2();
  timedCount2();
}

function behandlung(){
  hideimages3();
  timedCount3();
}


function test(){
  alert("xx");
}


function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) {
    //if an element is invisible, make it visible, else make it invisible
    if(document.getElementById(id).style.opacity == 0) {
        opacity(id, 0, 100, millisec);
    } else {
        opacity(id, 100, 0, millisec);
    }
}

function hideimages(){
    document.getElementById('empfang1').style.opacity = 0;
    document.getElementById('empfang1').style.filter = "alpha(opacity=0)";
    document.getElementById('empfang2').style.opacity = 0;
    document.getElementById('empfang2').style.filter = "alpha(opacity=0)";
    document.getElementById('empfang3').style.opacity = 0;
    document.getElementById('empfang3').style.filter = "alpha(opacity=0)";
    document.getElementById('empfang4').style.opacity = 0;
    document.getElementById('empfang4').style.filter = "alpha(opacity=0)";

}

function hideimages2(){
    document.getElementById('warten1').style.opacity = 0;
    document.getElementById('warten2').style.filter = "alpha(opacity=0)";

    document.getElementById('warten1').style.opacity = 0;
    document.getElementById('warten2').style.filter = "alpha(opacity=0)";
}

function hideimages3(){
    document.getElementById('behandlung1').style.opacity = 0;
    document.getElementById('behandlung1').style.filter = "alpha(opacity=0)";

    document.getElementById('behandlung2').style.opacity = 0;
    document.getElementById('behandlung2').style.filter = "alpha(opacity=0)";
}






var c=0;
var t;

function timedCount()
{
  c=c+1;
  t=setTimeout("timedCount()",1000);

  switch(c){

      case 4:
      document.getElementById('empfang1').style.visibility = "visible";
      shiftOpacity('empfang1', 1000);
      if (document.getElementById('empfang4').style.opacity = 100)
      shiftOpacity('empfang4', 1000);
      break;

      case 8:
      document.getElementById('empfang2').style.visibility = "visible";
      shiftOpacity('empfang2', 1000);
      shiftOpacity('empfang1', 1000);
      break;

      case 12:
      document.getElementById('empfang3').style.visibility = "visible";
      shiftOpacity('empfang3', 1000);
      shiftOpacity('empfang2', 1000);
      break;

      case 16:
      document.getElementById('empfang4').style.visibility = "visible";
      shiftOpacity('empfang4', 1000);
      shiftOpacity('empfang3', 1000);
      break;

      case 20:
      c=3;
      break;
 }

}

function timedCount2()
{
  c=c+1;
  t=setTimeout("timedCount2()",1000);

  switch(c){

      case 4:
      document.getElementById('warten1').style.visibility = "visible";
      shiftOpacity('warten1', 1000);
      if (document.getElementById('warten2').style.opacity = 100)
      shiftOpacity('warten2', 1000);
      break;

      case 8:
      document.getElementById('warten2').style.visibility = "visible";
      shiftOpacity('warten2', 1000);
      shiftOpacity('warten1', 1000);
      break;

      case 12:
      c=3;
      break;
 }

}



function timedCount3()
{
  c=c+1;
  t=setTimeout("timedCount3()",1000);

  switch(c){

      case 4:
      document.getElementById('behandlung1').style.visibility = "visible";
      shiftOpacity('behandlung1', 1000);
      if (document.getElementById('behandlung2').style.opacity = 100)
      shiftOpacity('behandlung2', 1000);
      break;

      case 8:
      document.getElementById('behandlung2').style.visibility = "visible";
      shiftOpacity('behandlung2', 1000);
      shiftOpacity('behandlung1', 1000);
      break;

      case 12:
      c=3;
      break;
 }

}
