var pngF = 'progid:DXImageTransform.Microsoft.AlphaImageLoader'
function loadPngs() {
	var pngEx = /\.png/i;
	for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) {
		if (obj.currentStyle.backgroundImage.match(pngEx) != null) {
			this.fixBg(obj);
		}
		if(obj.tagName=='IMG' && obj.src.match(pngEx)){
		this.fixImg(obj);
		}
	}
}
function fixBg(obj) {
	var src	= obj.currentStyle.backgroundImage.split('\"')[1];
	obj.style.filter = pngF+'(src="'+src+'",sizingMethod="scale")';
	obj.style.backgroundImage = "none";
}
function fixImg(obj){
	obj.style.height=obj.height;
	obj.style.width=obj.width;
	obj.style.filter = pngF+'(src="'+obj.src+'",sizingMethod="scale")';
	obj.src ='/eknec/transform/images/spacer.gif';
}
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer") {
	var png_trans = window.attachEvent("onload", loadPngs);
}