$(document).ready(function() {

    // Set up the Slider
    var slideID = 1; // The initial slide (First one)
    var animation_active = false;

    var totalSlides = 1; 	// IMPORTANT: There are 3 portfolio entries PER SLIDE,
    // so this number should be the total number of SLIDES.
    // Example: 2 slides would equal 6 portfolio entries (3 per slide)

    var totalPortfolioEntries = totalSlides * 4;

    // This sets up the slider panels when you hover over the portfolio thumbs
    for (tempPortfolioNum = 0; tempPortfolioNum <= totalPortfolioEntries - 1; tempPortfolioNum = tempPortfolioNum + 1) {
        if (animation_active == false) {
            $("div.hoverBlock #portfolioEntry_" + tempPortfolioNum).hover(function() {
                $(this).find("img").animate({ top: "290px" }, { queue: false, duration: 450 });
            }, function() {
                $(this).find("img").animate({ top: "0px" }, { queue: false, duration: 450 });
            });
        }
    }

    // Bump the slides over to fix an alignment problem
    for (tempSlideNum = 0; tempSlideNum <= totalSlides - 1; tempSlideNum = tempSlideNum + 1) {
        $("#slide-" + tempSlideNum).find(".entry-0").animate({ left: "10px" }, { duration: 0 }); /**/
        $("#slide-" + tempSlideNum).find(".entry-1").animate({ left: "10px" }, { duration: 0 });
        $("#slide-" + tempSlideNum).find(".entry-2").animate({ left: "10px" }, { duration: 0 });
        $("#slide-" + tempSlideNum).find(".entry-3").animate({ left: "10px" }, { duration: 0 });
    }

})