CONFORMED COPY AMENDED AND RESTATED CREDIT AGREEMENT DATED AS OF JULY 8, 1997