var Global =  {
  "image": function(element){
    try {
      if (element.href.split("?")[1]) {
        var query = element.href.split("?")[1].toQueryParams();
        var w = query.w;
        var h = query.h;
      }
      width = (w == null || w == "") ? 300 : Number(w);
      height = (h == null || h == "") ? 300 : Number(h);
      var str = (w == null || w == "") ? "style=\"width:300px;\"" : "style=\"width:" + width + "px; height:" + height + "px;\"";

      Dialog.info("<img src=\"" + element.href.split("?")[0] + "\" " + str + " />", {
        className: "black alphacube",
        width: width + 20,
        height: height + 20,
        closable: true,
        draggable: true,
        destroyOnClose: true
      });
    }
    catch (e) {
      alert(e);
    }
  }
}
