Make a div tag toggle between two css classes
You can use
if(document.getElementById("MyId").className == "hide")
document.getElementById("MyId").className = "show";
else
document.getElementById("MyId").className = "hide";
But you need first to give an ID to the div.. Please find below a working example: http://jsfiddle.net/HvmmY/