(function(a){a.extend({widgets:[]});a.extend({secondTimers:{}});a.extend({secondTimersInterval:setInterval(function(){a.runSecondTimers()},1e3)});a.fn.widgets=function(c,b){a.widgets.push({selector:this.selector,widgetName:c,options:b});a.applyWidgets(this.parent())};a.applyWidgets=function(b){a.each(a.widgets,function(){var d=this,c=a(d.selector,b),e=d.widgetName+"Attached";if(c.length>0&&c.data(e)==undefined&&a.isVisible(c)){c.data(e,true);a.fn[d.widgetName].apply(c,[d.options])}})};a.isVisible=function(a){return a.is(":visible")};a.addSecondTimer=function(d,e,b,c){a.secondTimers[e]={$object:d,seconds:b,countDown:b,functionCall:c}};a.removeSecondTimer=function(b){delete a.secondTimers[b]};a.runSecondTimers=function(){a.each(a.secondTimers,function(b,a){a.countDown--;if(a.countDown==0){a.countDown=a.seconds;a.functionCall(a.$object)}})}})(jQuery)