rem: if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { var logospan = logoa.appendChild(document.createElement('span'));  logoa.style.backgroundImage = 'none'; logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')'; logospan.style.height = '100%'; logospan.style.position = 'absolute'; logospan.style.width = logoa.currentStyle.width; logospan.style.cursor = 'hand';  if (document.documentElement.dir == "rtl") { logospan.style.right = '50%'; logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"'); } else { logospan.style.left = '50%'; logospan.style.setExpression('marginLeft', '"-" + (this.offsetWidth / 2) + "px"'); } logospan.style.top = '50%'; logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"'); } 
add: var logoa = plogo.getElementsByTagName('a')[0]; if (!logoa) return;  var bg = logoa.currentStyle.backgroundImage; var imageUrl = bg.substring(5, bg.length-2);  if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { var logospan = logoa.appendChild(document.createElement('span'));  logoa.style.backgroundImage = 'none'; logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')'; logospan.style.height = '100%'; logospan.style.position = 'absolute'; logospan.style.width = logoa.currentStyle.width; logospan.style.cursor = 'hand';  if (document.documentElement.dir == "rtl") { logospan.style.right = '50%'; logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"'); } else { logospan.style.left = '50%'; logospan.style.setExpression('marginLeft', '"-" + (this.offsetWidth / 2) + "px"'); } logospan.style.top = '50%'; logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"'); } 
context: function fixalpha() {    // bg    if (!doneIEAlphaFix)    {      doneIEAlphaFix = true;      var plogo = document.getElementById('p-logo');      var logoa = plogo.getElementsByTagName('a')[0];      var bg = logoa.currentStyle.backgroundImage;      var imageUrl = bg.substring(5, bg.length-2);      if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') {          var logospan = logoa.appendChild(document.createElement('span'));                   logoa.style.backgroundImage = 'none';          logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')';          logospan.style.height = '100%';          logospan.style.position = 'absolute';          logospan.style.width = logoa.currentStyle.width;          logospan.style.cursor = 'hand';          // Center image with hack for IE5.5          if (document.documentElement.dir == "rtl")           {            logospan.style.right = '50%';            logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"');          }          else          {            logospan.style.left = '50%';            logospan.style.setExpression('marginLeft', '"-" + (this.offsetWidth / 2) + "px"');          }          logospan.style.top = '50%';          logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"');      }    }}
meta: 7966	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7966/a1dd674b79abcce9cbeddbb9784e8fceb5b23ec3/IEFixes.js/buggy/skins/common/IEFixes.js