No highway shall be constructed across the track of any railroad company above or below grade, nor shall the track of any railroad company be constructed across a highway above or below grade, without having first secured the permission of the Department of Transportation. If permission is granted, the department shall, after a hearing, unless hearing is not required under ORS § 824.214, prescribe the terms and conditions upon which such crossing shall be made and shall allocate the cost of construction and maintenance. [Formerly 763.040]