The Giants outhomered the Dodgers and when it came to pitching, San Francisco's bullpen was better, too.

Eugenio Velez, Pablo Sandoval and Aaron Rowand homered and pinch-hitter Fred Lewis doubled home the go-ahead run with two outs in the sixth inning, giving the Giants an 8-4 win Friday night in the series opener.

Manny Ramirez and Rafael Furcal homered for Los Angeles, which maintained its five-game lead over Colorado in the NL West when the Rockies lost 7-5 at Arizona.

The Giants' 80th victory _ their most since winning 91 in 2004 _ moved them 2 1/2 games behind Colorado in the wild-card race.

"Great job the bullpen did picking each other up," Giants manager Bruce Bochy said. "That's what wins ballgames for you, the bullpen doing its job."

The Giants lost two of three at home to the Dodgers last weekend, when Vicente Padilla was especially effective against them. But he didn't have it this time, giving up four runs and eight hits in five innings, striking out three and walking one.

"He didn't have the same command he had in his last couple of starts, but he still hung around and kept us in the game," catcher Russell Martin said. "It was a tough game, but I didn't think he did a bad job out there."

Lewis doubled over left fielder Ramirez's head, scoring Travis Ishikawa, who doubled to right center and took third on a strikeout and fielder's choice when Rowand was thrown out at first by Martin.

"I saw a fastball that was real close. He tried to run back with the same pitch and it hung over the plate," said Lewis, who thought Ramirez had a shot at making the catch.

"I'm going to have to take him out to dinner. I'm thankful he didn't catch it."

Velez doubled home Lewis as the ball again went over Ramirez's head, giving the Giants a 6-4 lead. Velez homered to lead off the game after entering the game hitting just .077 in 11 games against Los Angeles this season.

Bob Howry (2-6) got two outs to finish the fifth inning.

San Francisco extended its lead to 4-1 in the third on Sandoval's three-run homer off the first pitch from Padilla after singles by Velez and Freddy Sanchez.

Ramirez homered and drove in three runs as the Dodgers' three-game winning streak ended.

"They pitched better than we did, it was probably as simple as that," Dodgers manger Joe Torre said. "We kept battling back and we had some opportunities late. We were ready to play, we just didn't pitch well."

Ramon Troncoso (4-4) allowed two runs and three hits in two-thirds of an inning, striking out one and walking none.

Chad Billingsley made his first relief appearance of the season for the Dodgers after being sent to the bullpen. He gave up a homer to Rowand with two outs in the eighth and an RBI single to Juan Uribe in the ninth.

Phillies 9, Braves 4

Ryan Howard homered twice, Jimmy Rollins hit a three-run shot, and visiting Philadelphia won its sixth straight and ended Atlanta's seven-game winning streak.

Tim Hudson (1-1) who gave up six hits, three runs and one walk with three strikeouts in seven innings.

Kyle Kendrick (2-1) won his second consecutive appearance with four scoreless innings.

Diamondbacks 7, Rockies 5

Gerardo Parra doubled in the go-ahead runs, Brandon Allen and Ryan Roberts homered and the last-place Diamondbacks handed the visiting Rockies their fifth loss in six games.

Leo Rosales (2-1) pitched a scoreless seventh. Randy Flores (0-1) faced one batter.

Juan Gutierrez gave up a run in the ninth but stranded the potential tying run at first for his sixth save in seven chances.

Marlins 4, Reds 3

John Baker's RBI single highlighted Florida's four-run rally in the ninth inning and Florida snapped its nine-game losing streak at Cincinnati.

The Reds were 57-0 when leading after eight innings, the only NL team left with a perfect mark. Manager Dusty Baker decided to try to protect a 2-0 lead by having closer Francisco Cordero (2-6) pitch for the fifth day in a row.

Brendan Donnelly (3-0) got the win despite giving up Joey Votto's RBI single in the eighth. Leo Nunez gave up a solo homer by Juan Francisco in the ninth, but got his 23rd save in 29 chances.

Nationals 6, Mets 5

Ryan Zimmerman hit his 30th homer, Josh Bard homered and drove in three runs to help visiting Washington knock New York 22 games below .500 for the first time since the end of the 2003 season.

New York rallied for three runs in a wild ninth inning and had runners at second and third when Jeff Francoeur hit a comebacker that knocked Mike MacDougal's glove off his hand. He picked up the ball barehanded and lobbed a shaky throw to first for the final out.

J.D. Martin (5-4) had another solid start, sending the Mets to their sixth straight loss and 10th in 11 games. Mike Pelfrey (10-11) hadn't allowed a home run at home since June 10.

Pirates 5, Padres 1

Charlie Morton allowed one run in seven innings, helping host Pittsburgh win for only the third time in 20 games.

Morton (4-8) had lost six of his past seven decisions but shook off a rough first inning Friday to allow only six hits and a walk.

Tim Stauffer (4-7) gave up three runs on four hits and four walks in three innings.

Brewers 3, Astros 2

Casey McGehee singled in the go-ahead run in the eighth inning and Milwaukee handed visiting Houston its fifth straight loss.

Wesley Wright (3-4) gave up a double to Prince Fielder with one out in the ninth and McGehee hit a run-scoring single off LaTroy Hawkins on the first pitch.

David Weathers (4-5) picked up the win with a scoreless eighth. Trevor Hoffman pitched the ninth for his 34th save in 37 chances.

Cardinals 3, Cubs 2

Matt Holliday homered off Aaron Heilman leading off the bottom of the ninth inning as St. Louis reduced its magic number for clinching the NL Central to six.

Holliday hit a 3-1 pitch from Heilman (3-4) that landed in the Cardinals' bullpen beyond the right field wall for his third career game-winning homer and second this season.