$(document).ready(function() {
    $('.nav a img, .links a img').hover(function() {
        if($(this).parent().hasClass('active'))
            return;
        var temp = $(this).attr('src');
        temp = temp.replace('.png','_over.png');
        $(this).attr('src',temp);
    }, function() {
        if($(this).parent().hasClass('active'))
            return;
        var temp = $(this).attr('src');
        temp = temp.replace('_over.png','.png');
        $(this).attr('src',temp);
    });
});
