Can I do this with less writing?

Can I do this with less writing?

  1. $(document).ready(function() {
  2. $("#d1").hide();
  3. $("#d2").hide();

  4. $("#i1").mouseenter(function() {
  5.   $("#d1").show(100);
  6. });
  7. $("#i1").mouseleave(function() {
  8.   $("#d1").hide(100);
  9. });

  10. $("#i2").mouseenter(function() {
  11.   $("#d2").show(100);
  12. });
  13. $("#i2").mouseleave(function() {
  14.   $("#d2").hide(100);
  15. });
  16. });

This is my code. I've got a lot more of these d's and i's and I want to make the same thing with them all. Is there a way to not repeat this code over and over again and only changing 2 id's?