SAN FRANCISCO -- Home runs by Buster Posey and Angel Pagan supplied all the runs Jake Peavy would need Monday as the Giants beat the Colorado Rockies 3-1 before a Fourth of July crowd of 41,874.Posey hit a solo home run in the second inning, his 10th, with Pagan hitting a two-run home run with Ruben Tejada aboard in the third inning. Peavy gave up just one run in 6 2/3 innings, and that came in the top of the second when he balked with the bases loaded to bring in the Rockies' run. He walked two, struck out six and improved to 5-7.