Two rain delays and a three-run deficit weren't about to dampen the White Sox's spirits Thursday night.

Joe Crede hit a single off reliever Joba Chamberlain with one out in the ninth inning to score Carlos Quentin and vault the Sox to a 7-6 victory over the New York Yankees and avoid a three-game sweep.

The Sox celebrated in grand style after Quentin crossed home plate. Quentin started the winning rally when he lined a one-out double off the left-field wall.

"It always seems like [Crede] makes something happen," manager Ozzie Guillen said. "Those guys are about that. We were only one shot away, even though [the Yankees] tied the game.

"We score a lot or we don't score that many. That's the fun thing about this club."

The loss was Chamberlain's first in 27 major-league appearances.

The Yankees took a three-run lead in the third inning, but the Sox came back with five in the fourth and another in the fifth when Jim Thome's 513th career home run moved him into sole possession of 19th place on the all-time list ahead of Ernie Banks and Eddie Mathews.

The Sox's five-run fourth came at a cost. Right fielder Jermaine Dye slid hard across home plate to beat Morgan Ensberg's throw from third for the fourth run. Dye had to leave the game after six innings because of a left groin strain and Guillen said he wouldn't play Friday night against the Orioles.

Starter Gavin Floyd, coping with two rain delays and a mushy mound, and the bullpen couldn't hold a 6-3 lead.

Floyd retired the first two batters of the sixth before Jason Giambi actually legged out a double and Melky Cabrera followed with a two-run homer into the picnic area down the right-field line.

In the seventh, Matt Thornton retired the first two batters before allowing a single to Bobby Abreu and a walk to Hideki Matsui.

Scott Linebrink replaced Thornton and Ensberg hit a single up the middle to score Abreu and tie the game 6-6.

The Yankees loaded the bases, but Crede sprinted toward the tarp down the left-field line to catch Giambi's foul pop for the final out.

In the ninth, closer Bobby Jenks bailed Boone Logan out of a jam when he induced pinch-hitter Jorge Posada to hit into an inning-ending double play with the go-ahead run at second.

After struggling with runners in scoring position, the Sox rediscovered their knack for clutch hitting in the fourth as Paul Konerko, Dye and A.J. Pierzynski came through with consecutive hits.

Alexei Ramirez, who started at second in place of Juan Uribe, sliced a ground-rule double down the right-field line to score Pierzynski with the fifth run.

The start of the game was delayed 34 minutes because of rain and stopped for 51 minutes after the top of the third. Floyd wasn't nearly as sharp as he was in his previous three starts as he walked four.

mgonzales@tribune.com