I'd guess mostly javascript... You can use css positioning to put a bunch of elements right on top of eachother. Then set the style display property to none for all but one. Then, with javascript, you can change the display property to make another one visible and another not. It's more or less the same thing as when you see pop up hierarchical menus.