$j = jQuery.noConflict();
$j( function() {
    $j('.main-nav ul li a').hover( function() {
        if($j(this).parent().attr('class') == 'active')
            return;
        $j(this).find('img').eq(0).hide();
        $j(this).find('img').eq(1).show();
    }, function() {
        if($j(this).parent().attr('class') == 'active')
            return;
        $j(this).find('img').eq(1).hide();
        $j(this).find('img').eq(0).show();
    });
});
