/* jquery.transform.min.js
 * Author: Jason Moon
 * Requires: jQuery
 * Uncompressed: jquery.transform.js
 */
if (!window.XSLTProcessor && jQuery.browser.msie) {
    XSLTProcessor = function () {
        var e = new ActiveXObject('MSXML2.XSLTemplate.3.0');
        var f = null;
        var g = {};
        this.importStylesheet = function (a) {
            a.setProperty('SelectionLanguage', 'XPath');
            a.setProperty('SelectionNamespaces', 'xmlns:xsl="http://www.w3.org/1999/XSL/Transform"');
            var b = new ActiveXObject('MSXML2.FreeThreadedDOMDocument.3.0');
            try {
                b.resolveExternals = true;
                b.setProperty('AllowDocumentFunction', true)
            } catch (err) {}
            if (a.url && (a.selectSingleNode("//xsl:*[local-name() = 'import' or local-name() = 'include']") !== null)) {
                b.async = false;
                b.load(a.url)
            } else {
                b.loadXML(a.xml)
            }
            b.setProperty('SelectionNamespaces', 'xmlns:xsl="http://www.w3.org/1999/XSL/Transform"');
            e.stylesheet = b;
            b = null;
            f = e.createProcessor();
            g = {}
        };
        this.setParameter = function (a, b, c) {
            if (f !== null) {
                if (a) {
                    f.addParameter(b, c, a)
                } else {
                    f.addParameter(b, c)
                }
                var d = a || 'null';
                if (!g[d]) {
                    g[d] = {}
                }
                g[d][b] = c
            }
        };
        this.getParameter = function (a, b) {
            var c = a || 'null';
            return (g[c] && g[c][b]) ? g[c][b] : null
        };
        this.removeParameter = function (a, b) {
            this.setParameter(a, b, '');
            delete g[a || 'null'][b]
        };
        this.clearParameters = function () {
            for (var a in g) {
                for (var b in g[a]) {
                    this.removeParameter(a, b)
                }
                delete g[a]
            }
        };
        this.reset = function () {
            this.clearParameters();
            e.stylesheet = null;
            f = null
        };
        this.transformToFragment = function (a, b) {
            var c = b.createDocumentFragment();
            if (f !== null) {
                f.input = a;
                f.transform();
                var d = b.createElement('div');
                d.innerHTML = f.output;
                while (d.hasChildNodes()) {
                    c.appendChild(d.firstChild)
                }
            }
            return c
        }
    }
}
jQuery.getProcessor = function (a) {
    var b = new XSLTProcessor();
    if (a && jQuery.isXMLDoc(a)) {
        try {
            b.importStylesheet(a)
        } catch (err) {}
    }
    return b
};
jQuery.fn.transform = function (a, b, c) {
    if (!((b.constructor == XSLTProcessor) || b.importStylesheet)) {
        b = jQuery.getProcessor(b)
    }
    try {
        var d = b.transformToFragment(a, document);
        return this.each(function () {
            if (!c) {
                jQuery(this).empty()
            }
            jQuery(this).append(d)
        })
    } catch (err) {
        return this
    }
};
/* ShoppingCartService.jQuery.min.js
 * Author: Jason Moon
 * Requires: jQuery
 * Uncompressed: ShoppingCartService.jQuery.js
 */
