(function(n){n.formatFeatureTabs=function(t,i){var f={reload:!1},r=this,u;r.settings={};u=n(t);r.init=function(){r.settings=n.extend({},f,i);var t=u.find(".event-ids").data("event-ids"),e={eventIds:n.parseJSON("["+t+"]"),tabtype:"live"};n.get(config.contextPath+"api/event/get-feature-tabs",n.param(e,!0),function(n){u.html(n);u.hoverInfoPanel()})};r.init()};n.fn.formatFeatureTabs=function(t){return this.each(function(){if(undefined==n(this).data("featuretabs")){var i=new n.formatFeatureTabs(this,t);n(this).data("featuretabs",i)}})}})(jQuery),function(n){n.formatEventFeeds=function(t,i){var f={headers:[]},r=this,u;r.settings={};u=n(t);r.init=function(){var e,t,o,s,h;for(r.settings=n.extend({},f,i),e=[],t=0;t<r.settings.headers.length;t++)o=u.find(".col-"+t).data("event-ids"),e.push(n.parseJSON("["+o+"]"));s=JSON.stringify(e);h={eventIds:s};n.ajax({url:config.contextPath+"api/event/get-main-feed-events",data:h,cache:!1,success:function(t){u.html(t);n(r.settings.headers).each(function(n,t){u.find(".feeds-heading-"+n).html(t)})},dataType:"html"})};r.init()};n.fn.formatEventFeeds=function(t){return this.each(function(){if(undefined==n(this).data("mainfeeds")){var i=new n.formatEventFeeds(this,t);n(this).data("mainfeeds",i)}})}}(jQuery)