
// scripts.js

// Top menu rollovers.
//  stackoverflow.com/questions/540349/change-image-source-using-jquery/540355#540355
//  Added class to the selector.
$(document).ready(function() {
  $("img.topmenu")
    .mouseover(function() { 
      var src = $(this).attr("src").match(/[^\.]+/) + "-over.gif";
      $(this).attr("src", src);
    })
    .mouseout(function() {
      var src = $(this).attr("src").replace("-over", "");
      $(this).attr("src", src);
    });
});

