// Simple function used for preloading images used in rollovers
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

// Simply change the image src for the image identified by the first parameter
// with the src identified by the second parameter. The fading filter will only
// execute if the browser is IE5.5 or higher.
function changeImages() {
	var ua = navigator.userAgent;
	var ie_index = ua.indexOf("MSIE");
	var ie_ver = parseFloat(ua.substring(ie_index + 5, ie_index + 8));
	var ie55up = ie_index > 0 && ie_ver >= 5.5;
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			if (ie55up)
				document[changeImages.arguments[i]].filters[0].Apply();
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			if (ie55up)
				document[changeImages.arguments[i]].filters[0].Play();
		}
	}
}

// Preload images used in rollovers
//if (document.images)
//	img1 = newImage("/images/img1.gif");
//	img2 = newImage("/images/img2.gif");
	// ...
//}
