.toggle easing?

.toggle easing?

I am using the below code to open and close a div. It works great but it has no easing. How can I add it? if I change out .toggle for .slidetoggle it breaks. Or if I add any of the easing effect inside the () it breaks. What am I missing
  1. function opendiv(divId) {
       $("#"+divId).toggle();
    }



I then call the div by adding this to an image and the div I want opens.
  1. <a href="javascript:opendiv('togglediv');">