﻿$( document ).ready( function() 
{
    $(".swapbutton").mouseover( function()
    {                            
        if( $(this).attr("src").match("_on") == null )
        {
            $(this).attr( "src", $(this).attr("src").replace( ".gif", "_on.gif" ) );
        }
    });
    
    $(".swapbutton").mouseout( function()
    {
        $(this).attr( "src", $(this).attr("src").replace( "_on.gif", ".gif" ) );      
    });
});