// VBScript for getting FlashVersion under IE/Win
// Visual basic helper required to detect Flash Player ActiveX control version information
// Original from the Macromedia(c) FlashPlayer-Detection-Kit
// Returns true if the requested MajorVersion i is supported by the installed MajorVersion
Function VBGetSwfVer(i)
  on error resume next
  Dim swControl, swVersion
  swVersion = 0
  
  set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
  if IsObject(swControl) then
    swVersion = swControl.GetVariable("$version")
  end if
  VBGetSwfVer = swVersion
End Function
