(function(b){b.extend({secondTimers:{}});b.extend({secondTimersInterval:setInterval(function(){b.runSecondTimers()},1000)});b.addSecondTimer=function(d,f,e,c){b.secondTimers[f]={$object:d,seconds:e,countDown:e,functionCall:c}};b.removeSecondTimer=function(c){delete a.secondTimers[c]};b.runSecondTimers=function(){b.each(b.secondTimers,function(d,c){c.countDown--;if(c.countDown==0){c.countDown=c.seconds;c.functionCall(c.$object)}})};b.isVisible=function(c){return c.is(":visible")}})(jQuery);
