//austauschen javascript

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}
function toggle_1(a,b,c){
  var e1=document.getElementById(a);
  var e2=document.getElementById(b);
  var e3=document.getElementById(c);
  var e4=document.getElementById('para04');
  if(e1.style.display=="none"){
    e1.style.display="block"
  }
  if(e2.style.display=="block"){
    e2.style.display="none"
  }
  if(e3.style.display=="block"){
    e3.style.display="none"
  }
    if(e4.style.display=="block"){
    e4.style.display="none"
  }
  return true;
}
function toggle_2(a,b,c){
  var e1=document.getElementById(a);
  var e2=document.getElementById(b);
  var e3=document.getElementById(c);
  var e4=document.getElementById('para04');
  if(e1.style.display=="block"){
    e1.style.display="none"
  }
  if(e2.style.display=="none"){
    e2.style.display="block"
  }
  if(e3.style.display=="block"){
    e3.style.display="none"
  }
      if(e4.style.display=="block"){
    e4.style.display="none"
  }
  return true;
}
function toggle_3(a,b,c){
  var e1=document.getElementById(a);
  var e2=document.getElementById(b);
  var e3=document.getElementById(c);
  var e4=document.getElementById('para04');
  if(e1.style.display=="block"){
    e1.style.display="none"
  }
  if(e2.style.display=="block"){
    e2.style.display="none"
  }
  if(e3.style.display=="none"){
    e3.style.display="block"
  }
      if(e4.style.display=="block"){
    e4.style.display="none"
  }
  return true;
}
function toggle_4(){
  var e1=document.getElementById('para01');
  var e2=document.getElementById('para02');
  var e3=document.getElementById('para03');
  var e4=document.getElementById('para04');
  if(e1.style.display=="block"){
    e1.style.display="none"
  }
  if(e2.style.display=="block"){
    e2.style.display="none"
  }
  if(e3.style.display=="block"){
    e3.style.display="none"
  }
      if(e4.style.display=="none"){
    e4.style.display="block"
  }
  return true;
}


//digital clock

var loaded = false;
if (document.layers)
  document.write(
'<STYLE>.rewritable { position: absolute; }<\/STYLE>'
  );
function Clock (offsetSec, style) {
  this.id = Clock.cnt;
  Clock.clocks[Clock.cnt++] = this;
  this.offsetSec = offsetSec || 0;
  this.style = style || '';
  this.writeHTML();
  this.startTimer();
}
function Clock_writeHTML () {
  var html = '';
  if (document.layers) {
    html += '<SPAN';
    html += ' ID="Clock' + this.id + '"';
    html += ' CLASS="rewritable"';
    html += '>';
    html += '<SPAN';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
    html += '<\/SPAN>';
  }
  else {
    html += '<SPAN';
    html += ' ID="Clock' + this.id + '"';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
  }
  document.write(html);
}
Clock.prototype.writeHTML = Clock_writeHTML;
function Clock_formatTime () {
  var time = new Date();
  time.setTime(time.getTime() + this.offsetSec * 1000);
  var hours = time.getHours();
  var minutes = time.getMinutes();
  var seconds = time.getSeconds();
  var html = '';
  html += hours < 10 ? '0' + hours : hours;
  html += ':';
  html += minutes < 10 ? '0' + minutes : minutes;
  html += ':';
  html += seconds < 10 ? '0' + seconds : seconds;
  return html;
}
Clock.prototype.formatTime = Clock_formatTime;
function Clock_startTimer () {
  this.tid = setInterval('Clock.clocks[' + this.id + '].updateTime()', 
1000);
}
Clock.prototype.startTimer = Clock_startTimer;
function Clock_updateTime () {
  if (document.all)
    document.all['Clock' + this.id].innerHTML = this.formatTime();
  else if (document.getElementById)
    document.getElementById('Clock' + this.id).firstChild.nodeValue =
      this.formatTime();
  else if (document.layers && loaded) {
    var l = document['Clock' + this.id];
    if (!l.ol) {
      var ol = l.ol = new Layer(l.clip.width);
      ol.clip.height = l.clip.height;
      ol.left = l.pageX; ol.top = l.pageY;
      ol.visibility = 'show';
      l.visibility = 'hide';
    }
    var ol = l.ol;
    var html = '';
    html += '<SPAN';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
    ol.document.open();
    ol.document.write(html);
    ol.document.close();
  }
}
Clock.prototype.updateTime = Clock_updateTime;
Clock.cnt = 0;
Clock.clocks = new Array();
function init () {
  loaded = true;
} 