1 addLoadEvent( function() {var manager = new dbxManager( dbxL10n.manager );} );
3 addLoadEvent( function()
5 //create new docking boxes group
6 var meta = new dbxGroup(
7 'grabit', // container ID [/-_a-zA-Z0-9/]
8 'vertical', // orientation ['vertical'|'horizontal']
9 '10', // drag threshold ['n' pixels]
10 'no', // restrict drag movement to container axis ['yes'|'no']
11 '10', // animate re-ordering [frames per transition, or '0' for no effect]
12 'yes', // include open/close toggle buttons ['yes'|'no']
13 'closed', // default state ['open'|'closed']
14 dbxL10n.open, // word for "open", as in "open this box"
15 dbxL10n.close, // word for "close", as in "close this box"
16 dbxL10n.moveMouse, // sentence for "move this box" by mouse
17 dbxL10n.toggleMouse, // pattern-match sentence for "(open|close) this box" by mouse
18 dbxL10n.moveKey, // sentence for "move this box" by keyboard
19 dbxL10n.toggleKey, // pattern-match sentence-fragment for "(open|close) this box" by keyboard
20 '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
23 // Boxes are closed by default. Open the Category box if the cookie isn't already set.
24 var catdiv = document.getElementById('categorydiv');
26 var button = catdiv.getElementsByTagName('A')[0];
27 if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) )
28 meta.toggleBoxState(button, true);
31 var advanced = new dbxGroup(
35 'yes', // restrict drag movement to container axis ['yes'|'no']
45 '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts