Realization of all-optical multistate switching in an atomic coherent medium.