I have a page of thumbnails which change their opacity with a hover with a image swap script built in jquery. However When I run it on a live website it is slow and you have to wait for the second image to load so the hover swap doesn't happen right away. How would I preload all of the thumb images while the page loads? the site is live here
Here is the html
<div class="span-16 last" id="thumbs">
<div class="span-4">
<a href="waterfront.php"><img src="images/thumbs/thumb1.gif" id="thumb1"></a>
</div>
</div><!--THUMBS ENDS-->
Here is the jquery
$("#thumb1").hover(
function(){
$("#thumb1").attr("src","images/thumbs/thumb1A.gif");
},
function(){
$("#thumb1").attr("src","images/thumbs/thumb1.gif");
});