$('#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: 'mask2',
default_color: '',
paths: {"preview__full_mask1":"/uploads/product_asset/image/2616/masked_images/preview__full_mask1.png","preview__slider_mask1":"/uploads/product_asset/image/2616/masked_images/preview__slider_mask1.png","preview__thumb_mask1":"/uploads/product_asset/image/2616/masked_images/preview__thumb_mask1.png","preview__thumb_related_products_mask1":"/uploads/product_asset/image/2616/masked_images/preview__thumb_related_products_mask1.png","preview__recently_viewed_mask1":"/uploads/product_asset/image/2616/masked_images/preview__recently_viewed_mask1.png","preview__full_mask2":"/uploads/product_asset/image/2616/masked_images/preview__full_mask2.png","default_full":"/uploads/product_asset/image/2616/masked_images/preview__full_mask2.png","preview__slider_mask2":"/uploads/product_asset/image/2616/masked_images/preview__slider_mask2.png","default_slider":"/uploads/product_asset/image/2616/masked_images/preview__slider_mask2.png","preview__thumb_mask2":"/uploads/product_asset/image/2616/masked_images/preview__thumb_mask2.png","default_thumb":"/uploads/product_asset/image/2616/masked_images/preview__thumb_mask2.png","preview__thumb_related_products_mask2":"/uploads/product_asset/image/2616/masked_images/preview__thumb_related_products_mask2.png","default_thumb_related_products":"/uploads/product_asset/image/2616/masked_images/preview__thumb_related_products_mask2.png","preview__recently_viewed_mask2":"/uploads/product_asset/image/2616/masked_images/preview__recently_viewed_mask2.png","default_recently_viewed":"/uploads/product_asset/image/2616/masked_images/preview__recently_viewed_mask2.png","default_mini":"/uploads/product_asset/image/2616/masked_images/preview__mini_mask2.png","default_popular":"/uploads/product_asset/image/2616/masked_images/preview__popular_mask2.png","regular__full_0":"http://kvdshop.com/uploads/product_asset/regular_image/2617/full_front2.png","regular__slider_0":"http://kvdshop.com/uploads/product_asset/regular_image/2617/slider_front2.png","regular__full_1":"http://kvdshop.com/uploads/product_asset/regular_image/2618/full_detail.png","regular__slider_1":"http://kvdshop.com/uploads/product_asset/regular_image/2618/slider_detail.png","regular__full_2":"http://kvdshop.com/uploads/product_asset/regular_image/2619/full_close-up.png","regular__slider_2":"http://kvdshop.com/uploads/product_asset/regular_image/2619/slider_close-up.png","regular__full_3":"http://kvdshop.com/uploads/product_asset/regular_image/2620/full_set.png","regular__slider_3":"http://kvdshop.com/uploads/product_asset/regular_image/2620/slider_set.png","regular__full_4":"http://kvdshop.com/uploads/product_asset/regular_image/2621/full_liners-680x440.png","regular__slider_4":"http://kvdshop.com/uploads/product_asset/regular_image/2621/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;
});