﻿var Modal = (function () {
  return {
    show: function (noGray, speed, callback) {
      if (!noGray)
        $('#ModalGrayOut').show();
      $('#ModalDialog').show(speed != undefined ? speed : UIConstants.speed, callback);
    },
    hide: function (speed) {
      $('#ModalDialog').hide(speed != undefined ? speed : UIConstants.speed);
      $('#ModalGrayOut').hide();
    },
    hideFast: function () {
      $('#ModalDialog').hide();
      $('#ModalGrayOut').hide();
    },
    setContent: function (html) {
      $('#ModalContent').html(html);
    }
  };
})();

