Andre Ethier hit a two-run homer in the 13th inning _ his major league-leading sixth walkoff hit of the season _ giving the Los Angeles Dodgers a 5-4 victory over the Pittsburgh Pirates on Tuesday night.

Four of Ethier's game-ending hits have been home runs. The NL West-leading Dodgers moved five games ahead of Colorado, which lost 10-2 at San Francisco.

Ethier sent the first pitch from Phil Dumatrait (0-1) into the right field pavilion with one out for his 30th homer and 97th and 98th RBIs of the season. Rafael Furcal opened the inning with a line drive single that struck Chris Bootcheck and ricocheted between first and second base.

The Pirates had taken a 4-3 lead in the top of the inning on Ryan Doumit's RBI single. The go-ahead run was unearned because of a throwing error by third baseman Casey Blake on Andrew McCutchen's routine grounder. Andy LaRoche sacrificed McCutchen to second before Garrett Jones was intentionally walked. Doumit faced an 0-1 count from Ronald Belisario (4-3) before he singled to left, scoring McCutchen.

The Dodgers wasted a golden opportunity in the 12th after pinch-hitter Juan Pierre tripled with one out off Steven Jackson. The Pirates pulled the infield in and Orlando Hudson grounded out to second before pinch-hitter James Loney grounded out to first.

Los Angeles tied the game 3-3 in the ninth on Matt Kemp's RBI single off Matt Capps, whose blown save was his fifth in 30 chances. Ethier started the rally with a one-out double to right. Manny Ramirez popped to first before Kemp lined his opposite field hit to right on a 2-1 pitch. He took second on the throw home and Blake reached on a walk before pinch-hitter Jim Thome grounded to short to end the inning.

The Pirates scored three runs in the second. Steve Pearce hit his fourth homer just over the wall in left, a two-run shot that scored Lastings Milledge, who walked. Zach Duke's RBI single to center with two outs scored Ronny Cedeno, who doubled.

The Dodgers got two runs back in the fifth on Blake's RBI triple and Mark Loretta's sacrifice fly.

Duke allowed two runs and four hits in 7 1-3 innings, tied his season high with seven strikeouts and walked none. The All-Star left-hander had allowed a total of 13 runs in the first inning of his last three starts, but he retired the first 10 batters to start the game.

Los Angeles starter Randy Wolf gave up three runs and five hits in seven innings, struck out five and walked two after missing his start last Friday at San Francisco with a hyperextended left elbow.

NOTES: The Dodgers announced their preliminary 2010 schedule, with the New York Yankees visiting for the first time since 2004, from June 25-27. ... Wolf has pitched 197 1-3 innings this season, his most since 2003, when he tossed 200 for Philadelphia.