$('#product-popup-inner-content').replaceWith("
");
$('#product-popup-inner-content input').iCheck({
checkboxClass: 'icheckbox_minimal',
radioClass: 'iradio_minimal',
increaseArea: '20%'
});
function selectBoxOptionFormat(state) {
var originalOption = state.element;
return "" + $(originalOption).data('foo') + "" + state.text + "";
}
$(".relatedItemSelect").select2({
minimumResultsForSearch: -1,
formatSelection: selectBoxOptionFormat,
formatResult: selectBoxOptionFormat,
dropdownCssClass: "itemSelectList"
});
var prodPreviewShow = new window.ProductShow(
{
default_mask: 'mask1',
default_color: '',
paths: {"preview__full_mask1":"/uploads/product_asset/image/5110/masked_images/preview__full_mask1.png","default_full":"/uploads/product_asset/image/5110/masked_images/preview__full_mask1.png","preview__slider_mask1":"/uploads/product_asset/image/5110/masked_images/preview__slider_mask1.png","default_slider":"/uploads/product_asset/image/5110/masked_images/preview__slider_mask1.png","preview__thumb_mask1":"/uploads/product_asset/image/5110/masked_images/preview__thumb_mask1.png","default_thumb":"/uploads/product_asset/image/5110/masked_images/preview__thumb_mask1.png","preview__thumb_related_products_mask1":"/uploads/product_asset/image/5110/masked_images/preview__thumb_related_products_mask1.png","default_thumb_related_products":"/uploads/product_asset/image/5110/masked_images/preview__thumb_related_products_mask1.png","preview__recently_viewed_mask1":"/uploads/product_asset/image/5110/masked_images/preview__recently_viewed_mask1.png","default_recently_viewed":"/uploads/product_asset/image/5110/masked_images/preview__recently_viewed_mask1.png","default_mini":"/uploads/product_asset/image/5110/masked_images/preview__mini_mask1.png","default_popular":"/uploads/product_asset/image/5110/masked_images/preview__popular_mask1.png","preview__full_mask2":"/uploads/product_asset/image/5110/masked_images/preview__full_mask2.png","preview__slider_mask2":"/uploads/product_asset/image/5110/masked_images/preview__slider_mask2.png","preview__thumb_mask2":"/uploads/product_asset/image/5110/masked_images/preview__thumb_mask2.png","preview__thumb_related_products_mask2":"/uploads/product_asset/image/5110/masked_images/preview__thumb_related_products_mask2.png","preview__recently_viewed_mask2":"/uploads/product_asset/image/5110/masked_images/preview__recently_viewed_mask2.png","regular__full_0":"https://kvdshop.com/uploads/product_asset/regular_image/5111/full_front.png","regular__slider_0":"https://kvdshop.com/uploads/product_asset/regular_image/5111/slider_front.png","regular__full_1":"https://kvdshop.com/uploads/product_asset/regular_image/5112/full_detail.png","regular__slider_1":"https://kvdshop.com/uploads/product_asset/regular_image/5112/slider_detail.png","regular__full_2":"https://kvdshop.com/uploads/product_asset/regular_image/5113/full_close-up.png","regular__slider_2":"https://kvdshop.com/uploads/product_asset/regular_image/5113/slider_close-up.png","regular__full_3":"https://kvdshop.com/uploads/product_asset/regular_image/5114/full_set.png","regular__slider_3":"https://kvdshop.com/uploads/product_asset/regular_image/5114/slider_set.png","regular__full_4":"https://kvdshop.com/uploads/product_asset/regular_image/5115/full_liners-680x440.png","regular__slider_4":"https://kvdshop.com/uploads/product_asset/regular_image/5115/slider_liners-680x440.png"},
foil_paths: {},
animation_paths: {}
},
["mask1", "mask2"],
[],
'#smallPicturePopup',
'#bigPicturePopup img.main-product-image',
'full',
false,
'',
'.product-popup-big'
);
prodPreviewShow.init();
$("#smallPicturePopup a:first").addClass('active');
$('#smallPicturePopup a').on('click', function() {
smallPicClick(this, '#smallPicturePopup a', '#bigPicturePopup img');
return false;
});