No new railroad and no alteration or extension of an existing railroad shall hereafter cross any highway at grade, and no new highway shall hereafter cross any railroad at grade without the written permission of the Idaho transportation board first having been obtained. Neither a side track, team track, passing track nor house track shall be deemed a railroad within the meaning of this section. The term highway as used in this section shall not include streets and alleys in cities.