$(function () {
    $('#workline').anythingSlider({
        easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
        autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
        delay: 10000,                    // How long between slide transitions in AutoPlay mode
        startStopped: false,            // If autoPlay is on, this can force it to start stopped
        animationTime: 1000,             // How long the slide transition takes
        hashTags: false,                 // Should links change the hashtag in the URL?
        buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        navigationFormatter: null
    });

    if(jQuery.support.htmlSerialize){
        $('div.work').mouseenter(function() {
            $(this).children('.info').fadeIn(200);
            $(this).children('.shot').animate({
                opacity: 0.0
            }, 200);
        }).mouseleave(function() {
            $(this).children('.info').fadeOut(200);
            $(this).children('.shot').animate({
                opacity: 1.0
            }, 200);
        });
    } else {
        $('div.work').mouseenter(function() {
            $(this).children('.info').show();
            $(this).children('.shot').css('opacity','0');
        }).mouseleave(function() {
            $(this).children('.info').hide();
            $(this).children('.shot').css('opacity','1');
        });
    }
    $('a.bigimg').fancybox();

    $('#workline').swipe({
         swipeLeft: function() {
             $('#workline').data('AnythingSlider').goForward();
         },
         swipeRight: function() {
             $('#workline').data('AnythingSlider').goBack();
         }
    });

    if($(window).width() <= 1130){
        $('.array').addClass('b');
    }

});
