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

Sub photoflipviewer_FSCommand(ByVal command, ByVal args)
select case command
case "setHref" location.href = args
case "setTitle" document.title = args
end select
end sub