(function(c){"function"===typeof define&&define.amd?define(["jquery","./effect"],c):c(jQuery)})(function(c){return c.effects.effect.pulsate=function(d,l){var a=c(this),b=c.effects.setMode(a,d.mode||"show"),e="show"===b,m="hide"===b,b=2*(d.times||5)+(e||"hide"===b?1:0),h=d.duration/b,f=0,g=a.queue(),k=g.length;if(e||!a.is(":visible"))a.css("opacity",0).show(),f=1;for(e=1;e<b;e++)a.animate({opacity:f},h,d.easing),f=1-f;a.animate({opacity:f},h,d.easing);a.queue(function(){m&&a.hide();l()});1<k&&g.splice.apply(g,
[1,0].concat(g.splice(k,b+1)));a.dequeue()}});