Event.observe(window, 'load', function() {
	document.getElementsByClassName('ie-fix-opacity-logo').each(function(poElement) {
		// if IE5.5+ on win32, then display PNGs with AlphaImageLoader
		if ((browser.isIE55 || browser.isIE6up) && browser.isWin32) {
			//var cImage = poElement.currentStyle.backgroundImage.substring(poElement.currentStyle.backgroundImage.indexOf('"') + 1, poElement.currentStyle.backgroundImage.lastIndexOf('"'));
            var cImage = poElement.childNodes[0];
			
			poElement.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + cImage.src + "', sizingMethod='scale')";
			poElement.style.backgroundImage = "none";
            poElement.style.position = "absolute";
            poElement.style.width = cImage.width + "px";
            poElement.style.height = cImage.height + "px";
            poElement.style.cursor = "hand";
            poElement.childNodes[0].style.display = "none";
		}
	});
	document.getElementsByClassName('ie-fix-opacity').each(function(poElement) {
		// if IE5.5+ on win32, then display PNGs with AlphaImageLoader
		if ((browser.isIE55 || browser.isIE6up) && browser.isWin32) {
			//var cImage = poElement.currentStyle.backgroundImage.substring(poElement.currentStyle.backgroundImage.indexOf('"') + 1, poElement.currentStyle.backgroundImage.lastIndexOf('"'));
            var cImage = poElement.childNodes[0];
			
			poElement.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + cImage.src + "', sizingMethod='scale')";
			poElement.style.backgroundImage = "none";
            poElement.style.width = cImage.width + "px";
            poElement.style.height = cImage.height + "px";
            poElement.childNodes[0].style.display = "none";
		}
	});
}, false);
