One-half of all fines collected hereunder shall go to the county wherein the prosecution was had, and the remaining one-half thereof shall go into the state treasury and constitute a special fund to be expended by the department for the purposes of carrying out the provisions of this article.