$(function () {
    $("div#menu_principal img")
        .mouseover(function () {
            var src = $(this).attr("src").match(/[^\.]+/) + "-over.png";
            $(this).attr("src", src);
        })
        .mouseout(function () {
            var src = $(this).attr("src").replace("-over", "");
            $(this).attr("src", src);
        });
});
