function zeigebild(bild)
{
  posx = ((screen.availWidth)-750)/2;
  posy = ((screen.availHeight)-580)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  fenster = window.open('','Anzeige','width=750,height=580,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>Transmythos</TITLE></HEAD><BODY BACKGROUND="images/hintergrund.jpg" onBlur="window.close()" onClick="window.close()">');
    write('<TABLE WIDTH="100%" HEIGHT="100%"><TR><TD ALIGN="CENTER" VALIGN="MIDDLE"><IMG SRC="photos/',bild,'_vb.jpg" BORDER="0"></TD></TR></TABLE>');
  }
  fenster.document.close();
}

function zeigebildsw(bild)
{
  zeigebild(bild);
}

function zeigetext(datei)
{
  posx = ((screen.availWidth)-750)/2;
  posy = ((screen.availHeight)-580)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  fenster = window.open('','Anzeige','width=750,height=580,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=yes,scrollbars=yes,status=no,toolbar=no,hotkeys=no,dependent=yes');
  fenster.document.open();
  with (fenster.document)
  {
    write('<HTML><HEAD><TITLE>Transmythos</TITLE></HEAD><BODY BACKGROUND="images/hintergrund.jpg" onBlur="window.close()" onClick="window.close()">');
    write('<TABLE WIDTH="100%" HEIGHT="100%"><TR><TD ALIGN="CENTER" VALIGN="MIDDLE"><IMG SRC="photos/',datei,'_vb.jpg" BORDER="0"></TD></TR></TABLE>');
  }
  fenster.document.close();
}

function zeigetextsw(datei)
{
  zeigetext(datei);
}

function zeigedokumente(datei,von,bis)
{
  posx = ((screen.availWidth)-750)/2;
  posy = ((screen.availHeight)-580)/2;
  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}
  posx = Math.floor(posx);
  posy = Math.floor(posy);
  fenster = window.open('','Anzeige','width=750,height=580,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=yes,scrollbars=yes,status=no,toolbar=no,hotkeys=no,dependent=yes');
  fenster.document.open();
  with (fenster.document)
  {
    write('<HTML><HEAD><TITLE>Transmythos</TITLE></HEAD><BODY BACKGROUND="images/hintergrund.jpg" onBlur="window.close()" onClick="window.close()">');
    write('<TABLE WIDTH="100%" HEIGHT="100%"><TR><TD ALIGN="CENTER" VALIGN="MIDDLE">');
    for (var zaehler=von; zaehler<=bis; zaehler++)
    {
      write('<IMG SRC="photos/'+datei+zaehler+'_vb.jpg" BORDER="0"><BR CLEAR="ALL"><BR>');
    }
    write('</TD></TR></TABLE>');
  }
  fenster.document.close();
}

function zeigedokumentesw(datei,von,bis)
{
  zeigedokumente(datei,von,bis);
}
