/**
 * jQuery.pngfix - Fix transparent PNG images for IE6 (in content only)
 * Date: 2010/07/26
 *
 * @author Michaël van Oosten
 * @version 1.0
 *
 **/

(function($) {
	$.fn.pngfix = function(settings) {

		var config = { 'fix':false };
		if (settings) $.extend(config, settings);

		config.fix = ($.browser.msie && parseInt($.browser.version) <= 6) ? true : false;
		
		this.each(function() {
			
			if(config.fix) {
				$(this).after('<div style="display:block;width:'+$(this).width()+'px;height:'+$(this).height()+'px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=\''+$(this).attr('src')+'\', sizingMethod=\'image\');"></div>').remove();
			}
			
		});
		
		return this;
 
	};
})(jQuery);
