%mlink(STRY:; PHOTO:FXPB103-051502; AUDIO:%)

SAN FRANCISCO (AP) _ Greg Maddux pitched shutout ball into the ninth inning and Vinny Castilla homered and drove in three runs as the Atlanta Braves snapped a three-game losing streak with a 6-1 victory over the San Francisco Giants on Wednesday.

Maddux (4-2) gave up five hits and two walks, and left with the bases loaded and no outs in the ninth.

Thanks to a pair of double plays, Maddux threw just 66 pitches through the first seven innings. He retired 13 of 14 batters at one stretch, and improved to 23-12 lifetime against the Giants.

John Smoltz relieved Maddux and gave up Damon Minor's RBI single.

Castilla, who had an eight-game hitting streak stopped during Tuesday night's loss, came back with his fifth homer of the year, a solo shot off Livan Hernandez (4-4) in the second. Castilla added a two-run single in the third.

Hernandez lost his fourth straight decision. He lasted a season-low 4 1-3 innings, giving up five runs on six hits and four walks.

Atlanta scored three times in the third for a 4-0 lead. Following walks to Rafael Furcal and Mark DeRosa, Chipper Jones singled in a run. Andruw Jones walked to load the bases and Castilla hit a two-run single.

Chipper Jones added an RBI double in the fifth and Furcal singled home a run in the eighth.

Notes: Maddux was bidding for the 103rd complete game and 35th shutout of his career. ... Despite the loss, the Giants still have won 10 of their past 13 games. ... Castilla is batting .292 (21-for-72) on the road, but only .171 (13-for-76) at home. ... This was the fourth matchup between Maddux and Hernandez in the past five series between the teams. Maddux is 3-1 in those games. ... Giants OF Barry Bonds has walked in 26 of his 37 games overall and leads the majors with 51.