$(function(){
    
    $('body').pngFix({blankgif: 'css/gfx/blank.gif'});
    
    $('#main-menu li ul').each(function(){
        
        var $this = $(this).parent();
        var $ul = $(this);
        
        $this.hover(function(){
            $ul.stop(true, true).slideDown(200); 
            //$ul.show();                   
        },function(){
            $ul.stop(true, true).slideUp(200);
            //$ul.hide(); 
        });
        
    });
    
    $('.news-list li a, #bottom li a').bigTarget({hoverClass: 'hover'});
    $('table.list tr td a').bigTarget({hoverClass: 'hover', clickZone:'tr:eq(0)'});
    
    $('a.tag-filter').each(function(){
        $(this).click(function(){
            var $this = $(this),
                tag = $this.attr('rel'),
                $items = $('.news-list').children();
            
            $items.slideUp();
            $items.filter('.'+tag).slideDown();
            
            return false;
        });
    });
    
    $('a.show-all').each(function(){
        $('.news-list').children().slideDown(); 
        return false;
    });
});