this is untested, but insert this into the hide function:
Code:
document.getElementById('ItemA').className = "HiddenItem"
and this into the show function:
Code:
document.getElementById('ItemA').className = ""