ShoppingCartService = function () {
    var p = false;
    var q = {
        code: '0',
        message: ''
    };
    var r = {
        url: '/integration/job/request/ShoppingCartService/EveryoneGroup/group/',
        siteID: '',
        fieldsToBeReturned: {
            baseFields: ['name', 'displayName', 'productType'],
            attributes: ['platform']
        }
    };
    return {
        lineItems: 0,
        isEnabled: function () {
            return true
        },
        isEmpty: function () {
            return (this.lineItems === 0)
        },
        getErrorCode: function () {
            return q.code
        },
        getErrorMessage: function () {
            return q.message
        },
        hasError: function () {
            return (q.code !== '0')
        },
        setCurrencyCode: function (a) {
            r.currencyCode = a
        },
        setCouponCode: function (a) {
            r.couponCode = a
        },
        setProgramID: function (a) {
            r.programID = a
        },
        init: function (a) {
            if (!window.jQuery) {
                alert('ERROR: The ShoppingCartService object requires the jQuery library.');
                return false
            } else if (!a.siteID) {
                alert('ERROR: siteID is required in the ShoppingCartService initialization options.');
                return false
            } else {
                p = true;
                r = jQuery.extend(true, r, a);
                return true
            }
        },
        post: function (d, e, f) {
            if (!p) {
                alert('ERROR: ShoppingCartService object not initialized.\nVerify call to ShoppingCartService.init(options).');
                return false
            } else {
                var g = ((arguments.length < 3) || (f.length === 0)) ? 'GetShoppingCartRequest' : 'AddUpdateShoppingCartRequest';
                var h = '<?xml version="1.0" encoding="UTF-8"?>\r\n<ns1:' + g + ' xmlns:ns1="http://integration.digitalriver.com/ShoppingCartService">';
                for (var k in r) {
                    if ((k != 'url') && (k != 'fieldsToBeReturned')) {
						if (k=='locale') {
							var currentLocale=r[k];
						}
                        h += '<' + k + '>' + r[k] + '</' + k + '>'
                    }
                }
                if (g == 'AddUpdateShoppingCartRequest') {
                    for (var i = 0; i < f.length; i++) {
                        var l = (!isNaN(f[i].quantity)) ? f[i].quantity : 1;
                        h += '<shoppingCartLineItemInfos><quantity>' + l + '</quantity><action>' + f[i].action + '</action>';
                        if (f[i].action == 'ADD') {
                            var m = '<productKey><productID>' + f[i].itemID + '</productID><locale>'+currentLocale+'</locale></productKey>'
                        } else {
                            var m = '<lineItemID>' + f[i].itemID + '</lineItemID>'
                        }
                        h += '<requisitionLineItemKey>' + m + '</requisitionLineItemKey></shoppingCartLineItemInfos>'
                    }
                }
                h += '<shoppingCartDisplayOptions>';
                for (var n in r.fieldsToBeReturned) {
                    for (var j = 0; j < r.fieldsToBeReturned[n].length; j++) {
                        h += '<' + n + 'ToBeReturned>' + r.fieldsToBeReturned[n][j] + '</' + n + 'ToBeReturned>'
                    }
                }
                h += '</shoppingCartDisplayOptions></ns1:' + g + '>\r\n';
                var o = this;
                q.code = '0';
                q.message = '';
                jQuery.ajax({
                    url: r.url,
                    type: 'POST',
                    contentType: 'text/xml',
                    processData: false,
                    global: false,
                    dataType: 'xml',
                    data: h,
                    error: function (a, b, c) {
                        q.code = '1';
                        e(a, b, c)
                    },
                    success: function (a) {
                        o.lineItems = jQuery('shoppingCartLineItems', a).length;
                        q.code = jQuery('errorCode', a).text();
                        if (q.code === '0') {
                            delete r.currencyCode;
                            delete r.couponCode;
                            delete r.programID
                        } else {
                            q.message = jQuery('errorMessage', a).text()
                        }
                        d(a)
                    }
                });
                return true
            }
        }
    }
}();
/* MiniCart.SCS.jQuery-1.3.min.js
 * Author: Jason Moon
 * Requires: jQuery, jQuery.transform, and ShoppingCartService
 * Uncompressed: MiniCart.SCS.jQuery-1.3.js
 */
