Shares of Lexington-based Tempur-Pedic International lost almost half their value Wednesday, after the high-end mattress company announced that it expects sales and earnings to decline in the second quarter. The decline is blamed on Tempur-Pedic's rivals all offering new foam-based mattress products and supporting them with advertising.