Dollar edges away from highs, Spain crisis pressures euro