


//initialise the docking boxes manager
var manager = new dbxManager(
	'rules',				// session ID [/-_a-zA-Z0-9/]
	'no',					// enable box-ID based dynamic groups ['yes'|'no']
	'yes',					// hide source box while dragging ['yes'|'no']
	'button'				// toggle button element type ['link'|'button']
	);




//create a new docking boxes group
var purple = new dbxGroup(
	'purple', 				// container ID [/-_a-zA-Z0-9/]
	'confirm-insert', 		// orientation ['vertical'|'horizontal'|'freeform'|'freeform-insert'|'confirm'|'confirm-insert']
	'15', 					// drag threshold ['n' pixels]
	'no',					// restrict drag movement to container/axis ['yes'|'no']
	'10', 					// animate re-ordering [frames per transition, or '0' for no effect]
	'yes', 					// include open/close toggle buttons ['yes'|'no']
	'open', 				// default state ['open'|'closed']

	'', 										// word for "open", as in "open this box"
	'', 										// word for "close", as in "close this box"
	'click-down and drag to move this box', 	// sentence for "move this box" by mouse
	'', 										// pattern-match sentence for "(open|close) this box" by mouse
	'use the arrow keys to move this box. ', 	// sentence for "move this box" by keyboard
	'',  										// pattern-match sentence-fragment for "(open|close) this box" by keyboard
	'%mytitle  [%dbxtitle]', 					// pattern-match syntax for title-attribute conflicts

	'hit the enter key to select this target',	// confirm dialog sentence for "selection okay"
	'sorry, this target cannot be selected'		// confirm dialog sentence for "selection not okay"
	);




//set rules for this group
purple.setRule('NS', 'zero');
purple.setRule('EW', 'one');
purple.setRule('S', 'two');
purple.setRule('NeSe', 'three');
purple.setRule('*{1}', 'four');
purple.setRule('W, S', 'five');
purple.setRule('NS, $', 'six');
purple.setRule('S{1} | W{2}', 'seven');
purple.setRule('*', 'eight');
purple.setRule('T:1/2', 'nine');
purple.setRule('*{0}', 'ten');
purple.setRule('*{2}', 'eleven');





