$(document).ready(function(){

  $("#main_menu_top img").hover(
    function() {
      imgsrc = $(this).attr("src");
      new_imgsrc = imgsrc.replace(/(\.[a-z 0-9]+)$/i, "_hover$1");
      old_imgsrc = imgsrc.replace(/_over(\.[a-z 0-9]+)$/i, "$1");
        
      $(this).attr("src" , new_imgsrc);
    },
    
    function() {$(this).attr("src" , old_imgsrc);}
  );
  
  
  $("#main_menu_bottom a:eq(0)").hover(
    function() {$(this).css({backgroundImage: "url(images/abfox_im_hover.jpg)"});
    },
    function() {$(this).css({backgroundImage: "url(images/abfox_im.jpg)"});}
  );
  
  $("#main_menu_bottom a:eq(1)").hover(
    function() {$(this).css({backgroundImage: "url(images/abfox_vitorlas_hover.jpg)"});
    },
    function() {$(this).css({backgroundImage: "url(images/abfox_vitorlas.jpg)"});}
  );
  
  $("#main_menu_bottom a:eq(2)").hover(
    function() {$(this).css({backgroundImage: "url(images/abfox_vitorlas_csapat_hover.jpg)"});
    },
    function() {$(this).css({backgroundImage: "url(images/abfox_vitorlas_csapat.jpg)"});}
  );    
});
