Every county bridge under this chapter shall be maintained and kept in repair by the county or counties involved except as may be otherwise provided by agreements between or among the county or counties and other political subdivisions or other persons as to the costs of the maintenance and repairs.
16 Pa.C.S. § 16702