AMENDED AND RESTATED CREDIT AGREEMENT Dated as of July 18, 2005