/*
function mycarousel_initCallback(carousel) {

    jQuery('#next2').bind('click', function () {
        carousel.next();
        return false;
    });

    jQuery('#prev2').bind('click', function () {
        carousel.prev();
        return false;
    });

    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function () {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function () {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function () {
        carousel.stopAuto();
    }, function () {
        carousel.startAuto();
    });
};
*/
// Ride the carousel...
jQuery(document).ready(function () {

    $.backstretch("/Images/bakgrunn2012.jpg", {
        speed: 150,
        centeredY: false
    });


    $(".accordion li").hover(

    function () {

        $(this).find(".caption").animate({ "height": "85px" }, "fast");
    },

    function () {

        $(this).find(".caption").animate({ "height": "40px" }, "fast");
    }

    );

/*
    jQuery("#slideshow").jcarousel({
        wrap: 'circular',
        scroll: 1,
        auto: 4,
        duration: 4000,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });

    $("#time").countdown({
        date: "february 15, 2012",
        onChange: function (event, timer) {
        },
        onComplete: function (event) {

            $(this).html("Completed");
        },
        leadingZero: true,
        direction: "down"
    });
    */

});
