if(!Dcrails) var Dcrails = {};
Dcrails.Dialog = Class.create(Simpltry.Dialog.Ajax, {
  dcOptions: {
    width: "40%",
    opacity: .8
  },
  initialize: function($super, url, options){
    this.options = Object.extend(Object.clone(this.dcOptions), options || {});
    $super(url, this.options);
  }
});

Dcrails.DomDialog = Class.create(Simpltry.Dialog.Base, {
  domOptions: {
    makeDraggable: false,
    displayTitle:false,
    removeDialog: false
  },
  initialize: function($super, node, options){
    this.options = Object.extend(Object.clone(this.domOptions), options || {});
    this.node = $(node);
    this.node.down(".close").observe('click', Simpltry.Dialog.removeAll);
    $super(this.options);
  },
  _show: function(){
    this.dialogLayer.appendChild(this.node.show());
  }
});