SECOND AMENDED AND RESTATED CREDIT AGREEMENT dated as of October 31, 2006, among