$(document).ready(function() {
    $('#sliderbutton').click(function() {
        if($(this).find('span').hasClass('open')) {
            $('#slider').animate({
                top : -190
            }, {
                queue : false
            });
            $(this).find('span').removeClass('open');
        } else {
            $('#slider').animate({
                top : 0
            }, {
                queue : false
            });
            $(this).find('span').addClass('open');
        }
        return false;
    });
});
