select_item: function(e, o) {
console.log("select item: " + e + " --- " + o);
var t = this,
i = $(".msoptionsprice-" + e),
n = $("#options-form_" + e + " .subprod-title").html() + ":",
s = $("#options-form_" + e).find(".images-set img");
console.log("pic ---- "), console.log(s);
var a = s.data("preview-img");
$(this.options.container).find('[data-preview-img="' + a + '"]').addClass("selected");
var r = this.options.container + " .pic";
$("body").on("click", r, function(a) {
a.preventDefault();
var r = $(this).data("name"),
c = $(this).parents(".gal-item").find(".price").html();
i.html(c);
var l = $(this).css("background-image");
l = (l = l.replace("url(", "").replace(/\"/gi, "")).substring(0, l.length - 1), s.attr("src", l);
var p = $(this).data("preview-img");
s.data("preview-img", p), s.attr("data-preview-img", p), t.sessionStorageOptions.options[o] = {
is_gallery: !0,
small_pic: l,
big_pic: p,
parent_id: e,
caption: n,
value: r,
price: c
}, t.writeToSessionStorage(), $("#options-form_" + e + " .images-set .label").html(r), console.log("id: " + e + " name: " + o + " val: " + r), t.parametersChange(e, o, r), $(t.options.container + " .pic").removeClass("selected"), $(this).addClass("selected"), $.magnificPopup.close(), $("#hidden-gallery").empty()
})
},