  Motivated by a recent proposal for an experimental verification of the
dynamical Casimir effect, the macroscopic electromagnetic field within a
perfect cavity containing a thin slab with a time-dependent dielectric
permittivity is quantized in terms of the dual potentials. For the resonance
case, the number of photons created out of the vacuum due to the dynamical
Casimir effect is calculated for both polarizations (TE and TM). PACS:
42.50.Lc, 03.70.+k, 42.50.Dv, 42.60.Da.
