THIRD AMENDED AND RESTATED CREDIT AGREEMENT Dated as of October 17, 1997