Defined a variable “var = east” and assigned to “Div Id= east” using document.getElementById.”
The entire layout is split into multiple Divs like North, East, West and South.
And then the Plot thickens….
See another Example, where in, along with the Buttons, Text links are used to Hide UnHide Divs.
Other variation in this example is that according to the Hide/UnHide status, the corresponding button and text gets suitably hidden/shown.