section 561(2)


561(2) An accused who elects to be tried by a provincial court judge or who does not request a preliminary inquiry under subsection 536(4) may, not later than 14 days before the day first appointed for the trial, re-elect as of right another mode of trial, and may do so after that time with the written consent of the prosecutor.