NEW YORK (AP) — Shares of TripAdvisor Inc. surged to all-time highs Thursday after the travel website operator posted stronger second-quarter results.

THE SPARK: TripAdvisor reported its earnings after the market closed Wednesday. The company said its net income climbed 26 percent, and excluding one-time charges, it earned 52 cents per share. Revenue grew 7 percent to $246.9 million. Both totals were greater than analysts expected.

THE BIG PICTURE: TripAdvisor runs sites that offer travel reviews. In the quarter, the company began its first television advertising campaign with test spots in Boston, Seattle and four other cities. TripAdvisor also recently dispensed with popup displays and started offering a hotel "metasearch" that allows users to review hotel options based on criteria like user reviews, price, chain, and arrival and departure dates.

THE ANALYSIS: Stifel Nicolaus analyst Michael Purcell said visitors to TripAdvisor's site are increasing and hotel shopper growth was strong. However the metasearch option is affecting its revenue, and having trouble with turning clicks into cash in its international and smartphone businesses.

Purcell maintained a "Hold" rating on the shares.

SHARE ACTION: TripAdvisor shares climbed $10.49, or 17.2 percent, to $71.63 in afternoon trading and reached an all-time high of $71.96. The stock is up about 46 percent in 2013 and has doubled in value since the end of October.