The stock market hit a new four-year high this week and then developed vertigo that brought stocks back from their peak and left them almost unchanged for the week.

Though the over-watched Dow Jones industrial average couldn't keep up, the Standard & Poor's 500-stock index and the Nasdaq Stock Market composite index reached their highest levels since June of 2001 on Thursday.

Friday, predictably, brought lower prices as traders tried to sell at the top of the market.

The rally-leading Nasdaq held enough ground to end the week up 5 points at 2184.83. The S&P 500 retreated so sharply that it ended the week up less than a point at 1234.18. The Dow closed down 10 points at 10,640.91.

The month of July still was the best of the year for the market, with the Dow and S&P up 3.6 percent, the Nasdaq up 6.2 percent.

Along with the dizzying height, traders were scared by Friday's gross domestic product report, which showed the economy grew at a 3.4 percent annual rate. That was the ninth consecutive quarter of growth of more than 3 percent -- the best streak in 20 years.

-- Jerry Knight