(function($){$.fn.toggleFade=function(settings)
{settings=jQuery.extend({speedIn:"normal",speedOut:settings.speedIn},settings);return this.each(function()
{var isHidden=jQuery(this).is(":hidden");jQuery(this)[isHidden?"fadeIn":"fadeOut"](isHidden?settings.speedIn:settings.speedOut);});};})(jQuery);