Resonance and parametric interaction of light in a nonlinear medium