I tried the toggle method first, but it did not result in a smooth animation for the search form so I opted for the more primitive show/hide method.  Feel free to experiment, I know you know a lot more JS than I.