// Universal transparent-PNG enabler for MSIE/Win 5.5+ // http://dsandler.org // From original code: http://www.youngpup.net/?request=/snippets/sleight.xml // and background-image code: http://www.allinthehead.com/retro/69 // also: // * use sizingMethod=crop to avoid scaling PNGs (who would do such a thing?) // * only do this once, to make it compatible with CSS rollovers if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) { window.attachEvent("onload", enableAlphaImages); } function enableAlphaImages(){ var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, ''); var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5); if (itsAllGood) { for (var i=0; i