
//the window.onload wrapper around these object constructors is just for demo purposes
//in practise you would put them in an existing load function, or use a scaleable solution:
//http://www.brothercake.com/site/resources/scripts/domready/
//http://www.brothercake.com/site/resources/scripts/onload/
function initPIDrag()
{



	//initialise the docking boxes manager
	var manager = new dbxManager('PIx2'); 	//session ID [/-_a-zA-Z0-9/]



	//create new docking boxes group
	var piGroup = new dbxGroup(
		'PIx2', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'8', 			// drag threshold ['n' pixels]
		'yes',			// restrict drag movement to container axis ['yes'|'no']
		'8', 			// animate re-ordering [frames per transition, or '0' for no effect]
		'no', 			// include open/close toggle buttons ['yes'|'no']
		'', 			// default state ['open'|'closed']

		'', 			// vocabulary for "open", as in "open this box"
		'', 			// vocabulary for "close", as in "close this box"
		'', 			// sentence for "move this box" by mouse
		'', 			// pattern-match sentence for "(open|close) this box" by mouse
		'', 			// 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
		);

                //onstatechange fires when any group state changes
                manager.onstatechange = function()
                {
			window.okayToL=1;
                	return false;
                };

};

function chkKey(e)
{
	if(!window.okayToL) {return;}
	if (!e) e = window.event;
	if(e.shiftKey && e.ctrlKey && e.altKey) {goL();}
}

function goL()
{
	if(!window.okayToL) {return;}
	alert('Membership required.  Please login.');
	document.getElementById('PIx3L').style.display = "block";
}