// JavaScript Document

jQuery('#globalMenu dt:not(.here) a img, #localmenu a:not(.here) img, a#asahihp img, a#asahihpPage img').hover(
  function() {
    imgChange(this);
  },
  function() {
    imgBack(this);
  }
);


function imgChange(e) {
  link = jQuery(e).attr('src');
  result = link.search(/_hov\.gif$/);
  if(result < 0) {
    link_change = link.replace(/\.gif$/, "_hov.gif");
  }
  jQuery(e).attr('src', link_change);
}

function imgBack(e) {
  link = jQuery(e).attr('src');
  result = link.search(/_hov\.gif$/);
  if(result > 0) {
    link_change = link.replace(/_hov\.gif/, ".gif");
  }
  jQuery(e).attr('src', link_change);
}
