/* JAVASCRIPTKRAM und Gedöns */

var T = "";
var c = 2;
var s = 0;
var x = 0;

function lade(was) {

document.location.href="/index.php?wohin="+was;

}

function extern(was) {

parent.top.location.href=was;

}

function tools(WattWullu)
{
  if(WattWullu == 3) {
    this.style.behavior='url(#default#homepage)';
    this.setHomePage('/index.php?wohin=home');
  }
  if(WattWullu == 4) {
    history.go(-1);
  }
  if(WattWullu == 5) {
    window.print();
  }  
  if(WattWullu == 6) {
    document.location.href="#top";
  }
  if(WattWullu == 7) {
    document.location.href="/index.php?wohin=kontakt";
  }
}


function ShowHide(linkID,txtID,imgID)
{
var tvis = "ZURUECK";
var thid = "ANTWORT";
var ivis = "/home/grafik/btnArrowUpGrey.gif";
var ihid = "/home/grafik/btnArrowDownGrey.gif";
var uid = "Fenster1_";
if (window.document.getElementById(uid + txtID).style.visibility=="visible")
{
	window.document.getElementById(uid + txtID).style.display="none";
	window.document.getElementById(uid + txtID).style.visibility="hidden";
	window.document.getElementById(uid + linkID).firstChild.nodeValue=thid;
	window.document.getElementById(uid + imgID).src=ihid;
}
else
{
	window.document.getElementById(uid + txtID).style.display="block";
	window.document.getElementById(uid + txtID).style.visibility="visible";
	window.document.getElementById(uid + linkID).firstChild.nodeValue=tvis;
	window.document.getElementById(uid + imgID).src=ivis;
}
}



 function video(name,link,height) {
   document.getElementById(""+name).style.width="330px";
   document.getElementById(""+name).style.height=height;
   document.getElementById(""+name).style.top="158px";
   document.getElementById(""+name).style.left="460px";
   document.getElementById(""+name).style.borderstyle="inset";
   document.getElementById(""+name).src=link;
 }

 function fvideo(name,link,height) {
   document.getElementById(""+name).style.width="610px";
   document.getElementById(""+name).style.height=height;
   document.getElementById(""+name).style.top="0px";
   document.getElementById(""+name).style.left="0px";
   document.getElementById(""+name).style.borderstyle="inset";
   document.getElementById(""+name).src=link;
 }


function MachDatt(message) {
  while(s < p) {
    if(x >= c) {
      s++;
      x=0;
    }
    T = message.substr(0,s);
    parent.top.document.title = T;
    x++;
  }
}