<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" 
          xmlns:xbl="http://www.mozilla.org/xbl" 
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<binding id="boxtarget">
<implementation>
  <method name="dragReceive">
    <parameter name="element"/>
    <body>
        alert(this.tagName +' receive dropped ' + element.tagName);
	element.parentNode.removeChild(element);
	this.appendChild(element, this.childNodes[0]);
        return true;
    </body>
  </method>
</implementation>
</binding>


<binding id="boxdata">
<implementation>
  <method name="dragStarted">
    <parameter name="dnd_stack"/>
    <body>
	//we set the popup
	dnd_stack.popup = this.cloneNode(true);
	
        dnd_stack.popup.width = this.boxObject.width/2;
	dnd_stack.popup.height = this.boxObject.height/2;

	dnd_stack.appendChild(dnd_stack.popup);

	return true;
    </body>
  </method>
</implementation>
</binding>
</bindings>
