
  function ShowInfo (e,i,s) {
      var element = document.getElementById(i);
      var x = 0;
      var y = 0;
     	if (!e) e = window.event;
     	if (e.pageX || e.pageY) {
       		x = e.pageX;
       		y = e.pageY;
      }	else if (e.clientX || e.clientY) {
       		x = e.clientX + document.body.scrollLeft;
       		y = e.clientY + document.body.scrollTop;
      }
      x = Math.ceil ( (x+8) / 30 ) * 30 - 100;      
      if (s == 'left')
          x = x - 200;
      y= y + 20;
      element.style.position = "absolute";
      element.style.top      = y + "px";
      element.style.left     = x + "px";
      element.style.display  = "block";
  }

  function HideInfo (elid) {
      document.getElementById(elid).style.display = "none";
  }
  
  function HideJs () {
      document.getElementById("js-info").style.display = "none";
  }
  
  var timeout1;
  var timeout2;
  
  function Timer1 () {
      timeout1 = 5000;
      TimerCheck1();
  }
  
  function TimerCheck1() {
      timeout1 -= 1000;
      if (timeout1 > 0) setTimeout('TimerCheck1()', 1000);
      else {
          document.getElementById("blank").style.display = "none";
      }
  }
  
  function Timer2 () {
      timeout2 = 30000;
      TimerCheck2();
  }

  function TimerCheck2() {
      timeout2 -= 1000;
      if (timeout2 > 0) {
          var a = timeout2/1000;
          document.getElementById("cdown").src = "grafik/cdown/" + a + ".png";
          document.getElementById("cdown").alt = a;
          setTimeout('TimerCheck2()', 1000);
      } else {
          document.getElementById("countdown").style.display = "none";
          document.getElementById("ergebnis").style.display = "block";
      }
  }
