jQuery 1.8's toggle method.