GalleryZoom = {
  tGenre: '',
  tLoad: function(strclass, strid)
  {
    var tstrclass = strclass;
    var tstrid = strid;
    var tstrURL = 'interface.php?type=detail&class=' + tstrclass + '&id=' + tstrid;
    if (GalleryZoom.tGenre != '') tstrURL = GalleryZoom.tGenre + '/' + tstrURL + '&pgenre=' + GalleryZoom.tGenre;
    cls.mask.tShow('<div id="galleryPopup" class="galleryPopup">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>');
    cls.mask.tSetStyle();
    cls.tigets(tstrURL, GalleryZoom.tLoads);
  },
  tLoads: function(strers)
  {
    var tstrers = strers;
    if (tstrers != '$error$')
    {
      var tobj = $('galleryPopup');
      if (tobj)
      {
        tobj.innerHTML = tstrers;
        cls.mask.tSetStyle();
      };
    };
  },
  tClose: function()
  {
    cls.mask.tClose();
  }
};