Earnings set records in second quarter of 2005