$.fn.swapit = function(a,b){
return this.each(function(){
var i = (new Image).src = a;
var i2 = (new Image).src = b;
// bind the mouseover and mouseout event to swap the images
if($(this).get(0).tagName.toUpperCase() == "IMG"){
$(this).mouseover(function(){
$(this).attr("src", a);
}).mouseout(function(){
$(this).attr("src", b);
});
}else{
$(this).mouseover(function(){
$(this).background("url(" + a + ")");
}).mouseout(function(){
$(this).background("url(" + b + ")");
});
}
});
} 

$(function(){

$(".overart1").swapit("local/cache-vignettes/L90xH90/arton1-3f10e.jpg", "local/cache-gd2/deb6e495d803abbb36e2ac5717601907.png");

$(".overart4").swapit("local/cache-vignettes/L100xH100/arton4-ccd0b.jpg", "local/cache-gd2/91d58ff90c1a2a64d2f4ba5b95cc7048.png");

$(".overart3").swapit("local/cache-vignettes/L100xH100/arton3-7c2aa.jpg", "local/cache-gd2/accd5adf726be9809b11d3e4169972c4.png");

$(".overart2").swapit("local/cache-vignettes/L80xH80/arton2-516b7.jpg", "local/cache-gd2/3ffe1d230e7b19f1f72563ce722c3fb1.png");



$(".overrub8").swapit("local/cache-vignettes/L180xH90/rubon8-d0497.jpg", "local/cache-gd2/a96bf19e01cded3f4d5bc872a0d84dd1.jpg");

$(".overrub20").swapit("local/cache-vignettes/L180xH90/rubon20-dd33f.jpg", "local/cache-gd2/cb6d3ba58ecf9f2781291db65c18c63e.jpg");

});