if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
window.attachEvent("onload", fnLoadPngs);
}
function fnLoadPngs() {
var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5 && Number(rslt[1]) < 7);
for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
if (itsAllGood && img.src.match(/\.png$/i) != null) {
fnFixPng(img);
img.attachEvent("onpropertychange", fnPropertyChanged);
}
}
var nl = document.getElementsByTagName("input");
for (var i = nl.length - 1, e = null; (e = nl[i]); i--) {
if (e.type == 'image') {
if (e.src.match(/\.png$/i) != null) {
fnFixPng(e);
e.attachEvent("onpropertychange", fnPropertyChanged);
}
}
}
}
function fnPropertyChanged() {
if (window.event.propertyName == "src") {
var el = window.event.srcElement;
if (!el.src.match(/\/files\/sleight_img\.gif$/i)) {
el.filters.item(0).src = el.src;
el.src = "/files/sleight_img.gif";
}
}
}
function fnFixPng(img) {
var src = img.src;
img.style.width = img.width + "px";
img.style.height = img.height + "px";
img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
img.src = "/files/sleight_img.gif";
}