$(function() {
    
    $.fn.delay = function(time, callback){
        // Empty function:
        jQuery.fx.step.delay = function(){};
        // Return meaningless animation, (will be added to queue)
        return this.animate({delay:1}, time, callback);
    }

    $("#slide").delay(1000).show("slide", { direction: "right" }, 5000);
  
    $("#slide-up").hover(function(event){
        $("#slide-content").scrollTo( '-=270px', { axis:'y', duration:2000  } );
    });
    $("#slide-up").click(function(event){
        $("#slide-content").scrollTo( '-=270px', { axis:'y', duration:2000  } );
    });

    $("#slide-down").hover(function(event){
        $("#slide-content").scrollTo( '+=270px', { axis:'y', duration:2000 } );
    });
    $("#slide-down").click(function(event){
        $("#slide-content").scrollTo( '+=270px', { axis:'y', duration:2000 } );
    });
  
});