Motion in a rocked ratchet with spatially periodic friction