$(document).ready(function () {
    Cufon.replace('.shopDesc, .userAccountForm h3, .cartSmall h3, .shopNavBottom, .leftBox h2, h1, .newsletterBox h4, #content #rightContent .gridItems ul li .prodOrder, .catTitle, .kat-name', {
        hover: true
    });
    $(".favTopicsGrid li a, #shopNav .shopNavTop .searchForm input[type='submit'], #bottomBoxes .newsletterBox input[type='submit']").hover(function () {
        $(this).fadeTo("fast", .5)
    }, function () {
        $(this).fadeTo("fast", 1)
    });
    $(".otherBoxesLeft").css("height", $(".otherBoxes").height() - 9 + "px");
    $("#content #rightContent .homePageGrid .gridItems ul li .prodOrder").each(function (i) {
        $(this).append(i + 1);
        if (i > 4) {
            $(this).parent().parent().css("borderBottom", "none")
        }
        if (i == 4 || i == 9 || i == 14) {
            $(this).parent().parent().css({
                "borderRight": "none",
                "padding": "0 2px"
            })
        }
    });
    $("#content #rightContent .categoryListContent .gridItems ul li").each(function (i) {
        if (i == 4 || i == 9 || i == 14) {
            $(this).css({
                "borderRight": "none",
                "padding": "0 2px"
            })
        }
    });
    $(".leftBox.oppSelect ul li a").click(function (event) {
        $(".leftBox.oppSelect ul li a").removeClass('selCB');
        $(this).toggleClass("selCB")
    });
    $(".categoryList li:even").addClass("evenCat")
});
