An apparatus and method for delivering electrical shock therapy in order to treat atrial tachyarrhythmias such as fibrillation utilizes a dynamically varying threshold to detect R-waves and synchronously deliver a defibrillation shock. An electromagnetic induction pen including a coil for electromagnetic induction spaced apart from a nib of the pen is prepared. Each of the first terminations is electrically connected to a corresponding one of the second terminations. The plug includes at least one plug portion having openings corresponding to an interior configuration. Respective focusing positions in regions located in vicinities of both ends, in the main scan direction, of a main subject region in a film image on a photographic film, and in a region including the center of the film in the main scan direction are each detected as a virtual focusing position, and based on the detected virtual focusing positions, a final focusing position is determined. A threaded collar 28 advances the threaded rod 44 axially, thereby rotating the cap 30 relative to the hub 12.