Parton distributions and parity-violating asymmetries in W± and Z production at RHIC