var ZoomWin;

function ShowWin(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=260,width=280,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=400,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/ofl.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=400,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/ofl.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function ShowWinVinatura2(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=260,width=280,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=800,width=200,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/oflvinatura2.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=800,width=200,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/oflvinatura2.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function ShowWinVinatura(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=260,width=280,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=400,width=400,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/oflvinatura.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=400,width=400,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/oflvinatura.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}


function ShowWinSonata_NEU(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=800,width=421,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=800,width=421,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/oflsonata_neu.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=800,width=421,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/oflsonata_neu.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function ShowWinVivace(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=491,width=410,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=491,width=410,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/oflvivace.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=491,width=410,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/oflvivace.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function ShowWinAkzent(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=325,width=600,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=325,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../img_oberflaechen/oflAkzent.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=325,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/oflAkzent.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function ShowWinPresse(File, Mod, Folder)
{ CloseWin();
  var Par, URL;
  switch (Mod)
  { case 1:
      Par = "height=260,width=280,resizable=no";
	  URL = File + ".html";
	  break;
	case 2:
	  Par = "height=400,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../img_oberflaechen/ofl.php?id=" + File + "&fld=" + Folder;
	  break;
	case 3:
	  Par = "height=400,width=600,left=220,top=220,resizable=no";
	  if (typeof Folder != "string")
	  { Folder = "";
	  }
	  URL = "../../../img_oberflaechen/ofl.php?id=" + File + "&fld=" + Folder;
	  break;
  }
  ZoomWin = window.open(URL, "Details", Par);
}

function CloseWin()
{ if (typeof ZoomWin == "object")
  { if (!ZoomWin.closed)
    { ZoomWin.close();
	}
  }
}