jquery can do this, i think it switches it to "none" and then back to whatever it was before. 

http://api.jquery.com/toggle/