umm...try this. I believe it should work
Code:
function hide_inv()
{
     reset(inventory_main, SHOW);
}