AMENDED AND RESTATED LOAN AGREEMENT dated as of June 25, 1998