$(document).ready(function(){
    $(".jCarousel").flickrCarousel({
        btnNext: ".btn_arrowNext",
        btnPrev: ".btn_arrowPrev",
        scroll: 1
    });

    // Photo Enlarge on Hover
    $("#photos ul li").hover(function() {
        $(this).find(".photo").addClass("active");
        $(this).css({overflow: "visible", "z-index":"10"});
        if($(this).hasClass("center")) { 
            $(this).find(".photo").stop().animate({
                top: "-20px",
                left: "-48px",
                width: "200px",
                height: "300px"
            }, 300);
        } else if($(this).hasClass("right")) {
            $(this).find(".photo").stop().animate({
                top: "-20px",
                left: "-84px",
                width: "200px",
                height: "300px"
            }, 300);
        } else {
            $(this).find(".photo").stop().animate({
                top: "-20px",
                width: "200px",
                height: "300px"
            }, 300);
        }   
    }, function() {
        $(this).find(".photo").removeClass("active");
        $(this).css({overflow: "hidden", "z-index":"1"});
        if($(this).hasClass("center")) { 
            $(this).find(".photo").stop().animate({
                top: 0,
                left: 0,
                width: "113px",
                height: "170px"
            }, 0);
        } else if($(this).hasClass("right")) {
            $(this).find(".photo").stop().animate({
                top: 0,
                left: 0,
                width: "113px",
                height: "170px"
            }, 0);
        } else {
            $(this).find(".photo").stop().animate({
                top: 0,
                left: 0,
                width: "113px",
                height: "170px"
            }, 0);
        }
    });
});