var menuController = {
current:false,

show:function(id){
if(id==this.current)
{
document.getElementById(id).style.display="none";
this.current = false;
return;
}

document.getElementById(id).style.display="block";

if(this.current)
document.getElementById(this.current).style.display="none";
this.current = id;
}
};

