"Invention, my dear friends, is 93% perspiration, 6% electricity, 4% evaporation and 2% butterscotch ripple." -- Willy WonkaA mix of good and bad news had the markets in a lull for much of Wednesday before a late breakout to the upside. The witch's brew of conflicting corporate, economic and technical data ultimately resulted in the strongest gains yet of 2005. Whether the market stew justified that result is less clear, bringing to mind Willy Wonka's refrain that the ingredients of progress don't always add up in a logical way. The final hour of trading was strong, when the supposed "smart money" is placing bets but the open was also strong, when the alleged "dumb money" comes online. The Dow Jones Industrial Average gained almost 62 points, or 0.6%%, to 10,617.78, as Intel ( INTC) rose 3% on its improved outlook issued Tuesday night. Additionally, Honeywell ( HON), Boeing ( BA) and United Technology ( UTX) posted gains of 2% to 3% each. The S&P 500 lagged, as it rose 0.4% to 1187.70 although it managed to close above its simple 50-day moving average at 1186 after trading below it intraday. Bad news on a variety of components, including King Pharmaceuticals ( KG), down 7%, OfficeMax ( OMX), down 5%, and United Parcel Service ( UPS), which lost 7%, among many others, held back the large-cap index. The Nasdaq Composite gained 0.6% to 2092.53 after sliding past its low for the year of 2076.69 early on. That touched the index's pre-Thanksgiving low and provided room for an immediate bounce. Advancers slimly outnumbered losers but up volume was almost three times bigger than down volume. Ultimately, the Intel 'halo effect' held, as the Philadelphia Stock Exchange Semiconductor Index gained 1.4% and a Goldman Sachs upgrade lifted telecom equipment makers.