function showOverImg(e){ this.src = this.src.replace(/\.off\./, ".on."); }
function showOutImg(e){ this.src = this.src.replace(/\.on\./, ".off."); }

$(".menu").ready(function(){
    $(".menu a>img").hover(showOverImg, showOutImg);
});

