This is actually built into bootstrap 2 (which the project is currently using) with the css class "hide".