(function ($) {
    "use strict";
    //Start Plugin
    $.fn.uidialog = function (userOptions) {
        var options = {
                height: 550,
                width: 750,
                minHeight: this.height,   //set same as the width / height
                minWidth: this.width,
                autoOpen: false,
                modal: true,
                draggable: false,
                show: "drop",
                title: "NEW Title",
                buttons: {
                    "Close": function () {
                        $(this).dialog("close");
                    }
                }
            };
        $.extend(options, userOptions);
        return this.dialog(options);
    };

}(jQuery));

