if (typeof cdc == "undefined") {
    cdc = {}
}
if (typeof cdc.homepage == "undefined") {
    cdc.homepage = {}
}
cdc.homepage.featuredprod = {
    currItem: 0,
    numItems: 0,
    vsItems: {
        0 : true
    },
    strings: {
        prev: "Previous Featured Product",
        next: "Next Featured Product"
    },
    singleItemWidth: "462px",
    changeItem: function (C, B) {
        var A = this.currItem;
        jQuery("#featuredprod li:eq(" + A + ")").hide();
        if (C < 0 && A == 0) {
            A = this.numItems
        }
        A = (A + C) % this.numItems;
        if (!this.vsItems[A]) {
            this.vsItems[A] = true;
            vs_makeImg(jQuery("#featuredprod li:eq(" + A + ") img")[0])
        }
        jQuery("#featuredprod li:eq(" + A + ")").fadeIn(B || "fast");
        this.currItem = A
    },
    setupNav: function () {
        var B = jQuery("#featuredprod li");
        if (B.length < 2) {
            jQuery("#featuredprod ol").css("width", cdc.homepage.featuredprod.singleItemWidth);
            return
        }
        cdc.homepage.featuredprod.numItems = B.length;
        jQuery(B).removeClass("featprod-hidden").hide().filter(":eq(0)").show().add("#featuredprod li").length - 1;
        var A = cdc.homepage.featuredprod.strings;
        jQuery("#featuredprod .featprod-controls").html('<div class="featprod-previous"><a href="" title="' + A.prev + '">&nbsp</a></div><div class="featprod-next"><a href="" title="' + A.next + '">&nbsp</a></div>');
        jQuery("#featuredprod .featprod-previous a").click(function () {
            cdc.homepage.featuredprod.changeItem( - 1);
            return false
        });
        jQuery("#featuredprod .featprod-next a").click(function () {
            cdc.homepage.featuredprod.changeItem(1);
            return false
        })
    }
};
jQuery(document).ready(cdc.homepage.featuredprod.setupNav);
function vs_makeImg(A) {}
