﻿/// <reference path="jquery-1.4.1-vsdoc.js" />

// Repairs problems caused to cleartype in IE7 when text is faded in and out
//
// Thanks to Benjamin Michael Novakovic at http://blog.bmn.name/2008/03/jquery-fadeinfadeout-ie-cleartype-glitch/
// for this fix.


(function($) {
    $.fn.customFadeIn = function(speed, callback) {
        $(this).fadeIn(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
    $.fn.customShow = function() {
        $(this).show();
        if (jQuery.browser.msie)
            $(this).get(0).style.removeAttribute('filter');
    };
    $.fn.customFadeOut = function(speed, callback) {
        $(this).fadeOut(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
})(jQuery);
