<!--
// (c) Stephan Slabihoud 1999-2001 - 8bit-museum.de
// Feel free to use it (but do not modify the copyright notice).
// Plz report changes and bugfixes to: webmaster@8bit-museum.de

  var NS  = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
  var IE  = (navigator.appName.indexOf("Microsoft Internet Explorer") != -1) ? true : false;
  var IE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false;
  var IE4 = (navigator.appVersion.indexOf("MSIE 4") != -1) ? true : false;
  var OP  = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
  var VER = navigator.appVersion.substring(0,1);

  var thePath = null;
  var theTitle = null;
  var theWidth = null;
  var theHeight = null;

  var popWin = '';
  var imgCount = 0;

function PopUpWin(Title, Path, Width, Height) {
  thePath = Path;
  theTitle = Title;
  theWidth = Width;
  theHeight = Height;

  Width=Width+32;
  Height=Height+32;
  if (IE) {
    if (IE3)      { Width=Width+ 4; Height=Height+ 2; }
    if (VER=="4") { Width=Width+ 4; Height=Height+ 2; }
    if (VER>="5") { Width=Width+ 0; Height=Height+ 0; }
  }
  if (OP) {
    Width=Width+ 0; Height=Height+ 0;
  }
  if (NS) {
    Width=Width+ 0; Height=Height+ 0;
  }

  var winFeatures = 'dependent=yes,locationbar=no,menubar=yes,toolbar=no,scrollbars=yes,resizable=yes,width=' + Width + ',height=' + Height;
  if (!IE3 && !IE4) if(popWin) if(!popWin.closed) popWin.close();
  popWin = window.open('toolshtml.htm', 'PopWin' + imgCount++, winFeatures);
}

function PopUpHtml(Path, Width, Height) {
  Width=Width+32;
  Height=Height+32;
  if (IE) {
    if (IE3)      { Width=Width+ 4; Height=Height+ 2; }
    if (VER=="4") { Width=Width+ 4; Height=Height+ 2; }
    if (VER>="5") { Width=Width+ 0; Height=Height+ 0; }
  }
  if (OP) {
    Width=Width+ 0; Height=Height+ 0;
  }
  if (NS) {
    Width=Width+ 0; Height=Height+ 0;
  }

  var winFeatures = 'dependent=yes,locationbar=no,menubar=yes,toolbar=no,scrollbars=yes,resizable=yes,width=' + Width + ',height=' + Height;
  if (!IE3 && !IE4) if(popWin) if(!popWin.closed) popWin.close();
  popWin = window.open(Path, 'PopWin' + imgCount++, winFeatures);
}

function filmbeschreibung(Number, Width, Height) {
  var winFeatures = 'dependent=yes,locationbar=no,menubar=yes,toolbar=no,scrollbars=yes,resizable=yes,width=' + Width + ',height=' + Height;
  if (!IE3 && !IE4) if(popWin) if(!popWin.closed) popWin.close();
  popWin = window.open('film.php4?desc=' + Number, 'PopWin' + imgCount++, winFeatures);
}

function PopUp(file, Width, Height) {
  var winFeatures = 'dependent=yes,locationbar=no,menubar=yes,toolbar=no,scrollbars=yes,resizable=yes,width=' + Width + ',height=' + Height;
  if (!IE3 && !IE4) if(popWin) if(!popWin.closed) popWin.close();
  popWin = window.open('popup.php4?desc=' + file, 'PopWin' + imgCount++, winFeatures);
}

