/*
 * extcore-pngfix. PNG with alpha transparency for IE6. Copyright 2009 Daniel Jagszent. MIT License.
 */
(function(){Ext.ns("Ext.ux");Ext.applyIf(Ext,{BLANK_IMAGE_URL:"http://extjs.com/s.gif"});var e="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{0}',sizingMethod='scale')",h="needsImageFix",d="needsBackgroundFix";function c(j){var i=j.dom,k=i.style;if(j.parent("a")){k.cursor="hand"}k.filter=String.format(e,i.src);i.src=Ext.BLANK_IMAGE_URL}function g(i){var k=i.dom.style,j=i.getStyle("background-image").replace(/^\s*url\(\s*("|')?\s*/,"").replace(/\s*("|')?\s*\)\s*$/,"");k.backgroundImage="none";k.filter=String.format(e,j)}function f(i){if(b[h](i)){c(i)}else{if(b[d](i)){g(i)}}}function b(i){i=Ext.get(i||Ext.getBody());f(i);i.select("*").each(f)}b[h]=function(i){var j=i.dom.src;if(j&&j.match(/\.png$/)){return true}return false};b[d]=function(j){var i=j.getStyle("background-image");if(i&&i.match(/url\(.*\.png/)){return true}return false};function a(){}a[h]=Ext.emptyFn;a[d]=Ext.emptyFn;Ext.ux.PngFix=Ext.isIE6?b:a})();Ext.Element.addMethods({pngFix:function(){Ext.ux.PngFix(this);return this}});Ext.CompositeElementLite.prototype.pngFix=function(){return this.invoke("pngFix",arguments)};
