$().ready(function(){
    $('ul.sf-menu').superfish();
               
    $('.accordion').accordion({                        
        collapsible: true,
        active: false 
    });
    $('.hover_news .transparent').first().stop().animate({
        'width': '190'
    }, 1000);
    
    $('.hover_news').mouseover(function(){
        var news_id = $(this).attr('news_id');
        $('.hover_news .transparent').stop().animate({
            'width': '170'
        });
        $('.transparent', this).stop().animate({
            'width': '190'
        }, 500, function(){
            $('.news_content').hide();
            $('#content_'+news_id).show();
        });
    });
                
    $('.image_hover img').hover(function(){
        $(this).attr('hover-out-image', $(this).attr('src'));
        $(this).attr('src', $(this).attr('alt'));
    },
    function(){        
        $(this).attr('src', $(this).attr('hover-out-image'));
    });
    $('.go_home').click(function(){
        document.location = $('ul#nav li:first a').attr('href');
        return false;
    });
    $('.move_a_bit').hover(function(){
        $(this).stop().animate({
            "margin-left" : "0px",
            "margin-right" : "10px"
        }, 200); 
    },
    function(){
        $(this).stop().animate({
            "margin-left" : "5px",
            "margin-right" : "5px"
        }, 200); 
    });
    $('.news_thumb').hover(function(){
        $(this).stop().animate({
            "left" : -50
        }, 500); 
    },
    function(){
        $(this).stop().animate({
            "left" : 0
        }, 500); 
    });
    
    
    $('#big_b_bottom').click(function(){                    
        document.location = '/bennettbrooks_media';
    });
    
});
        
