AMENDED AND RESTATED CREDIT AGREEMENT dated as of June 29, 2004