Expedia is buying online travel company Travelocity for $280 million in cash.