var dom = (document.getElementById)?1:0;
var ie4 = (document.all)?1:0;
var ns4 = (document.layers)?1:0;

function init(ticker)
{
  if (ticker == 1) {startticker();}
  if ((navigator.appCodeName != 'Mozilla') && (navigator.appCodeName != 'Opera'))
  {
    if (dom)
    {
      document.getElementById("infolayer").style.visibility = "visible";
    }
    else if(ns4)
    {
      eval("document['infolayer'].visibility = 'visible'");
    }
  }
  else
  {
    if ((navigator.appName != 'Netscape') || (navigator.appVersion.substring(0,1) > 4))
    {
      if (navigator.appVersion.substring(0,1) >= 4)
      {
        if (dom)
        {
          document.getElementById("layer1").className = 'border';
        }
      }
    }
  }
}

function info(datei)
{
  posx = ((screen.availWidth)-750)/2;
  posy = (((screen.availHeight)-600)-33)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  datei = datei+'.html';
  fenster = window.open(datei,'Information','width=750,height=600,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=yes,scrollbars=yes,status=no,toolbar=no,hotkeys=no,dependent=no');
}

function zeige(bild)
{
  posx = ((screen.availWidth)-770)/2;
  posy = (((screen.availHeight)-600)-33)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  fenster = window.open('','Großansicht','width=770,height=600,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no,hotkeys=no,dependent=yes');
  fenster.document.open();
  with (fenster.document)
  {
    write('<HTML><HEAD><TITLE>Großansicht</TITLE><META http-equiv="imagetoolbar" content="no"></HEAD><BODY BGCOLOR="#FCE0EC" TOPMARGIN="0" MARGINHEIGHT="0" onBlur="window.close()" onClick="window.close()">');
    write('<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER" VALIGN="MIDDLE"><IMG SRC="images/VB_',bild,'.jpg" BORDER="0"></TD></TR></TABLE>');
  }
  fenster.document.close();
}

function zeigeGlossar(bookmark)
{
  if (dom)
  {
    document.getElementById('glossarframe').style.display = "block";
    document.getElementsByName(bookmark)[0].focus();
  }
  else if (ns4)
  {
    document.layers['glossarframe'].display = "block";
  }
  else if (ie4)
  {
    glossarframe.style.display = "block";
  }
}

function schliesseGlossar()
{
  if (dom)
  {
    document.getElementById('glossarframe').style.display = "none";
  }
  else if (ns4)
  {
    document.layers['glossarframe'].display = "none";
  }
  else if (ie4)
  {
    glossarframe.style.display = "none";
  }
}

function zeigeBegriff(datei)
{
  posx = ((screen.availWidth)-750)/2;
  posy = (((screen.availHeight)-600)-33)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  datei = 'glossar.html#'+datei;
  fenster = window.open(datei,'Information','width=750,height=600,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=yes,scrollbars=yes,status=no,toolbar=no,hotkeys=no,dependent=no');
}

function zeigeVideo(datei)
{
  posx = ((screen.availWidth)-430)/2;
  posy = (((screen.availHeight)-430)-33)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  datei = 'videos/video'+datei+'.html';
  fenster = window.open(datei,'Video','width=430,height=430,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=yes,scrollbars=no,status=no,toolbar=no,hotkeys=no,dependent=no');
}