/**
 * @author Michael Ryan
 */

function PNGFix()
{
	var imagesArray = document.images;	
	var files = "";
	
	for (i = 0; i < imagesArray.length; i++) 
	{
		var theImage = imagesArray[i];
		
		theImage.src = theImage.src.toLowerCase();
		
		//If the file extension of this image is .png
		if (theImage.src.lastIndexOf(".png") == (theImage.src.length - 4))
		{
		    theImage.style.filter = 'filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + theImage.src + '", sizingMethod="image")';
			theImage.src = "/images/blank.gif";
		};		
	};	
};

if (BrowserDetect.browser == "Explorer" && BrowserDetect.version == "6")
{
    window.addEvent('domready', function()
    {
        PNGFix();
    });
}