"use strict";jQuery((function(i){var t={width:300,autoOpen:!1,draggable:!1,resizable:!1,closeOnEscape:!1,destroyOnClose:!1,show:"fade",debug:!1};i(".jqUIDialog").livequery((function(){var o=i(this),e=i.extend({},t,o.data()),a=[];o.find(".jqUIDialogButton").each((function(){var t=i(this),e={},n=t.attr("href");e.text=t.text(),e.class=t.attr("class").replace(/ *jqUIDialogButton */,""),e.accesskey=t.attr("accesskey"),e.title=t.attr("title"),void 0!==n&&"#"!==n&&(e.click=function(){window.location.href=n}),t.is(".jqUIDialogClose")&&(e.click=function(){o.dialog("close")}),t.is(".jqUIDialogDestroy")&&(e.click=function(){o.dialog("destroy"),o.remove()}),t.is(".jqUIDialogSubmit")&&(e.click=function(){o.find("form:first").submit()}),i.extend(e,t.data()),void 0===e.click&&(e.click=function(){}),a.push(e)})).remove(),a.length&&(e.buttons=a),e.autoCenter&&(i(window).on("resize",(function(){o.dialog("option","position","center")})),e.draggable=!1),e.debug&&console&&console.log("opts=",e),o.removeClass("jqUIDialog").dialog(e),e.alsoResize&&o.dialog("widget").on("resize",(function(t,a){var n=a.size.height-a.originalSize.height||0,s=a.size.width-a.originalSize.width||0;o.find(e.alsoResize).each((function(){var t=i(this),o=t.data("origHeight"),e=t.data("origWidth");void 0===o&&(o=t.height(),t.data("origHeight",o)),void 0===e&&(e=t.width(),t.data("origWidth",e)),t.height(o+n),t.width(e+s)}))})),e.destroyOnClose&&o.on("dialogclose",(function(i,t){o.dialog("destroy"),o.remove()}))})),i(document).on("click",".jqUIDialogLink",(function(){var t=i(this),o=t.attr("href"),e=i.extend({},t.data());return o.match(/^(https?:)|\//)?i.ajax({url:o,data:e,success:function(o){var e=i(o);e.hide(),i("body").append(e),e.data("autoOpen",!0).on("dialogopen",(function(){t.trigger("opened")}))},error:function(i){throw i}}):i(o).dialog("open"),!1}))}));
