(function(d,c){d.effects.pulsate=function(a){return this.queue(function(){var g=d(this),b=d.effects.setMode(g,a.options.mode||"show");times=((a.options.times||5)*2)-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2,isVisible=g.is(":visible"),animateTo=0;if(!isVisible){g.css("opacity",0).show();animateTo=1}if((b=="hide"&&isVisible)||(b=="show"&&!isVisible)){times--}for(var h=0;h<times;h++){g.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}g.animate({opacity:animateTo},duration,a.options.easing,function(){if(animateTo==0){g.hide()}(a.callback&&a.callback.apply(this,arguments))});g.queue("fx",function(){g.dequeue()}).dequeue()})}})(jQuery);