/*
Uses declarative syntax to define a dialog. Syntax:
<a
href="{selector or url"
data-rel="modalDialog"
data-dialog-title="{title}"
data-dialog-onopen="{onopen handler}"
data-dialog-onbeforeopen="{onbeforeopen handler}"
data-dialog-onclose="{onclose handler}"
data-dialog-onnbeforeclose="{onbeforeclose handler}"
data-dialog-maxWidth="{maxWidth}"
data-dialog-skin="{skin}"
data-dialog-ajax="{true or false}"
data-dialog-destroyonclose="{true or false}"
data-dialog-closeonbackgroundclick="{true or false}"
data-dialog-closeonescape="{true or false}"
data-dialog-zIndex="{default zIndex}"
>link</a>
For node dialogs, these same properties can also be put on the dialog node as well.
TODO: Move some of the declarative settings into the core, because it is useful regardless of making
the trigger tag unobtrusive
TODO Make the dialog veil hide earlier when closing dialogs. It takes too long.
*/
(function ($) {
var DIALOG_DATA_KEY = "modalDialogUnobtrusive";