  // Flash Check
  var UseFlash = 0;
  
  // Globals
  // Major version of Flash required
  var requiredMajorVersion = 6;
  // Minor version of Flash required
  var requiredMinorVersion = 0;
  // Minor version of Flash required
  var requiredRevision = 0;
  
  // Flash Check Variable
  var UseFlash = 0;
  
  // Version check based upon the values entered above in "Globals"
  var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
  
  // Check to see if the version meets the requirements for playback
  if (hasReqestedVersion) 
  {
   UseFlash=1;
  } 
  else 
  {
   UseFlash=0;
  };
  
  // Ausgabe der Flash-Datei oder des Ersatzbildes
  function ShowFlashOrPic(FlashName,PicName,theWidth,theHeight,baseFolder,PicURL)
  {
   theHTMLCode='';  
   if (UseFlash) 
   { 
    theHTMLCode+='<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; 
    theHTMLCode+=' codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '; 
    theHTMLCode+=' ID="flashBild" WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" ALIGN="left">'; 
    theHTMLCode+=' <PARAM NAME=movie VALUE="' + baseFolder + '/' + FlashName + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> '; 
    theHTMLCode+=' <EMBED src="' + baseFolder + '/' + FlashName + '" quality=high wmode=transparent '; 
    theHTMLCode+=' swLiveConnect=FALSE WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" NAME="flashBild" ALIGN="left"'; 
    theHTMLCode+='TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">'; 
    theHTMLCode+=' </EMBED>'; 
    theHTMLCode+='</OBJECT>'; 
   } 
   else 
   {
    if (PicURL!="")
    {
     theHTMLCode+='<a href="'+PicURL+'">';
    }; 
    theHTMLCode+='<IMG SRC="' + baseFolder + '/' + PicName + '" WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" BORDER="0">'; 
    if (PicURL!="")
    {
     theHTMLCode+='</a>';
    }; 
   };
   document.write(theHTMLCode);
  };

