Optical and near-infrared observations of the Fried Egg Nebula