Prosecution rests in trial of ex-jail director