I have tried two image preload scripts and neither one seems to work in IE 6. I'm trying to do an image swap and in IE, when I mouseover the image, IE seems to connect to the server and load it everytime instead of caching it (this same image is even used multiple times on the page!) Both scripts work fine with Mozilla.

Script 1 (standard Dreamweaver):
Code:
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
Script 2: (got off this forum):
Code:
function doPreload() {
	var imgRoot = "/images/";
	var the_images = [
		'pd2.gif',
		'explore2.gif',
		'games2.gif',
		'shops2.gif',
		'chat2.gif',
		'mail2.gif',
		'help2.gif',
		'login2.gif',
		'logout2.gif'
		];
	preloadImages(the_images, imgRoot);
	}

function preloadImages(arrImages, root) {
	for(var i = 0; i < arrImages.length; i++) {
		var img = new Image();
		img.src = root + arrImages[i];
		}
	}
I'm calling both from the body tag's onload:
Code:
<body onload="__whateverscript__">
Any idea why IE doesn't like either of these?