$(document).ready(function () {
    $('#txt').hide();
    $('#boxDiv').hide();
    $('#boxHead').fadeIn('normal');
    $('#box').fadeIn('slow');
    setTimeout(function () {
        $('#txt').fadeIn('normal');
    }, 500);
    $("#amount").change(function () {
        var numBox = $("#amount option:selected").val();
        // $("#box").attr("src", "/content/product/images/" + numBox + "_hdr_product_overview.png");
        $("#box").fadeOut('normal', function () {
            $("#box").attr("src", "/content/product/images/" + numBox + "boxes.png");
        });
        $("#box").fadeIn('slow');
        $(".show").removeClass("show");
        $("#div" + numBox + "boxesDiv").addClass("show");
    });

    setInterval("goAway()", 5000);

    var rot = Array('3', '8', '4');

    /*$('#txt img').click(function () {
    a = $(this).index('#txt img');
    b = rot[a];
    fakeClick(b);
    });*/

});




mu = 0;
nu = 3;
function goAway() {
    $('#txt img').eq(mu).hide('slide', { direction: 'left' }, 500);
    mu++;
    if (nu == mu) {
        mu = 0;
    }
    $('#txt img').eq(mu).show('slide', { direction: 'right' }, 500);
}

var deck = '<h2 class="gill">Full Disclosure<\/h2><p>The full Life Shotz supplement fact panel is here for a good reason. Not only do we have nothing to hide, it\'s quite the opposite. We\'re proud of our "fine print" and want customers and Distributors to find it easily. One look at the %DV column and you\'ll see this isn\'t bold – it\'s common sense.<\/p><table><tr><td valign="top"><h4 style="margin-left:24px;">Life Shotz</h4><img src="/content/product/images/supplement_facts_sugar.jpg" alt="Facts" /></td><td valign="top"><h4>Life Shotz - <strong style="color:#0666b3;">SUGAR FREE</strong></h4><img src="/content/product/images/supplement_facts.jpg" alt="Facts" /></td></tr></table>';

