AMENDED AND RESTATED CREDIT AGREEMENT, dated as of November 1, 1997