Giants take series-opener from Dodgers