What is the code to hide/show a button in Adobe PDF when clicking another button that's purpose is to shows/hides a layer?
<p>I have a button that I edited the action to "run a JavaScript" under "Mouse Down." </p>

<p>This is the code I put into the JavaScript (Button is titled "Site External Doors"):</p>

<pre><code>var docOCGs = this.getOCGs(); 
for (var x=0; x &lt; docOCGs.length; x++) 
{
          if(docOCGs[x].name == "Site External Doors" ||
     docOCGs[x].name == "Site External Doors")
          {
                    docOCGs[x].state = !docOCGs[x].state; 
 }
}
// Button Style and Label Change 
if(event.target.borderStyle == border.b)
{
          // Perform Push Down Actions
          event.target.borderStyle = border.i;

          event.target.buttonSetCaption("Site External Doors Off");
} else {
          // Perform Pop Up Actions

          event.target.borderStyle = border.b;

          event.target.buttonSetCaption("Site External Doors On");
}
</code></pre>

<p>This code shows a layer when clicked and hides the layer when clicked again.
I am wondering what code I need to add to get another button (titled "Door 52") to appear when the button "Site External Doors" is clicked and hide when it is clicked again. </p>