!function ($) { "use strict"; $.Zebra_Dialog = function () { var defaults = { animation_speed_hide: 250, animation_speed_show: 1500, auto_close: !1, buttons: !0, center_buttons: !1, custom_class: !1, keyboard: !0, max_height: 0, message: "", modal: !0, overlay_close: !0, overlay_opacity: ".9", position: "center", reposition_speed: 500, show_close_button: !0, source: !1, title: "", type: "information", vcenter_short_message: !0, width: 0, onClose: null }, plugin = this, options = {}, timeout; plugin.settings = {}, "string" == typeof arguments[0] && (options.message = arguments[0]), ("object" == typeof arguments[0] || "object" == typeof arguments[1]) && (options = $.extend(options, "object" == typeof arguments[0] ? arguments[0] : arguments[1])), plugin.init = function () { var a; plugin.settings = $.extend({}, defaults, options), plugin.isIE6 = "explorer" == browser.name && 6 == browser.version || !1, plugin.settings.modal && (plugin.overlay = $("
", { "class": "ZebraDialogOverlay" }).css({ position: plugin.isIE6 ? "absolute" : "fixed", left: 0, top: 0, opacity: plugin.settings.overlay_opacity }), plugin.settings.overlay_close && plugin.overlay.bind("click", function () { plugin.close() }), plugin.overlay.appendTo("body")), plugin.dialog = $("
", { "class": "ZebraDialog" + (plugin.settings.custom_class ? " " + plugin.settings.custom_class : "") }).css({ position: plugin.isIE6 ? "absolute" : "fixed", left: 0, top: 0, visibility: "hidden" }), !plugin.settings.buttons && plugin.settings.auto_close && plugin.dialog.attr("id", "ZebraDialog_" + Math.floor(9999999 * Math.random())); var b = parseInt(plugin.settings.width, 10); !isNaN(b) && b == plugin.settings.width && b.toString() == plugin.settings.width.toString() && b > 0 && plugin.dialog.css({ width: plugin.settings.width }), plugin.settings.title && (a = $("

", { "class": "ZebraDialog_Title" }).html(plugin.settings.title).appendTo(plugin.dialog)); var c = get_buttons(), d = $("
", { "class": "ZebraDialog_BodyOuter" + (plugin.settings.title ? "" : " ZebraDialog_NoTitle") + (c ? "" : " ZebraDialog_NoButtons") }).appendTo(plugin.dialog); if (plugin.message = $("
", { "class": "ZebraDialog_Body" + (get_type() !== !1 ? " ZebraDialog_Icon ZebraDialog_" + get_type() : "") }), plugin.settings.max_height > 0 && (plugin.message.css("max-height", plugin.settings.max_height), plugin.isIE6 && plugin.message.attr("style", "height: expression(this.scrollHeight > " + plugin.settings.max_height + ' ? "' + plugin.settings.max_height + 'px" : "85px")')), plugin.settings.vcenter_short_message ? $("
").html(plugin.settings.message).appendTo(plugin.message) : plugin.message.html(plugin.settings.message), plugin.settings.source && "object" == typeof plugin.settings.source) { var e = plugin.settings.vcenter_short_message ? $("div:first", plugin.message) : plugin.message; for (var f in plugin.settings.source) switch (f) { case "ajax": var g = "string" == typeof plugin.settings.source[f] ? { url: plugin.settings.source[f] } : plugin.settings.source[f], h = $("
").attr("class", "ZebraDialog_Preloader").appendTo(e); g.success = function (a) { h.remove(), e.append(a), draw(!1) }, $.ajax(g); break; case "iframe": var i = { width: "100%", height: "100%", marginheight: "0", marginwidth: "0", frameborder: "0" }, j = $.extend(i, "string" == typeof plugin.settings.source[f] ? { src: plugin.settings.source[f] } : plugin.settings.source[f]); e.append($("