/*
	IE 5.5 and 6.0 PNG support

	Updated 1/7/2006
*/

// Inline image PNG transparency for IE (derived from youngpup.net)
function pngImages() {
	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
		if (img.src.match(/\.png$/i) != null) {
			var src = img.src;
			var div = document.createElement("DIV");

			// Set replacement div properties
			div.id = img.id;
			div.className = img.className;
			div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='scale')"
			div.style.width = img.width + "px";
			div.style.height = img.height + "px";
			img.replaceNode(div);
		}
}

// Only check IE 5.5 or 6 for PNG support
var isIE = 
	(document.getElementById && navigator.platform == "Win32" && 
	navigator.appName == "Microsoft Internet Explorer" &&
	(navigator.userAgent.indexOf("MSIE 5.5") >= 0 || navigator.userAgent.indexOf("MSIE 6.") >= 0));

if (isIE) pngImages();
