If necessary in the creation of a detour under section 16975 (relating to county road detours), the county commissioners responsible for laying out the detour may enter into an agreement with the owners of private lands covering the acquisition of right-of-way privileges over private property for the period when the main highway shall be closed to traffic. In the exercise of the rights conferred by this section, the county commissioners responsible may pay for the necessary maintenance, subsequent repair and land rental out of funds available for the construction and maintenance of the roads in the commissioners charge.
16 Pa.C.S. § 16976