AMENDED AND RESTATED CREDIT AGREEMENT Dated as of July 29, 2005 by and among