Exhibit 10.5 AMENDED AND RESTATED CREDIT AGREEMENT dated as of August 8, 2003