/*******************************************************************************Author:  David L. Burkhart (www.BurkhartTech.com)Brief Description:	This script will transform all PNG format images to enable transparency for for Internet Explorer.Full Description:	Internet Explorer 4, 5, and 6 does not natively support the alpha channel(transparency) for 32-bit PNG format images.  Internet Explorer appears to simply ignore the alpha channel for these images, rendering them as completelyopaque.  This script provides a quick and easy way to fix this problem for most web pages.  	This script uses a DirectX API, so therefore requires DirectX to work.  I don't know which versions of DirectX is required.  	This script also requires a 1-pixel tranparent GIF image.  This script as-is looks for one called "Nothing.gif".  Rename it however you prefer.  And, if anyone can figure out a better way to hide the old image, please let me know.  *******************************************************************************/	window.onload = ConvertAlphaImages;function ConvertAlphaImages() {	// Windows browser only	if ( document.all ) {		var ImageCnt = document.images.length;		var Image;		// Loop for all images		for ( var x=0; x<ImageCnt; x++ ) {			Image = document.images[x];			// Image file extension is ".png"			if ( ( Image.src.length>=4 ) && ( Image.src.substr( Image.src.length - 4, 4 ).toLowerCase() == ".png") ) {				Image.style.width = Image.clientWidth;				Image.style.height = Image.clientHeight;				Image.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='" + Image.src + "', sizingMethod='scale' )";				Image.src = "Scripts/EmptyPixel.gif"; // Hide old image				} // end if			} // end for		} // end if	} // end function