Panelbar widget (like Mozilla sidebar).
Creates a panelbar. Its main div is accessible as panelbar.div . Fading speed can be controlled via fadeDelay.
Adds a new panel, contained in element. It will be shown after clicking on clicker.
Switches to appropriate panel based on index.
var header = OAT.Dom.create("div"); var body = OAT.Dom.create("div"); var panelbar = new OAT.Panelbar(10); panelbar.addPanel(header, body); panelbar.go(0);