EXECUTED VERSION AMENDED AND RESTATED LOAN AGREEMENT Dated as of July 17, 1997