$.fn.swapable = function (key) {
    if (!key) {
        key = '_hover'
    }
    $(this).bind('mouseover', function () {

        var src = $(this).attr('src');
        var parts = src.split('.');
        var ext = parts.pop();

        var path = (parts.join() + key + '.' + ext);
        path = path.replace(",,", "..");
        path = path.replace(",,", "..");

        $(this).attr('src', path);
    })
    $(this).bind('mouseout', function () {
        $(this).attr('src', $(this).attr('src').replace(key, ''))
    })
}
