$(document).ready(function() {
    $(function () {
        $('#home-feature-slider').anythingSlider({
            width:788,
            height:327,
            delay:5000,
            resizeContents:false,
            buildNavigation:true,
            buildArrows:false,
            appendControlsTo:$("#slider-indicators"),
            navigationFormatter: function(index, panel) {
                return "&nbsp;"; // This would have each tab with the text 'Panel #X' where X = index
            }
        });

        // Twitter
        $("#twitter-feed").tweet({
            join_text: "auto",
            avatar_size: 48,
            count: 6,
            username: 'z2live',

            auto_join_text_default: "",
            auto_join_text_ed: "",
            auto_join_text_ing: "",
            auto_join_text_reply: "",
            auto_join_text_url: "",
            loading_text: "loading tweets..."
        });

    });

    // Buttons
    $('.left-arrow').click(function(e) {
        $('#home-feature-slider').data('AnythingSlider').goBack();
        e.preventDefault();
    });

    $('.right-arrow').click(function(e) {
        $('#home-feature-slider').data('AnythingSlider').goForward();
        e.preventDefault();
    });

});




