/*
To use, add a hover attribute to an image with the URL of the rollover image like so:

	<img src="image.jpg" hover="rollover.jpg" />

*/

$(document).ready(function() {

    $('[hover]').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });
});
