    $(document).ready(function() {
        var cont_left = $("#container").position().left;
        $(".small").hover(function() {
            // hover in
            $(this).parent().parent().css("z-index", 1);
            $(this).animate({
               height: "120",
               width: "145",
               left: "-=6",
               top: "-=8"
            }, "fast");
        }, function() {
            // hover out
            $(this).parent().parent().css("z-index", 0);
            $(this).animate({
                height: "108",
                width: "130",
                left: "+=6",
               top: "+=8"
            }, "fast");
        });

        $(".small-button").each(function(index) {
            var left = (index * 140) + cont_left;
            $(this).css("left", left + "px");
        });
    });

