var splash = {
  linkScrubber: function() {
    $("a").bind(
      'mouseup',
      function(e) {
        var elm = window.event ? window.event.srcElement : e ? e.target : null;
        elm.blur();
      }
    );
    $("input[type=button]").bind(
      'mouseup',
      function(e) {
        var elm = window.event ? window.event.srcElement : e ? e.target : null;
        elm.blur();
      }
    );
  },
  
  mover: function(e) {
    elm = window.event ? window.event.srcElement : e ? e.target : null;
    elm.src = elm.src.replace(/(\.[^.]+)$/, "_mo$1");
  },
  
  mout: function(e) {
    elm = window.event ? window.event.srcElement : e ? e.target : null;
    elm.src = elm.src.replace(/_mo(\.[^.]+)$/, "$1");
  },

  init: function() {
    splash.linkScrubber();
    $("a>img").bind('mouseover', splash.mover);
    $("a>img").bind('mouseout', splash.mout);
  }
}

$(window).bind('load', splash.init);

