AMENDED AND RESTATED CREDIT AGREEMENT Dated as of August 17, 2004 among