(function ($) {
    var m = false;
    var n = false;
    var o = false;
    var p = 0;
    var r = 1;
    var s = '';
    var t = [];
    var u = 1;
    var v = -1;
    var w = -1;
    var x = false;
    var y = /(((Action=)|(\/))((AddItemToRequisition)|(buy)))(\/)?/i;
    var z = /\/?productID[=\.](\d+)\/?/i;
    var A = /\/?quantity[=\.](\d+)\/?/i;
    var B = /(((Action=)|(\/))AcceptCandyRackOffer)(\/)?/i;
    var C = /\/?lineItemID[=\.](\d+)\/?/i;
    var D = /\/?offerProductInstanceID[=\.](\d+)\/?/i;
    if (ShoppingCartService.isEnabled() && window.XSLTProcessor) {
        m = true;
        var E = new XSLTProcessor()
    }
    var F = {
        progressBarTop: 'DYNAMIC',
        environment: 'BASE'
    };
    var G = {
        element: window,
        name: 'fx',
        push: function (a) {
            $(this.element).queue(this.name, a)
        },
        next: function (a, b) {
            if (arguments.length === 0) {
                var a = true
            }
            if (a && this.isLast()) {
                I(false, b)
            }
            $(this.element).dequeue(this.name)
        },
        isLast: function () {
            return ($(this.element).queue(this.name).length == 1)
        },
        flush: function (a, b, c) {
            $(this.element).queue(this.name, []);
            $('#' + MiniCartCss.elementID.candyRackProducts).hide();
            I(false);
            m = false
        }
    };
    var H = function () {
        return $('#' + MiniCartCss.elementID.overlay).height($('#' + MiniCartCss.elementID.topWrapper).height())
    };
    var I = function (a, b) {
        if (!a) {
            var c = $.isFunction(b);
            $('#' + MiniCartCss.elementID.ticker).fadeOut('fast', function () {
                $('#' + MiniCartCss.elementID.overlay).fadeOut('slow', function () {
                    if (c) {
                        b()
                    }
                })
            })
        } else if ($('#' + MiniCartCss.elementID.overlay).is(':hidden')) {
            if (($.browser.msie) && (r < 1)) {
                $('#' + MiniCartCss.elementID.overlay).css('opacity', r)
            }
            if (w < 0) {
                w = $('#' + MiniCartCss.elementID.ticker).width()
            }
            if (F.progressBarTop == 'DYNAMIC') {
                if (v < 0) {
                    v = $('#' + MiniCartCss.elementID.ticker).height()
                }
                $('#' + MiniCartCss.elementID.ticker).css('margin-top', Math.floor(v / -2) + 'px')
            }
            H().fadeIn('fast', function () {
                $('#' + MiniCartCss.elementID.ticker).css('margin-left', Math.floor(w / -2) + 'px').fadeIn('fast')
            });
            $('#' + MiniCartCss.elementID.recommendedProducts).slideUp('normal')
        }
    };
    var J = function (d) {
        d = d || [];
        var e = function (c) {
            if (ShoppingCartService.isEmpty()) {
                $('#' + MiniCartCss.elementID.ajaxCart).slideUp('fast');
                $('#' + MiniCartCss.elementID.emptyHero).slideDown('fast', function () {
                    H()
                });
                if (G.isLast()) {
                    G.next(true, function () {
                        if (p > 0) {
                            $('#' + MiniCartCss.elementID.candyRackProducts).css('display', 'none');
                            $('#' + MiniCartCss.elementID.emptyCartProducts).css('display', 'block');
                            $('#' + MiniCartCss.elementID.recommendedProducts).slideDown('slow')
                        }
                    })
                } else {
                    G.next()
                }
            } else {
                try {
                    $('#' + MiniCartCss.elementID.ajaxCart).transform(c, E);
                    K(false)
                } catch (err) {
                    G.flush(null, err.message)
                }
                $('shoppingCartLineItems', c).each(function (j) {
                    var a = $('lineItemProductInfo > parentProductKey > productID', this).text();
                    if ((a !== '') && (t[a])) {
                        var b = j + 1;
                        try {
                            E.setParameter(null, 'OriginalLineItemID', $('requisitionLineItemKey > lineItemID', this).text());
                            E.setParameter(null, 'OriginalProductID', $('lineItemProductInfo > productKey > productID', this).text());
                            E.setParameter(null, 'OriginalPosition', b);
                            $('#' + F.productInfo.prefix + b + ' .' + MiniCartCss.className.variationTableMiddle).transform(t[a], E);
                            E.clearParameters()
                        } catch (err) {}
                    }
                });
                if ($('#' + MiniCartCss.elementID.emptyHero).is(':visible')) {
                    $('#' + MiniCartCss.elementID.emptyHero).slideUp('fast');
                    $('#' + MiniCartCss.elementID.ajaxCart).slideDown('fast', function () {
                        H()
                    })
                } else {
                    H()
                }
                if (G.isLast()) {
                    G.next();
                    u = 1;
                    G.push(function () {
                        $.get(F.candyRack.xmlUrl, function (a) {
                            if ($('recommendedProduct', a).length > 0) {
                                try {
                                    $('#' + MiniCartCss.elementID.emptyCartProducts).css('display', 'none');
                                    $('#' + MiniCartCss.elementID.candyRackProducts).transform(a, E).css('display', 'block');
                                    M.apply($('#' + MiniCartCss.elementID.candyRackProducts).get(0));
                                    $('#' + MiniCartCss.elementID.recommendedProducts).slideDown('slow')
                                } catch (err) {}
                            }
                            G.next(false)
                        })
                    })
                } else {
                    G.next()
                }
            }
        };
        ShoppingCartService.post(e, G.flush, d)
    };
    var K = function (f) {
        var g = $('#' + MiniCartCss.elementID.ajaxCart + ' form').get(0);
        var h = '';
        $('a[href*="DisplayProduct"][href*="DetailsPage"]', g).each(function (j) {
            var b = j + 1;
            var c = F.productInfo.prefix + b;
            if (f) {
                var d = this.href.match(z)[1];
                if (h !== '') {
                    h += '%2C'
                }
                h += d
            }
            $(this).click(function (e) {
                if (c != s) {
                    if (b >= parseInt(F.lineItem.displayMax, 10)) {
                        while ((b - u + 1) < parseInt(F.lineItem.displayMax, 10)) {
                            $('#' + F.lineItem.prefix + (u + parseInt(F.lineItem.displayMax, 10) - 1)).hide();
                            $('#' + F.lineItem.prefix + (u - 1)).show();
                            u--
                        }
                        if (u == 1) {
                            $('#' + MiniCartCss.elementID.itemScrollUp).hide();
                            $('#' + MiniCartCss.elementID.itemScrollDown).show()
                        } else {
                            $('#' + MiniCartCss.elementID.itemScrollUp).show();
                            if ((u + parseInt(F.lineItem.displayMax, 10) - 1) == ShoppingCartService.lineItems) {
                                $('#' + MiniCartCss.elementID.itemScrollDown).hide()
                            } else {
                                $('#' + MiniCartCss.elementID.itemScrollDown).show()
                            }
                        }
                    }
                    var a = ($(this).offset().top - $('#' + MiniCartCss.elementID.cartContents).offset().top) + Math.floor($(this).height() / 2);
                    if (b >= F.lineItem.displayMax) {
                        a -= $('#' + c).height()
                    }
                    $('#' + c).css('top', a);
                    if (s !== '') {
                        $('#' + s).fadeOut('fast');
                        $('#' + c).fadeIn('normal')
                    } else {
                        $('#' + c).show('fast')
                    }
                    s = c
                }
                return false
            })
        });
        if (h !== '') {
            G.push(function () {
                $.ajax({
                    url: F.variation.xmlUrl + '&productID=' + h,
                    global: false,
                    dataType: 'xml',
                    success: function (b) {
                        $('variations > productVariation', b).each(function () {
                            var a = $(this).attr('productID');
                            t[a] = this
                        })
                    },
                    complete: function (a, b) {
                        G.next(false)
                    }
                })
            })
        }
        var i = parseInt(F.lineItem.displayMax, 10);
        if (ShoppingCartService.lineItems > i) {
            var k = $('#' + MiniCartCss.elementID.cartContents).height();
            var l = Math.ceil(k / i);
            $('#' + MiniCartCss.elementID.cartContentsWrapper).css('height', k);
            $('#' + MiniCartCss.elementID.itemScrollDown + ' > a', g).click(function () {
                if (!x) {
                    var a = u + i - 1;
                    if (a < ShoppingCartService.lineItems) {
                        x = true;
                        MiniCart.productInfo.close(true);
                        $('#' + MiniCartCss.elementID.cartContentsWrapper).css('overflow', 'hidden');
                        $('#' + F.lineItem.prefix + (a + 1)).css('display', 'block');
                        if (a == (ShoppingCartService.lineItems - 1)) {
                            $('#' + MiniCartCss.elementID.itemScrollDown).fadeOut('normal')
                        }
                        $('#' + MiniCartCss.elementID.cartContents).animate({
                            top: '-=' + l + 'px'
                        }, {
                            duration: 'fast',
                            complete: function () {
                                x = false;
                                $('#' + F.lineItem.prefix + u).css('display', 'none');
                                $('#' + MiniCartCss.elementID.cartContents).css('top', '0');
                                $('#' + MiniCartCss.elementID.cartContentsWrapper).css('overflow', 'visible');
                                if (u == 1) {
                                    $('#' + MiniCartCss.elementID.itemScrollUp).fadeIn('fast')
                                }
                                u++
                            }
                        })
                    }
                }
                return false
            });
            $('#' + MiniCartCss.elementID.itemScrollUp + ' > a', g).click(function () {
                if (!x && (u > 1)) {
                    x = true;
                    MiniCart.productInfo.close(true);
                    $('#' + MiniCartCss.elementID.cartContentsWrapper).css('overflow', 'hidden');
                    $('#' + F.lineItem.prefix + (u - 1)).css('display', 'block');
                    if (u == 2) {
                        $('#' + MiniCartCss.elementID.itemScrollUp).fadeOut('normal')
                    }
                    $('#' + MiniCartCss.elementID.cartContents).css('top', '-' + l + 'px').animate({
                        top: '+=' + l + 'px'
                    }, {
                        duration: 'fast',
                        complete: function () {
                            x = false;
                            var a = u + i - 1;
                            $('#' + F.lineItem.prefix + a).css('display', 'none');
                            $('#' + MiniCartCss.elementID.cartContentsWrapper).css('overflow', 'visible');
                            if (a == ShoppingCartService.lineItems) {
                                $('#' + MiniCartCss.elementID.itemScrollDown).fadeIn('fast')
                            }
                            u--
                        }
                    })
                }
                return false
            })
        }
        $('a[href*="DisplayCheckoutPaymentPage"]', g).click(function () {
            q = false;
            g.elements['Action'].value = 'DisplayCheckoutPaymentPage';
            g.target = '_top';
            g.submit();
            return false
        });
        $(g).submit(function () {
            MiniCart.productInfo.close();
            var b = (m && n && o);
            var c = [];
            $('input[type="text"][name^="quantity"]', this).each(function () {
                this.value = $.trim(this.value);
                if (this.value != this.defaultValue) {
                    var a = $(this).attr('id').substr(F.quantity.prefix.length);
                    c.push({
                        action: 'UPDATE',
                        itemID: a,
                        quantity: this.value
                    })
                }
            });
            if (c.length > 0) {
                I(true);
                if (b) {
                    G.push(function () {
                        J(c)
                    });
                    return false
                } else {
                    q = false;
                    return true
                }
            } else {
                return false
            }
        }).find('input[type="text"][name^="quantity"]').keypress(function (e) {
            var a = (window.event) ? event.keyCode : e.which;
            var b = [0, 8, 9, 13, 37, 39, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57];
            return ($.inArray(a, b) >= 0)
        }).change(function () {
            this.value = $.trim(this.value);
            if (!/^\d+$/.test(this.value)) {
                this.value = this.defaultValue
            }
        })
    };
    var L = function (a) {
        if (a.test(this.href)) {
            if (F.currentAction != 'DisplayPage') {
                var b = (RegExp.$2 == '/') ? '/' + F.nextActionParam + '.' : '&' + F.nextActionParam + '=';
                this.href = this.href.replace(a, '$1' + b + F.currentAction + '$8')
            }
            return true
        } else {
            return false
        }
    };
    var M = function () {
        $('a[href*="AcceptCandyRackOffer"]', this).each(function () {
            if (L.call(this, B)) {
                if (m) {
                    var a = this.href.match(C)[1];
                    var b = this.href.match(D)[1];
                    $(this).click(function () {
                        if (n && !o) {
                            q = false;
                            return true
                        } else {
                            I(true);
                            G.push(function () {
                                $.get(F.candyRack.acceptUrl + '&' + F.nextActionParam + '=DisplayAjaxResponsePage&lineItemID=' + a + '&offerProductInstanceID=' + b, function () {
                                    J()
                                })
                            });
                            return false
                        }
                    })
                }
            }
        })
    };
    window.MiniCart = {
        init: function (d) {
            F = $.extend(true, F, d);
            if (m) {
                G.push(function () {
                    $.ajax({
                        url: F.xslUrl,
                        global: false,
                        dataType: 'xml',
                        beforeSend: function (a) {
                            if (F.environment != 'BASE') {
                                a.setRequestHeader('If-Modified-Since', 'Wed, 13 Apr 2005 18:08:00 GMT')
                            }
                        },
                        error: function (a, b, c) {
                            n = true;
                            G.flush(a, b, c)
                        },
                        success: function (a) {
                            n = true;
                            try {
                                E.importStylesheet(a);
                                o = true;
                                G.next(false)
                            } catch (err) {
                                G.flush(null, err.message)
                            }
                        }
                    })
                })
            }
            $(function () {
                ShoppingCartService.lineItems = $('#' + MiniCartCss.elementID.cartContents + ' > .' + MiniCartCss.className.cartProdWrapper).length;
                if (ShoppingCartService.lineItems > 0) {
                    K(true)
                }
                p = $('#' + MiniCartCss.elementID.emptyCartProducts + ' > .' + MiniCartCss.className.recProdWrapper).length;
                $('a[href*="AddItemToRequisition"],area[href*="AddItemToRequisition"],a[href*="/buy"]').each(function () {
                    if (L.call(this, y)) {
                        if (m) {
                            var a = this.href.match(z)[1];
                            var b = (A.test(this.href)) ? RegExp.$1 : '1';
                            $(this).click(function () {
                                return MiniCart.add(a, b)
                            })
                        }
                    }
                });
                M.apply(document);
                if (($.browser.msie) && (document.getElementById(MiniCartCss.elementID.overlay).filters)) {
                    r = parseInt(document.getElementById(MiniCartCss.elementID.overlay).filters.item(0).opacity, 10) / 100
                }
            })
        },
        get: function () {
            this.productInfo.close();
            I(true);
            if (!m || (n && !o)) {
                q = false;
                return true
            } else {
                G.push(function () {
                    J()
                });
                return false
            }
        },
        add: function (d, e) {
            this.productInfo.close(true);
            I(true);
            if (!m || (n && !o)) {
                q = false;
                return true
            } else {
                var f = $('#' + MiniCartCss.elementID.topScrollUp).offset();
                window.scrollTo(f.left, f.top);
                var g = [];
                var h = [];
                for (var j = 0; j < arguments.length; j += 2) {
                    g.push({
                        action: 'ADD',
                        itemID: arguments[j],
                        quantity: arguments[j + 1] || 1
                    });
                    if (!t[arguments[j]]) {
                        h.push(arguments[j])
                    }
                }
                G.push(function () {
                    var c = function () {
                        $.each(g, function () {
                            var a = $('variation:first > productID', t[this.itemID]).text();
                            if (a !== '') {
                                this.itemID = a
                            }
                        });
                        J(g)
                    };
                    if (h.length > 0) {
                        $.get(F.variation.xmlUrl + '&productID=' + h.join('%2C'), function (b) {
                            $('variations > productVariation', b).each(function () {
                                var a = $(this).attr('productID');
                                t[a] = this
                            });
                            c()
                        })
                    } else {
                        c()
                    }
                });
                return false
            }
        },
        remove: function (a) {
            var b = $('#' + F.quantity.prefix + a).get(0);
            b.value = '0';
            this.productInfo.close();
            I(true);
            if (!m || (n && !o)) {
                q = false;
                b.form.submit()
            } else {
                G.push(function () {
                    J([{
                        action: 'UPDATE',
                        itemID: a,
                        quantity: 0
                    }])
                })
            }
        },
        productInfo: {
            close: function (a) {
                if (s !== '') {
                    var b = (arguments[0]) ? null : 'slow';
                    $('#' + s).hide(b);
                    s = ''
                }
            },
            switchVariation: function (a, b) {
                var c = $('input[type="hidden"][name^="lineItemID$$"][value="' + b + '"] ~ input[type="hidden"][name^="ORIG_VALUE_selectedVariationProductID$$"]:first', a).val();
                var d = $('input[name="' + F.variation.prefix + b + '"]:checked', a).val();
                if (d === undefined) {
                    d = $('select[name="' + F.variation.prefix + b + '"]', a).val()
                }
                if (d != c) {
                    $('input[type="hidden"][name^="lineItemID$$"][value="' + b + '"] ~ input[type="hidden"][name^="selectedVariationProductID$$"]:first', a).val(d);
                    MiniCart.productInfo.close();
                    I(true);
                    if (!m || (n && !o)) {
                        q = false;
                        a.submit()
                    } else {
                        G.push(function () {
                            J([{
                                action: 'UPDATE',
                                itemID: b,
                                quantity: 0
                            }, {
                                action: 'ADD',
                                itemID: d,
                                quantity: a.elements[F.quantity.prefix + b].defaultValue
                            }])
                        })
                    }
                } else {
                    MiniCart.productInfo.close()
                }
                return false
            }
        }
    }
})(jQuery);
