var w = 0;
var h = 0;

if(navigator.userAgent.toLowerCase().indexOf('msie')>0){ // detect for IE (could be more specific to PC and version, but this works for the test)
	is = document.getElementsByTagName('IMG'); // get all images
	for(x=0; x<is.length; x++){ // cycle through those images
		if(is[x].src.indexOf('.png')){ // only do this to png files
			is[x].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+is[x].src+"', sizingMethod='scale')"; // apply the filter stuff that makes IE do it's magic
			w = is[x].offsetWidth;
			h = is[x].offsetHeight
			is[x].src = "http://www.celebritypwn.com/images/z.gif"; // replace the image with a clear gif so that the filter can show through
			is[x].width = w;
			is[x].height = h;
		}
	}
}

