(function(a){jQuery.fn.pngFix=function(f){f=jQuery.extend({blankgif:"/templates/web/gfx/blank.gif",sSize:"scale",debug:false,sExclude:""},f);var e=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var d=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);var b=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 7.0")!=-1);var c=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&parseInt(jQuery.browser.version)>=8);if(jQuery.browser.msie&&(!c&&!b&&(e||d))){jQuery(this).find("img[src$=.png]").each(function(){var m=jQuery(this).attr("src");if(m.length>1&&f.sExclude!=""&&m.indexOf(f.sExclude)==-1){if(f.debug){alert("png source: "+m);}jQuery(this).attr("width",jQuery(this).width());jQuery(this).attr("height",jQuery(this).height());var o="";var i="";var h=(jQuery(this).attr("id"))?'id="'+jQuery(this).attr("id")+'" ':"";var p=(jQuery(this).attr("class"))?'class="'+jQuery(this).attr("class")+'" ':"";var k=(jQuery(this).attr("title"))?'title="'+jQuery(this).attr("title")+'" ':"";var l=(jQuery(this).attr("alt"))?'alt="'+jQuery(this).attr("alt")+'" ':"";var j=(jQuery(this).attr("align"))?"float:"+jQuery(this).attr("align")+";":"";var g=(jQuery(this).parent().attr("href"))?"cursor:hand;":"";if(this.style.border){o+="border:"+this.style.border+";";this.style.border="";}if(this.style.padding){o+="padding:"+this.style.padding+";";this.style.padding="";}if(this.style.margin){o+="margin:"+this.style.margin+";";this.style.margin="";}var n=(this.style.cssText);i+="<span "+h+p+k+l;i+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+j+g;i+="width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+"px;";i+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+m+"', sizingMethod='scale');";i+=n+'"></span>';if(o!=""){i='<span style="position:relative;display:inline-block;'+o+g+"width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+'px;">'+i+"</span>";}jQuery(this).hide();jQuery(this).after(i);}});jQuery(this).find("*").each(function(i){var h=jQuery(this).css("background-image");if(h.indexOf(".png")!=-1){if(f.debug){alert("background png: "+h);}var g=h.split('url("')[1].split('")')[0];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+g+"',sizingMethod='"+f.sSize+"')";}});jQuery(this).find("input[src$=.png]").each(function(){var g=jQuery(this).attr("src");if(f.debug){alert("input with png source: "+g);}jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+g+"', sizingMethod='scale');";jQuery(this).attr("src",f.blankgif);});}return jQuery;};})(jQuery);
