Exhibit 10.5 AMENDED AND RESTATED TAX ALLOCATION AGREEMENT