SECOND AMENDED AND RESTATED CREDIT AGREEMENT dated as of November 22, 2004