function ExpandableTable(n){"use strict";this.$root=jQuery(n);this.bindExpandCollapse()}function FormModule(n){"use strict";if(this.classError="formFieldError",this.classNoError="formFieldNoError",this.$root=jQuery(n),this.$root.length===0){console.log("Exiting FormModule initialization. $root does not exist.");return}this.initSelectboxIt();this.initUniform();this.bindFieldChanges();this.bindForm()}function Gallery(n,t){"use strict";var i=this;this.$root=jQuery(n);this.settings=jQuery.extend({classCurrent:"current",selectorControls:".galleryDetailControls",selectorControlNext:".galleryNext",selectorControlPrevious:".galleryPrevious",selectorPhoto:".photoDetail",selectorPhotoCurrent:".galleryCountCurrent",selectorPhotoImageWrapper:".photoDetailImage",selectorPhotoImage:".photoDetailImage img",selectorPhotoTotal:".galleryCountTotal",selectorNextGallery:".nextGallery",selectorRestartGallery:".restartGallery",selectorEndcaps:".endcaps"},t);this.$photos=this.$root.find(this.settings.selectorPhoto);this.current=0;this.updateCounts();this.show(0);this.appendPaginationToEachPhoto();this.appendEndcapsToLastPhoto();this.bindPagination();$(".endcaps p").each(function(){i.truncateText($(this),32)})}function Poll(n){"use strict";var t=[];this.getPriorPolls=function(){t=USAB.getCookie("polls");t=t===""?[]:t.split(",")};this.setPriorPolls=function(){USAB.setCookie("polls",t.join(","),90)};this.hasTaken=function(n){for(var i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1};this.showResults=function(){var n=jQuery("form.usabPoll",this.$module.find(".pollQuestion"));this.$module.find(".pollQuestion").hide();jQuery.ajax({url:"/Handler/getPollresults?id="+n.attr("data-poll-id"),type:"GET",dataType:"json",success:function(t){var i=t.poll,f=n.closest(".moduleInner"),u=jQuery(".pollContent",f),r;u.html("");for(r in i)u.append('<div class="pollResultRow"><div class="resultBlock"><div class="pollResultBar" style="width: '+i[r].percentage+'"><\/div><span>'+i[r].percentage+'<\/span><\/div><span class="pollAnswer">'+i[r].answer+"<\/span><\/div>")},error:function(){}});this.$module.find(".pollSubmitted").show()};this.bindPoll=function(){var n=this;this.$form.submit(function(i){var r;if(i.preventDefault(),i.stopPropagation(),n.$form.find("input:checked").length===0){console.log("No options checked in form.");return}if(r=n.$form.attr("data-poll-id"),r===undefined||r===null||r===""){console.log("Unable to find the poll id");return}t.push(r);n.setPriorPolls();jQuery.ajax({url:n.$form.attr("action"),data:n.$form.serializeArray()});n.showResults()})};this.normalizeResults=function(){var n=0;this.$module.find(".pollSubmitted .pollResultBar").each(function(){var t;try{t=jQuery(this).css("width");t=parseFloat(t,10);t>n&&(n=t)}catch(i){console.log(i)}});this.$module.find(".pollSubmitted .pollResultBar").each(function(){var t;try{t=jQuery(this).css("width");t=parseFloat(t,10);t=t/n;t=Math.round(t*100);jQuery(this).css("width",t+"%")}catch(i){console.log(i)}})};this.init=function(n){var t;this.$module=jQuery(n);this.$form=this.$module.find("form");this.getPriorPolls();t=this.$form.attr("data-poll-id");this.hasTaken(t)?this.showResults():this.bindPoll()};this.init(n)}function SubMenu(n){"use strict";this.$root=jQuery(n);this.makeSticky();this.bindFilterSelects();this.buildDropMenu();this.bindScrollIfAnchorMenu()}function initSubMenus(){"use strict";jQuery(".subMenu").each(function(){return new SubMenu(this)})}var ArticleList,VideoModals,USAB;(function(n,t){"use strict";var f,i,r,u="flexibleAdsOptions";i={extendOptions:function(t,i,r){var f,e;return r===undefined&&(r=!1),i===undefined&&(i={}),f=t.data(u),e=r?n.extend({},f,n.fn.flexibleAds.options,i):n.extend({},n.fn.flexibleAds.options,f,i),t.data(u,e),e},parseDataSize:function(n,t){var u,f,r,i=[];if(n=jQuery(n),u=n.attr(t),u===undefined||u===null){console.log("Error in jQuery.flexibleAds.parseDataSize");console.log("No",t,"attribute in",n);throw"Unable to find attribute.";}try{for(i=u.split(","),r=0;r<i.length;r+=1)f=i[r].split("x"),i[r]=[parseInt(f[0],10),parseInt(f[1],10)];return i.sort(function(n,t){return t[0]-n[0]}),i}catch(e){console.log("Error in jQuery.flexibleAds.parseDataSize");console.log(e);throw"Unable to process.";}},draw:function(n,i,r){var e,o,s,h,f,c;n=jQuery(n);r!==!0&&(r=!1);e=n.data(u);o=n.attr("id");o===undefined&&(o=e.idPrefix+(new Date).getTime()+Math.floor(Math.random()*1e6),n.attr("id",o));s=o+"-"+i[0]+"x"+i[1];h=n.attr(e.attrUnit);try{f=n.data("flexibleAdSlots");(f===undefined||f===null||f===""||f.length===undefined)&&(f=[]);n.find("#"+s).length!==0?(n.find("."+e.classSubAd).hide(),n.find("#"+s).show(),r&&t.pubads().refresh(f)):(t.pubads().updateCorrelator(),n.find("."+e.classSubAd).hide(),n.append('<div id="'+s+'" class="'+e.classSubAd+'"><\/div>'),c=t.defineSlot(h,i,s).addService(t.pubads()),f.push(c),n.data("flexibleAdSlots",f),t.enableServices(),t.display(s))}catch(l){console.log(l);console.log("id",o);console.log("resolution",i);console.log("unit",h)}}};r={init:function(t){return this.each(function(){var r,u,f;r=n(this);u=i.extendOptions(r,t);f=i.parseDataSize(r,u.attrSizes);r.data(u.dataResolutions,f);r.flexibleAds("redraw");n.fn.flexibleAds.$all=n.fn.flexibleAds.$all.add(r)})},getBestResolution:function(t,i){var r,o,e,f;for(r=jQuery(this),r.length>0&&(r=n(r.get(0))),o=r.data(u),t===undefined&&(t=r.width()),i===undefined&&(i=r.css("max-height"),i=i===undefined||i===null||i.toString().indexOf("px")===-1?99999:parseInt(i,10)),e=r.data(o.dataResolutions),f=0;f<e.length;f+=1)if(e[f][0]<=t&&e[f][1]<=i)return e[f];return[0,0]},redraw:function(t,r){return this.filter(":visible").each(function(){var u,o,f,e;r===undefined&&(r=!1);u=n(this);o=i.extendOptions(u,t);f=u.flexibleAds("getBestResolution");e=u.data(o.dataResolution);e===undefined&&(e=[-1,-1]);(r===!0||e[0]!==f[0]||e[1]!==f[1])&&(u.data(o.dataResolution,f),i.draw(u,f,r))})}};n.fn.flexibleAds=function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):t===undefined||typeof t=="object"?r.init.apply(this.filter(":visible"),arguments):(n.error("Method "+t+" does not exist in jQuery.flexibleAds"),this)};n.fn.flexibleAds.options={attrSizes:"data-sizes",attrUnit:"data-ad-unit",classSubAd:"subAd",dataResolution:"flexibleAdsResolution",dataResolutions:"flexibleAdsResolutions",idPrefix:"flexibleAd"};n.fn.flexibleAds.$all=n();n.fn.flexibleAds.slots={};n(window).resize(function(){window.clearTimeout(f);f=window.setTimeout(function(){n.fn.flexibleAds.$all.flexibleAds("redraw")},200)})})(jQuery,googletag),function(n){"use strict";var t,i,r="moreListOptions";t={extendOptions:function(t,i,u){var f,e;return u===undefined&&(u=!1),i===undefined&&(i={}),f=t.data(r),e=u?n.extend({},f,n.fn.moreList.options,i):n.extend({},n.fn.moreList.options,f,i),t.data(r,e),e},getPropertiesFromElement:function(n,t){var i,r,u;i=t.attr(n.attrPage);r=t.attr(n.attrEnd);u=t.attr(n.attrTotal);i===undefined&&(console.log("Error in jQuery.moreList.getPropertiesFromElement"),console.log("Unable to find page ("+n.attrPage+"). Defaulting to zero."),console.log("data",t),i=0);r===undefined&&(console.log("Error in jQuery.moreList.getPropertiesFromElement"),console.log("Unable to find end ("+n.attrEnd+"). Defaulting to "+n.endIndex),console.log("data",t),r=n.endIndex);u===undefined&&(console.log("Error in jQuery.moreList.getPropertiesFromElement"),console.log("Unable to find total ("+n.attrTotal+"). Defaulting to zero."),console.log("data",t),u=0);try{i=parseInt(i,10)}catch(f){console.log("Error in jQuery.moreList.getPropertiesFromElement");console.log(f);console.log("Turning page into an integer",i)}try{r=parseInt(r,10)}catch(f){console.log("Error in jQuery.moreList.getPropertiesFromElement");console.log(f);console.log("Turning end into an integer",r)}try{u=parseInt(u,10)}catch(f){console.log("Error in jQuery.moreList.getPropertiesFromElement");console.log(f);console.log("Turning total into an integer",u)}return{page:i,end:r-n.endIndex,total:u}},processDataSet:function(n,i,r){var u,f;r=jQuery(r);u=t.getPropertiesFromElement(i,r);r.data("pagesize")&&(i.numResults=r.data("pagesize"));f=Math.ceil(u.end/i.numResults);u.end>=u.total-1?(f=-1,n.removeClass(i.classHasMore).addClass(i.classNoMore)):n.removeClass(i.classNoMore).addClass(i.classHasMore);jQuery(i.end).text(u.end+1);jQuery(i.total).text(u.total);t.extendOptions(n,{endResult:u.end,nextPage:f,totalResults:u.total})},handleAjaxResponse:function(n,i,r,u){var f;f=jQuery(u);t.processDataSet(n,i,f);r.append(f);i.onMore(f)}};i={init:function(i){return this.each(function(){var f,u,e,o;f=n(this);u=t.extendOptions(f,i);u.nextPage=0;f.data(r,u);e=f;u.target!==undefined&&(e=jQuery(u.target));o=e.find("["+u.attrPage+"]["+u.attrEnd+"]["+u.attrTotal+"]");f.removeClass(u.classHasMore).addClass(u.classNoMore);f.moreList("bind");o.length>0?t.processDataSet(f,u,o.last()):f.moreList("more")})},getFormValues:function(i){var r,s,e,f,o={},u;if(r=n(this),r.length===0)return o;if(r=n(r.get(0)),s=t.extendOptions(r,i),e=n(s.form),e.length===0)return{};for(f=e.serializeArray(),u=0;u<f.length;u+=1)o[f[u].name]=f[u].value;return o},more:function(i,u){return this.each(function(){var e,f,s,o=null,a="POST",c,l,h;if(u===undefined&&(u=!1),e=n(this),f=t.extendOptions(e,i),s=e.moreList("getFormValues"),f.paramNumResults!==undefined&&(s[f.paramNumResults]=f.numResults),o=f.url,n(f.form).length>0&&(c=n(f.form).attr("action"),l=n(f.form).attr("method"),c!==undefined&&(o=c),l!==undefined&&(a=l.toString().toUpperCase())),o===undefined||o===null){console.log("Error in jQuery.moreList");console.log("No URL found.");console.log("object",e);console.log("options",f);return}if((u||f.nextPage===undefined)&&(f.nextPage=0,e.data(r,f)),f.nextPage===-1){console.log("Exiting jQuery.moreList.more");console.log("No more entries to load.");console.log("object",e);console.log("options",f);return}f.paramPage!==undefined&&(s[f.paramPage]=f.nextPage+f.firstPageIndex);h=e;f.target!==undefined&&(h=jQuery(f.target).first());u&&h.empty();jQuery.ajax({data:s,error:function(n,t,i){console.log("Error in jQuery.moreList");console.log("AJAX error.");console.log("jqXHR",n);console.log("textStatus",t);console.log("errorThrown",i);console.log("object",e);console.log("options",f)},success:function(n){t.handleAjaxResponse(e,f,h,n)},type:a,url:o})})},bind:function(i){return this.each(function(){var r,u;r=n(this);u=t.extendOptions(r,i);jQuery(u.moreTrigger).on("click",function(n){n.preventDefault();r.moreList("more")});jQuery(u.form).find(u.formTrigger).on("change",function(){r.moreList("more",{},!0)})})}};n.fn.moreList=function(t){return i[t]?i[t].apply(this,Array.prototype.slice.call(arguments,1)):t===undefined||typeof t=="object"?i.init.apply(this,arguments):(n.error("Method "+t+" does not exist in jQuery.moreList"),this)};n.fn.moreList.options={attrPage:"data-page",attrEnd:"data-end",attrTotal:"data-total",classHasMore:"hasMore",classNoMore:"noMore",endIndex:1,firstPageIndex:1,form:undefined,formTrigger:"input, select",moreTrigger:undefined,onMore:function(n){return n},numResults:10,paramNumResults:undefined,paramPage:"p",target:undefined,total:undefined,url:undefined}}(jQuery),function(n,t){"use strict";function h(t,r,u){var f,e;return u===undefined&&(u=!1),r===undefined&&(r={}),f=t.data(i),e=u?n.extend({},f,n.fn.proportional.options,r):n.extend({},f,r),t.data(i,e),e}function f(n,t,i,r,u){var f=t-n.width;switch(r){case"left":n.left=0;break;case"right":n.right=0;break;default:n.left=Math.floor(f/2)}f=i-n.height;switch(u){case"top":n.top=0;break;case"bottom":n.bottom=0;break;default:n.top=Math.floor(f/2)}return n}function e(){var n=jQuery(this),t=n.data(i);n.proportional("init",t)}var u,r,i="proportionalOptions",o,s;u={fixed:function(n,t,i,r,u,e){var o={position:"absolute",left:"auto",right:"auto",top:"auto",bottom:"auto",width:n,height:t};return f(o,i,r,u,e)},stretch:function(){return{position:"absolute",left:"0",right:"auto",top:"0",bottom:"auto",width:"100%",height:"100%"}},letterbox:function(n,t,i,r,u,e){var o={position:"absolute",left:"auto",right:"auto",top:"auto",bottom:"auto",width:n,height:t},h=n/t,c=i/r,s;return s=h>c?i/n:r/t,o.width=Math.round(n*s),o.height=Math.round(t*s),f(o,i,r,u,e)},bleed:function(n,t,i,r,u,e){var o={position:"absolute",left:"auto",right:"auto",top:"auto",bottom:"auto",width:n,height:t},h=n/t,c=i/r,s;return s=h<c?i/n:r/t,o.width=Math.round(n*s),o.height=Math.round(t*s),f(o,i,r,u,e),o}};r={init:function(t){return this.each(function(){var u=jQuery(this),f,r;if(f=h(u,t,!0),f.useImageSize&&u.is("img")&&(r=u.get(0),(r.complete||!!r.naturalWidth)&&(r=new Image,r.src=u.attr("src"),r.width!==undefined&&r.width!==0&&(f.nativeWidth=r.width),r.height!==undefined&&r.height!==0&&(f.nativeHeight=r.height)),u.off("load",e),f.reInitializeOnImageLoad))u.on("load",e);f.nativeAspectRatio=f.nativeWidth/f.nativeHeight;u.data(i,f);u.proportional("resize");n.fn.proportional.allElements=n.fn.proportional.allElements.add(u)})},resize:function(n){return this.each(function(){var r=jQuery(this),t,i,s,c,f,l,a,v,y,e,o;if(t=h(r,n,!1),i=r.parents(t.proportionalTo),i.length!==0){if(i=jQuery(i.get(0)),s=i.outerWidth(),c=i.outerHeight(),c===0){console!==undefined&&console.log!==undefined&&console.log("jquery.proportional resize - The proportionalTo element",i,"has a height of 0.");return}if(s===0){console!==undefined&&console.log!==undefined&&console.log("jquery.proportional resize - The proportionalTo element",i,"has a width of 0.");return}if(t.nativeHeight===0){console!==undefined&&console.log!==undefined&&console.log("jquery.proportional resize - The element",r,"has a native height of 0.");return}if(t.nativeWidth===0){console!==undefined&&console.log!==undefined&&console.log("jquery.proportional resize - The element",r,"has a native width of 0.");return}if(u[t.scaleType]!==undefined){f=u[t.scaleType](t.nativeWidth,t.nativeHeight,s,c,t.alignH,t.alignV);r.css(f);l=f.width;a=f.height;e=f.left;o=f.top;e==="auto"&&(e=0);o==="auto"&&(o=0);v=l+2*e;y=a+2*o;t.onResize(r,{coreWidth:l,coreHeight:a,$proportionalTo:i,proportionalToWidth:s,proportionalToHeight:c,visibleWidth:v,visibleHeight:y,offsetH:e,offsetV:o})}}})},resizeAll:function(){return n.fn.proportional.allElements.each(function(){var n=jQuery(this),t;t=n.data(i);t.watchWindow&&n.proportional("resize")})},remove:function(){return this.each(function(){var t=jQuery(this);t.removeData(i);t.off("complete",e);n.fn.proportional.allElements=n.fn.proportional.allElements.not(t)})}};n.fn.proportional=function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):t===undefined||typeof t=="object"?r.init.apply(this,arguments):(n.error("Method "+t+" does not exist in jQuery.imagecopyright"),this)};n.fn.proportional.options={alignH:"center",alignV:"center",nativeWidth:320,nativeHeight:240,reInitializeOnImageLoad:!0,proportionalTo:"*",scaleType:"fixed",useImageSize:!0,watchWindow:!0,onResize:function(n,t){return[this,t]}};n.fn.proportional.allElements=n();s=function(){n.fn.proportional("resizeAll")};n(t).on("resize",function(){t.clearTimeout(o);o=t.setTimeout(s,100)})}(jQuery,window),function(n){"use strict";var t,i,r="simpleCarouselOptions";t={extendOptions:function(t,i,u){var f,e;return u===undefined&&(u=!1),i===undefined&&(i={}),f=t.data(r),e=u?n.extend({},f,n.fn.simplecarousel.options,i):n.extend({},n.fn.simplecarousel.options,f,i),t.data(r,e),e},bind:function(t,i){var r=t.find(i.selectorBullets);r.on("click","."+i.classBullet,function(i){var u,r;i.preventDefault();u=n(this);r=u.attr("data-pane");try{r=parseInt(r,10)}catch(f){console.log(f)}t.simplecarousel("set",r)});t.find(i.selectorPrevious).click(function(n){n.preventDefault();t.simplecarousel("previous")});t.find(i.selectorNext).click(function(n){n.preventDefault();t.simplecarousel("next")})},setOffsetClasses:function(t,i,r,u,f,e,o){var s,h,c;for(t=n(t),h=i-r,h<0&&(h+=u),c=r-i,c<0&&(c+=u),t.removeClass(o),s=0;s<u;s+=1)t.removeClass(f+s).removeClass(e+s);t.addClass(f+h).addClass(e+c);h===0&&t.addClass(o)}};i={init:function(i){return this.each(function(){var r,u;r=n(this);u=t.extendOptions(r,i);t.bind(r,u);r.simplecarousel("buildBullets");r.simplecarousel("show")})},buildBullets:function(i){return this.each(function(){var r,u,f,e;r=n(this);u=t.extendOptions(r,i);f=r.find(u.selectorBullets);f.empty();e=r.find(u.selectorPanes);e.each(function(t){var i=n("<a />");i.attr("href","#");i.attr("title",t+1);i.attr("data-pane",t);i.addClass(u.classBullet);i.text(t+1);f.append(i)})})},show:function(){return this.each(function(){var r,i,u,e,f;r=n(this);i=t.extendOptions(r);u=r.data(i.dataCurrent);u===undefined&&(u=i.start);e=r.find(i.selectorPanes);f=e.length;e.each(function(n){t.setOffsetClasses(this,n,u,f,i.classAfter,i.classBefore,i.classCurrent)});r.find(i.selectorBullets).find("."+i.classBullet).each(function(n){t.setOffsetClasses(this,n,u,f,i.classAfter,i.classBefore,i.classCurrent)});r.removeClass(i.classEmpty).removeClass(i.classSingle);f===0&&r.addClass(i.classEmpty);f===1&&r.addClass(i.classSingle);r.attr(i.attrNumPanes,f);r.attr(i.attrCurrentPane,u)})},set:function(i){return this.each(function(){var r,u,e,f;r=n(this);u=t.extendOptions(r);i===undefined&&(i=u.start);e=r.find(u.selectorPanes);f=e.length;i<0&&(i=0);i>=f&&(i=f-1);r.data(u.dataCurrent,i);r.simplecarousel("show");u.onSet(r,i,f)})},increment:function(i){return i===undefined&&(i=0),this.each(function(){var u,f,o,e,r;if(u=n(this),f=t.extendOptions(u),o=u.find(f.selectorPanes),e=o.length,r=u.data(f.dataCurrent),r===undefined&&(r=f.start),r+=i,f.isCircular){while(r<0&&e>0)r+=e;r=r%e}u.simplecarousel("set",r)})},next:function(){return this.each(function(){var t=n(this);t.simplecarousel("increment",1)})},previous:function(){return this.each(function(){var t=n(this);t.simplecarousel("increment",-1)})}};n.fn.simplecarousel=function(t){return i[t]?i[t].apply(this,Array.prototype.slice.call(arguments,1)):t===undefined||typeof t=="object"?i.init.apply(this,arguments):(n.error("Method "+t+" does not exist in jQuery.simplecarousel"),this)};n.fn.simplecarousel.options={attrCurrentPane:"data-current-pane",attrNumPanes:"data-num-panes",classAfter:"simpleCarouselAfter",classBefore:"simpleCarouselBefore",classBullet:"simpleCarouselBullet",classCurrent:"simpleCarouselCurrent",classEmpty:"simpleCarouselEmpty",classSingle:"simpleCarouselSingle",dataCurrent:"simpleCarouselCurrent",isCircular:!0,onSet:function(n,t,i){return[n,t,i]},selectorBullets:".bullets",selectorNext:".next",selectorPanes:".pane",selectorPrevious:".previous",start:0}}(jQuery),function(n){"use strict";var r=jQuery(window),u,f,i,t,e="stickyClassOptions";i={extendOptions:function(t,i,r){var u,f;return r===undefined&&(r=!1),i===undefined&&(i={}),u=t.data(e),f=r?n.extend({},u,n.fn.stickyClass.options,i):n.extend({},n.fn.stickyClass.options,u,i),t.data(e,f),f}};t={init:function(t){return this.each(function(){var r;r=n(this);i.extendOptions(r,t);r.stickyClass("update");n.fn.stickyClass.$all=n.fn.stickyClass.$all.add(r)})},update:function(t){var u=r.scrollTop();return this.each(function(){var f,r,e,s,o;f=n(this);r=i.extendOptions(f,t);r.relativeTo===undefined||r.relativeTo===null||r.relativeTo==="parent"?e=f.parent():(e=n(r.relativeTo),e.length===0&&(console.log("Unable to find ",r.relativeTo,"defaulting to parent."),e=f.parent()));s=e.offset();o=s.top;typeof r.offset=="number"&&(o=o-r.offset);u>o?f.is("."+r.classSticky)||(f.addClass(r.classSticky).removeClass(r.classNotSticky),r.onChange()):f.is("."+r.classSticky)&&(f.addClass(r.classNotSticky).removeClass(r.classSticky),r.onChange())})}};n.fn.stickyClass=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):i===undefined||typeof i=="object"?t.init.apply(this,arguments):(n.error("Method "+i+" does not exist in jQuery.stickyClass"),this)};n.fn.stickyClass.options={classSticky:"isSticky",classNotSticky:"notSticky",offset:0,onChange:function(){return!0},relativeTo:"parent"};n.fn.stickyClass.$all=n();r.resize(function(){clearTimeout(u);u=setTimeout(function(){n.fn.stickyClass.$all.stickyClass("update")},50)}).scroll(function(){clearTimeout(f);f=setTimeout(function(){n.fn.stickyClass.$all.stickyClass("update")},0)})}(jQuery);!function(n){"use strict";n(window.jQuery,window,document)}(function(n,t,i,r){"use strict";n.widget("selectBox.selectBoxIt",{VERSION:"3.8.1",options:{showEffect:"none",showEffectOptions:{},showEffectSpeed:"medium",hideEffect:"none",hideEffectOptions:{},hideEffectSpeed:"medium",showFirstOption:!0,defaultText:"",defaultIcon:"",downArrowIcon:"",theme:"default",keydownOpen:!0,isMobile:function(){var n=navigator.userAgent||navigator.vendor||t.opera;return/iPhone|iPod|iPad|Silk|Android|BlackBerry|Opera Mini|IEMobile/.test(n)},"native":!1,aggressiveChange:!1,selectWhenHidden:!0,viewport:n(t),similarSearch:!1,copyAttributes:["title","rel"],copyClasses:"button",nativeMousedown:!1,customShowHideEvent:!1,autoWidth:!0,html:!0,populate:"",dynamicPositioning:!0,hideCurrent:!1},getThemes:function(){var i=this,t=n(i.element).attr("data-theme")||"c";return{bootstrap:{focus:"active",hover:"",enabled:"enabled",disabled:"disabled",arrow:"caret",button:"btn",list:"dropdown-menu",container:"bootstrap",open:"open"},jqueryui:{focus:"ui-state-focus",hover:"ui-state-hover",enabled:"ui-state-enabled",disabled:"ui-state-disabled",arrow:"ui-icon ui-icon-triangle-1-s",button:"ui-widget ui-state-default",list:"ui-widget ui-widget-content",container:"jqueryui",open:"selectboxit-open"},jquerymobile:{focus:"ui-btn-down-"+t,hover:"ui-btn-hover-"+t,enabled:"ui-enabled",disabled:"ui-disabled",arrow:"ui-icon ui-icon-arrow-d ui-icon-shadow",button:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+t,list:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+t,container:"jquerymobile",open:"selectboxit-open"},"default":{focus:"selectboxit-focus",hover:"selectboxit-hover",enabled:"selectboxit-enabled",disabled:"selectboxit-disabled",arrow:"selectboxit-default-arrow",button:"selectboxit-btn",list:"selectboxit-list",container:"selectboxit-container",open:"selectboxit-open"}}},isDeferred:function(t){return n.isPlainObject(t)&&t.promise&&t.done},_create:function(t){var r=this,f=r.options.populate,u=r.options.theme;if(r.element.is("select"))return r.widgetProto=n.Widget.prototype,r.originalElem=r.element[0],r.selectBox=r.element,r.options.populate&&r.add&&!t&&r.add(f),r.selectItems=r.element.find("option"),r.firstSelectItem=r.selectItems.slice(0,1),r.documentHeight=n(i).height(),r.theme=n.isPlainObject(u)?n.extend({},r.getThemes()["default"],u):r.getThemes()[u]?r.getThemes()[u]:r.getThemes()["default"],r.currentFocus=0,r.blur=!0,r.textArray=[],r.currentIndex=0,r.currentText="",r.flipped=!1,t||(r.selectBoxStyles=r.selectBox.attr("style")),r._createDropdownButton()._createUnorderedList()._copyAttributes()._replaceSelectBox()._addClasses(r.theme)._eventHandlers(),r.originalElem.disabled&&r.disable&&r.disable(),r._ariaAccessibility&&r._ariaAccessibility(),r.isMobile=r.options.isMobile(),r._mobile&&r._mobile(),r.options["native"]&&this._applyNativeSelect(),r.triggerEvent("create"),r},_createDropdownButton:function(){var t=this,i=t.originalElemId=t.originalElem.id||"",f=t.originalElemValue=t.originalElem.value||"",e=t.originalElemName=t.originalElem.name||"",r=t.options.copyClasses,u=t.selectBox.attr("class")||"";return t.dropdownText=n("<span/>",{id:i&&i+"SelectBoxItText","class":"selectboxit-text",unselectable:"on",text:t.firstSelectItem.text()}).attr("data-val",f),t.dropdownImageContainer=n("<span/>",{"class":"selectboxit-option-icon-container"}),t.dropdownImage=n("<i/>",{id:i&&i+"SelectBoxItDefaultIcon","class":"selectboxit-default-icon",unselectable:"on"}),t.dropdown=n("<span/>",{id:i&&i+"SelectBoxIt","class":"selectboxit "+("button"===r?u:"")+" "+(t.selectBox.prop("disabled")?t.theme.disabled:t.theme.enabled),name:e,tabindex:t.selectBox.attr("tabindex")||"0",unselectable:"on"}).append(t.dropdownImageContainer.append(t.dropdownImage)).append(t.dropdownText),t.dropdownContainer=n("<span/>",{id:i&&i+"SelectBoxItContainer","class":"selectboxit-container "+t.theme.container+" "+("container"===r?u:"")}).append(t.dropdown),t},_createUnorderedList:function(){var e,o,s,a,u,v,y,p,h,c,r,i,f,t=this,w="",b=t.originalElemId||"",k=n("<ul/>",{id:b&&b+"SelectBoxItOptions","class":"selectboxit-options",tabindex:-1}),l;return(t.options.showFirstOption||(t.selectItems.first().attr("disabled","disabled"),t.selectItems=t.selectBox.find("option").slice(1)),t.selectItems.each(function(l){i=n(this);o="";s="";e=i.prop("disabled");a=i.attr("data-icon")||"";u=i.attr("data-iconurl")||"";v=u?"selectboxit-option-icon-url":"";y=u?"style=\"background-image:url('"+u+"');\"":"";p=i.attr("data-selectedtext");h=i.attr("data-text");r=h?h:i.text();f=i.parent();f.is("optgroup")&&(o="selectboxit-optgroup-option",0===i.index()&&(s='<span class="selectboxit-optgroup-header '+f.first().attr("class")+'"data-disabled="true">'+f.first().attr("label")+"<\/span>"));i.attr("value",this.value);w+=s+'<li data-id="'+l+'" data-val="'+this.value+'" data-disabled="'+e+'" class="'+o+" selectboxit-option "+(n(this).attr("class")||"")+'"><a class="selectboxit-option-anchor"><span class="selectboxit-option-icon-container"><i class="selectboxit-option-icon '+a+" "+(v||t.theme.container)+'"'+y+"><\/i><\/span>"+(t.options.html?r:t.htmlEscape(r))+"<\/a><\/li>";c=i.attr("data-search");t.textArray[l]=e?"":c?c:r;this.selected&&(t._setText(t.dropdownText,p||r),t.currentFocus=l)}),t.options.defaultText||t.selectBox.attr("data-text"))&&(l=t.options.defaultText||t.selectBox.attr("data-text"),t._setText(t.dropdownText,l),t.options.defaultText=l),k.append(w),t.list=k,t.dropdownContainer.append(t.list),t.listItems=t.list.children("li"),t.listAnchors=t.list.find("a"),t.listItems.first().addClass("selectboxit-option-first"),t.listItems.last().addClass("selectboxit-option-last"),t.list.find("li[data-disabled='true']").not(".optgroupHeader").addClass(t.theme.disabled),t.dropdownImage.addClass(t.selectBox.attr("data-icon")||t.options.defaultIcon||t.listItems.eq(t.currentFocus).find("i").attr("class")),t.dropdownImage.attr("style",t.listItems.eq(t.currentFocus).find("i").attr("style")),t},_replaceSelectBox:function(){var s,u,f,t=this,i=t.originalElem.id||"",e=t.selectBox.attr("data-size"),o=t.listSize=e===r?"auto":"0"===e?"auto":+e;return t.selectBox.css("display","none").after(t.dropdownContainer),t.dropdownContainer.appendTo("body").addClass("selectboxit-rendering"),s=t.dropdown.height(),t.downArrow=n("<i/>",{id:i&&i+"SelectBoxItArrow","class":"selectboxit-arrow",unselectable:"on"}),t.downArrowContainer=n("<span/>",{id:i&&i+"SelectBoxItArrowContainer","class":"selectboxit-arrow-container",unselectable:"on"}).append(t.downArrow),t.dropdown.append(t.downArrowContainer),t.listItems.removeClass("selectboxit-selected").eq(t.currentFocus).addClass("selectboxit-selected"),u=t.downArrowContainer.outerWidth(!0),f=t.dropdownImage.outerWidth(!0),t.options.autoWidth&&(t.dropdown.css({width:"auto"}).css({width:t.list.outerWidth(!0)+u+f}),t.list.css({"min-width":t.dropdown.width()})),t.dropdownText.css({"max-width":t.dropdownContainer.outerWidth(!0)-(u+f)}),t.selectBox.after(t.dropdownContainer),t.dropdownContainer.removeClass("selectboxit-rendering"),"number"===n.type(o)&&(t.maxHeight=t.listAnchors.outerHeight(!0)*o),t},_scrollToView:function(n){var t=this,e=t.listItems.eq(t.currentFocus),f=t.list.scrollTop(),r=e.height(),i=e.position().top,o=Math.abs(i),u=t.list.height();return"search"===n?r>u-i?t.list.scrollTop(f+(i-(u-r))):-1>i&&t.list.scrollTop(i-r):"up"===n?-1>i&&t.list.scrollTop(f-o):"down"===n&&r>u-i&&t.list.scrollTop(f+(o-u+r)),t},_callbackSupport:function(t){var i=this;return n.isFunction(t)&&t.call(i,i.dropdown),i},_setText:function(n,t){var i=this;return i.options.html?n.html(t):n.text(t),i},open:function(n){var t=this,i=t.options.showEffect,r=t.options.showEffectSpeed,u=t.options.showEffectOptions,f=t.options["native"],e=t.isMobile;return!t.listItems.length||t.dropdown.hasClass(t.theme.disabled)?t:(f||e||this.list.is(":visible")||(t.triggerEvent("open"),t._dynamicPositioning&&t.options.dynamicPositioning&&t._dynamicPositioning(),"none"===i?t.list.show():"show"===i||"slideDown"===i||"fadeIn"===i?t.list[i](r):t.list.show(i,u,r),t.list.promise().done(function(){t._scrollToView("search");t.triggerEvent("opened")})),t._callbackSupport(n),t)},close:function(n){var t=this,i=t.options.hideEffect,r=t.options.hideEffectSpeed,u=t.options.hideEffectOptions,f=t.options["native"],e=t.isMobile;return f||e||!t.list.is(":visible")||(t.triggerEvent("close"),"none"===i?t.list.hide():"hide"===i||"slideUp"===i||"fadeOut"===i?t.list[i](r):t.list.hide(i,u,r),t.list.promise().done(function(){t.triggerEvent("closed")})),t._callbackSupport(n),t},toggle:function(){var n=this,t=n.list.is(":visible");t?n.close():t||n.open()},_keyMappings:{38:"up",40:"down",13:"enter",8:"backspace",9:"tab",32:"space",27:"esc"},_keydownMethods:function(){var n=this,t=n.list.is(":visible")||!n.options.keydownOpen;return{down:function(){n.moveDown&&t&&n.moveDown()},up:function(){n.moveUp&&t&&n.moveUp()},enter:function(){var t=n.listItems.eq(n.currentFocus);n._update(t);"true"!==t.attr("data-preventclose")&&n.close();n.triggerEvent("enter")},tab:function(){n.triggerEvent("tab-blur");n.close()},backspace:function(){n.triggerEvent("backspace")},esc:function(){n.close()}}},_eventHandlers:function(){var r,o,t=this,u=t.options.nativeMousedown,f=t.options.customShowHideEvent,i=t.focusClass,e=t.hoverClass,s=t.openClass;return this.dropdown.on({"click.selectBoxIt":function(){t.dropdown.trigger("focus",!0);t.originalElem.disabled||(t.triggerEvent("click"),u||f||t.toggle())},"mousedown.selectBoxIt":function(){n(this).data("mdown",!0);t.triggerEvent("mousedown");u&&!f&&t.toggle()},"mouseup.selectBoxIt":function(){t.triggerEvent("mouseup")},"blur.selectBoxIt":function(){t.blur&&(t.triggerEvent("blur"),t.close(),n(this).removeClass(i))},"focus.selectBoxIt":function(r,u){var f=n(this).data("mdown");n(this).removeData("mdown");f||u||setTimeout(function(){t.triggerEvent("tab-focus")},0);u||(n(this).hasClass(t.theme.disabled)||n(this).addClass(i),t.triggerEvent("focus"))},"keydown.selectBoxIt":function(n){var i=t._keyMappings[n.keyCode],r=t._keydownMethods()[i];r&&(r(),!t.options.keydownOpen||"up"!==i&&"down"!==i||t.open());r&&"tab"!==i&&n.preventDefault()},"keypress.selectBoxIt":function(n){var r=n.charCode||n.keyCode,i=t._keyMappings[n.charCode||n.keyCode],u=String.fromCharCode(r);t.search&&(!i||i&&"space"===i)&&t.search(u,!0,!0);"space"===i&&n.preventDefault()},"mouseenter.selectBoxIt":function(){t.triggerEvent("mouseenter")},"mouseleave.selectBoxIt":function(){t.triggerEvent("mouseleave")}}),t.list.on({"mouseover.selectBoxIt":function(){t.blur=!1},"mouseout.selectBoxIt":function(){t.blur=!0},"focusin.selectBoxIt":function(){t.dropdown.trigger("focus",!0)}}),t.list.on({"mousedown.selectBoxIt":function(){t._update(n(this));t.triggerEvent("option-click");"false"===n(this).attr("data-disabled")&&"true"!==n(this).attr("data-preventclose")&&t.close();setTimeout(function(){t.dropdown.trigger("focus",!0)},0)},"focusin.selectBoxIt":function(){t.listItems.not(n(this)).removeAttr("data-active");n(this).attr("data-active","");var r=t.list.is(":hidden");(t.options.searchWhenHidden&&r||t.options.aggressiveChange||r&&t.options.selectWhenHidden)&&t._update(n(this));n(this).addClass(i)},"mouseup.selectBoxIt":function(){u&&!f&&(t._update(n(this)),t.triggerEvent("option-mouseup"),"false"===n(this).attr("data-disabled")&&"true"!==n(this).attr("data-preventclose")&&t.close())},"mouseenter.selectBoxIt":function(){"false"===n(this).attr("data-disabled")&&(t.listItems.removeAttr("data-active"),n(this).addClass(i).attr("data-active",""),t.listItems.not(n(this)).removeClass(i),n(this).addClass(i),t.currentFocus=+n(this).attr("data-id"))},"mouseleave.selectBoxIt":function(){"false"===n(this).attr("data-disabled")&&(t.listItems.not(n(this)).removeClass(i).removeAttr("data-active"),n(this).addClass(i),t.currentFocus=+n(this).attr("data-id"))},"blur.selectBoxIt":function(){n(this).removeClass(i)}},".selectboxit-option"),t.list.on({"click.selectBoxIt":function(n){n.preventDefault()}},"a"),t.selectBox.on({"change.selectBoxIt, internal-change.selectBoxIt":function(n,i){var u,f;i||(u=t.list.find('li[data-val="'+t.originalElem.value+'"]'),u.length&&(t.listItems.eq(t.currentFocus).removeClass(t.focusClass),t.currentFocus=+u.attr("data-id")));u=t.listItems.eq(t.currentFocus);f=u.attr("data-selectedtext");r=u.attr("data-text");o=r?r:u.find("a").text();t._setText(t.dropdownText,f||o);t.dropdownText.attr("data-val",t.originalElem.value);u.find("i").attr("class")&&(t.dropdownImage.attr("class",u.find("i").attr("class")).addClass("selectboxit-default-icon"),t.dropdownImage.attr("style",u.find("i").attr("style")));t.triggerEvent("changed")},"disable.selectBoxIt":function(){t.dropdown.addClass(t.theme.disabled)},"enable.selectBoxIt":function(){t.dropdown.removeClass(t.theme.disabled)},"open.selectBoxIt":function(){var n,r=t.list.find("li[data-val='"+t.dropdownText.attr("data-val")+"']");r.length||(r=t.listItems.not("[data-disabled=true]").first());t.currentFocus=+r.attr("data-id");n=t.listItems.eq(t.currentFocus);t.dropdown.addClass(s).removeClass(e).addClass(i);t.listItems.removeClass(t.selectedClass).removeAttr("data-active").not(n).removeClass(i);n.addClass(t.selectedClass).addClass(i);t.options.hideCurrent&&(t.listItems.show(),n.hide())},"close.selectBoxIt":function(){t.dropdown.removeClass(s)},"blur.selectBoxIt":function(){t.dropdown.removeClass(i)},"mouseenter.selectBoxIt":function(){n(this).hasClass(t.theme.disabled)||t.dropdown.addClass(e)},"mouseleave.selectBoxIt":function(){t.dropdown.removeClass(e)},destroy:function(n){n.preventDefault();n.stopPropagation()}}),t},_update:function(n){var f,i,e,t=this,r=t.options.defaultText||t.selectBox.attr("data-text"),u=t.listItems.eq(t.currentFocus);"false"===n.attr("data-disabled")&&(f=t.listItems.eq(t.currentFocus).attr("data-selectedtext"),i=u.attr("data-text"),e=i?i:u.text(),(r&&t.options.html?t.dropdownText.html()===r:t.dropdownText.text()===r)&&t.selectBox.val()===n.attr("data-val")?t.triggerEvent("change"):(t.selectBox.val(n.attr("data-val")),t.currentFocus=+n.attr("data-id"),t.originalElem.value!==t.dropdownText.attr("data-val")&&t.triggerEvent("change")))},_addClasses:function(n){var t=this,i=(t.focusClass=n.focus,t.hoverClass=n.hover,n.button),r=n.list,u=n.arrow,f=n.container;return t.openClass=n.open,t.selectedClass="selectboxit-selected",t.downArrow.addClass(t.selectBox.attr("data-downarrow")||t.options.downArrowIcon||u),t.dropdownContainer.addClass(f),t.dropdown.addClass(i),t.list.addClass(r),t},refresh:function(n,t){var i=this;return i._destroySelectBoxIt()._create(!0),t||i.triggerEvent("refresh"),i._callbackSupport(n),i},htmlEscape:function(n){return String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},triggerEvent:function(n){var t=this,i=t.options.showFirstOption?t.currentFocus:t.currentFocus-1>=0?t.currentFocus:0;return t.selectBox.trigger(n,{selectbox:t.selectBox,selectboxOption:t.selectItems.eq(i),dropdown:t.dropdown,dropdownOption:t.listItems.eq(t.currentFocus)}),t},_copyAttributes:function(){var n=this;return n._addSelectBoxAttributes&&n._addSelectBoxAttributes(),n},_realOuterWidth:function(n){if(n.is(":visible"))return n.outerWidth(!0);var i,t=n.clone();return t.css({visibility:"hidden",display:"block",position:"absolute"}).appendTo("body"),i=t.outerWidth(!0),t.remove(),i}});var u=n.selectBox.selectBoxIt.prototype;u.add=function(t,i){this._populate(t,function(t){var u,h,r=this,f=n.type(t),e=0,o=[],c=r._isJSON(t),s=c&&r._parseJSON(t);if(t&&("array"===f||c&&s.data&&"array"===n.type(s.data))||"object"===f&&t.data&&"array"===n.type(t.data)){for(r._isJSON(t)&&(t=s),t.data&&(t=t.data),h=t.length;h-1>=e;e+=1)u=t[e],n.isPlainObject(u)?o.push(n("<option/>",u)):"string"===n.type(u)&&o.push(n("<option/>",{text:u,value:u}));r.selectBox.append(o)}else t&&"string"===f&&!r._isJSON(t)?r.selectBox.append(t):t&&"object"===f?r.selectBox.append(n("<option/>",t)):t&&r._isJSON(t)&&n.isPlainObject(r._parseJSON(t))&&r.selectBox.append(n("<option/>",r._parseJSON(t)));return r.dropdown?r.refresh(function(){r._callbackSupport(i)},!0):r._callbackSupport(i),r})};u._parseJSON=function(t){return JSON&&JSON.parse&&JSON.parse(t)||n.parseJSON(t)};u._isJSON=function(n){var t,i=this;try{return t=i._parseJSON(n),!0}catch(r){return!1}};u._populate=function(t,i){var r=this;return t=n.isFunction(t)?t.call():t,r.isDeferred(t)?t.done(function(n){i.call(r,n)}):i.call(r,t),r};u._ariaAccessibility=function(){var t=this,i=n("label[for='"+t.originalElem.id+"']");return t.dropdownContainer.attr({role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":"false","aria-owns":t.list[0].id}),t.dropdownText.attr({"aria-live":"polite"}),t.dropdown.on({"disable.selectBoxIt":function(){t.dropdownContainer.attr("aria-disabled","true")},"enable.selectBoxIt":function(){t.dropdownContainer.attr("aria-disabled","false")}}),i.length&&t.dropdownContainer.attr("aria-labelledby",i[0].id),t.list.attr({role:"listbox","aria-hidden":"true"}),t.listItems.attr({role:"option"}),t.selectBox.on({"open.selectBoxIt":function(){t.list.attr("aria-hidden","false");t.dropdownContainer.attr("aria-expanded","true")},"close.selectBoxIt":function(){t.list.attr("aria-hidden","true");t.dropdownContainer.attr("aria-expanded","false")}}),t};u._addSelectBoxAttributes=function(){var t=this;return t._addAttributes(t.selectBox.prop("attributes"),t.dropdown),t.selectItems.each(function(i){t._addAttributes(n(this).prop("attributes"),t.listItems.eq(i))}),t};u._addAttributes=function(t,i){var r=this,u=r.options.copyAttributes;return t.length&&n.each(t,function(t,r){var f=r.name.toLowerCase(),e=r.value;"null"===e||-1===n.inArray(f,u)&&-1===f.indexOf("data")||i.attr(f,e)}),r};u.destroy=function(n){var t=this;return t._destroySelectBoxIt(),t.widgetProto.destroy.call(t),t._callbackSupport(n),t};u._destroySelectBoxIt=function(){var t=this;return t.dropdown.off(".selectBoxIt"),n.contains(t.dropdownContainer[0],t.originalElem)&&t.dropdownContainer.before(t.selectBox),t.dropdownContainer.remove(),t.selectBox.removeAttr("style").attr("style",t.selectBoxStyles),t.triggerEvent("destroy"),t};u.disable=function(n){var t=this;return t.options.disabled||(t.close(),t.selectBox.attr("disabled","disabled"),t.dropdown.removeAttr("tabindex").removeClass(t.theme.enabled).addClass(t.theme.disabled),t.setOption("disabled",!0),t.triggerEvent("disable")),t._callbackSupport(n),t};u.disableOption=function(t,i){var u,f,e,r=this,o=n.type(t);return"number"===o&&(r.close(),u=r.selectBox.find("option").eq(t),r.triggerEvent("disable-option"),u.attr("disabled","disabled"),r.listItems.eq(t).attr("data-disabled","true").addClass(r.theme.disabled),r.currentFocus===t&&(f=r.listItems.eq(r.currentFocus).nextAll("li").not("[data-disabled='true']").first().length,e=r.listItems.eq(r.currentFocus).prevAll("li").not("[data-disabled='true']").first().length,f?r.moveDown():e?r.moveUp():r.disable())),r._callbackSupport(i),r};u._isDisabled=function(){var n=this;return n.originalElem.disabled&&n.disable(),n};u._dynamicPositioning=function(){var t=this,e,o;if("number"===n.type(t.listSize))t.list.css("max-height",t.maxHeight||"none");else{var s=t.dropdown.offset().top,i=t.list.data("max-height")||t.list.outerHeight(),r=t.dropdown.outerHeight(),u=t.options.viewport,h=u.height(),f=n.isWindow(u.get(0))?u.scrollTop():u.offset().top,c=h+f>=s+r+i,l=!c;(t.list.data("max-height")||t.list.data("max-height",t.list.outerHeight()),l)?t.dropdown.offset().top-f>=i?(t.list.css("max-height",i),t.list.css("top",t.dropdown.position().top-t.list.outerHeight())):(e=Math.abs(s+r+i-(h+f)),o=Math.abs(t.dropdown.offset().top-f-i),o>e?(t.list.css("max-height",i-e-r/2),t.list.css("top","auto")):(t.list.css("max-height",i-o-r/2),t.list.css("top",t.dropdown.position().top-t.list.outerHeight()))):(t.list.css("max-height",i),t.list.css("top","auto"))}return t};u.enable=function(n){var t=this;return t.options.disabled&&(t.triggerEvent("enable"),t.selectBox.removeAttr("disabled"),t.dropdown.attr("tabindex",0).removeClass(t.theme.disabled).addClass(t.theme.enabled),t.setOption("disabled",!1),t._callbackSupport(n)),t};u.enableOption=function(t,i){var u,r=this,f=n.type(t);return"number"===f&&(u=r.selectBox.find("option").eq(t),r.triggerEvent("enable-option"),u.removeAttr("disabled"),r.listItems.eq(t).attr("data-disabled","false").removeClass(r.theme.disabled)),r._callbackSupport(i),r};u.moveDown=function(n){var t=this,i,r;if(t.currentFocus+=1,i="true"===t.listItems.eq(t.currentFocus).attr("data-disabled")?!0:!1,r=t.listItems.eq(t.currentFocus).nextAll("li").not("[data-disabled='true']").first().length,t.currentFocus===t.listItems.length)t.currentFocus-=1;else{if(i&&r)return t.listItems.eq(t.currentFocus-1).blur(),t.moveDown(),void 0;i&&!r?t.currentFocus-=1:(t.listItems.eq(t.currentFocus-1).blur().end().eq(t.currentFocus).focusin(),t._scrollToView("down"),t.triggerEvent("moveDown"))}return t._callbackSupport(n),t};u.moveUp=function(n){var t=this,i,r;if(t.currentFocus-=1,i="true"===t.listItems.eq(t.currentFocus).attr("data-disabled")?!0:!1,r=t.listItems.eq(t.currentFocus).prevAll("li").not("[data-disabled='true']").first().length,-1===t.currentFocus)t.currentFocus+=1;else{if(i&&r)return t.listItems.eq(t.currentFocus+1).blur(),t.moveUp(),void 0;i&&!r?t.currentFocus+=1:(t.listItems.eq(this.currentFocus+1).blur().end().eq(t.currentFocus).focusin(),t._scrollToView("up"),t.triggerEvent("moveUp"))}return t._callbackSupport(n),t};u._setCurrentSearchOption=function(n){var t=this;return(t.options.aggressiveChange||t.options.selectWhenHidden||t.listItems.eq(n).is(":visible"))&&t.listItems.eq(n).data("disabled")!==!0&&(t.listItems.eq(t.currentFocus).blur(),t.currentIndex=n,t.currentFocus=n,t.listItems.eq(t.currentFocus).focusin(),t._scrollToView("search"),t.triggerEvent("search")),t};u._searchAlgorithm=function(n,t){for(var f,e,i=this,h=!1,s=i.textArray,u=i.currentText,r=n,o=s.length;o>r;r+=1){for(e=s[r],f=0;o>f;f+=1)-1!==s[f].search(t)&&(h=!0,f=o);if(h||(i.currentText=i.currentText.charAt(i.currentText.length-1).replace(/[|()\[{.+*?$\\]/g,"\\$0"),u=i.currentText),t=new RegExp(u,"gi"),u.length<3){if(t=new RegExp(u.charAt(0),"gi"),-1!==e.charAt(0).search(t))return i._setCurrentSearchOption(r),(e.substring(0,u.length).toLowerCase()!==u.toLowerCase()||i.options.similarSearch)&&(i.currentIndex+=1),!1}else if(-1!==e.search(t))return i._setCurrentSearchOption(r),!1;if(e.toLowerCase()===i.currentText.toLowerCase())return i._setCurrentSearchOption(r),i.currentText="",!1}return!0};u.search=function(n,t,i){var r=this,u;return i?r.currentText+=n.replace(/[|()\[{.+*?$\\]/g,"\\$0"):r.currentText=n.replace(/[|()\[{.+*?$\\]/g,"\\$0"),u=r._searchAlgorithm(r.currentIndex,new RegExp(r.currentText,"gi")),u&&r._searchAlgorithm(0,r.currentText),r._callbackSupport(t),r};u._updateMobileText=function(){var t,i,r,n=this;t=n.selectBox.find("option").filter(":selected");i=t.attr("data-text");r=i?i:t.text();n._setText(n.dropdownText,r);n.list.find('li[data-val="'+t.val()+'"]').find("i").attr("class")&&n.dropdownImage.attr("class",n.list.find('li[data-val="'+t.val()+'"]').find("i").attr("class")).addClass("selectboxit-default-icon")};u._applyNativeSelect=function(){var n=this;return n.dropdownContainer.append(n.selectBox),n.dropdown.attr("tabindex","-1"),n.selectBox.css({display:"block",visibility:"visible",width:n._realOuterWidth(n.dropdown),height:n.dropdown.outerHeight(),opacity:"0",position:"absolute",top:"0",left:"0",cursor:"pointer","z-index":"999999",margin:n.dropdown.css("margin"),padding:"0","-webkit-appearance":"menulist-button"}),n.originalElem.disabled&&n.triggerEvent("disable"),this};u._mobileEvents=function(){var n=this;n.selectBox.on({"changed.selectBoxIt":function(){n.hasChanged=!0;n._updateMobileText();n.triggerEvent("option-click")},"mousedown.selectBoxIt":function(){n.hasChanged||!n.options.defaultText||n.originalElem.disabled||(n._updateMobileText(),n.triggerEvent("option-click"))},"enable.selectBoxIt":function(){n.selectBox.removeClass("selectboxit-rendering")},"disable.selectBoxIt":function(){n.selectBox.addClass("selectboxit-rendering")}})};u._mobile=function(){var n=this;return n.isMobile&&(n._applyNativeSelect(),n._mobileEvents()),this};u.remove=function(t,i){var u,o,r=this,s=n.type(t),f=0,e="";if("array"===s){for(o=t.length;o-1>=f;f+=1)u=t[f],"number"===n.type(u)&&(e+=e.length?", option:eq("+u+")":"option:eq("+u+")");r.selectBox.find(e).remove()}else"number"===s?r.selectBox.find("option").eq(t).remove():r.selectBox.find("option").remove();return r.dropdown?r.refresh(function(){r._callbackSupport(i)},!0):r._callbackSupport(i),r};u.selectOption=function(t,i){var r=this,u=n.type(t);return"number"===u?r.selectBox.val(r.selectItems.eq(t).val()).change():"string"===u&&r.selectBox.val(t).change(),r._callbackSupport(i),r};u.setOption=function(t,i,r){var u=this;return"string"===n.type(t)&&(u.options[t]=i),u.refresh(function(){u._callbackSupport(r)},!0),u};u.setOptions=function(t,i){var r=this;return n.isPlainObject(t)&&(r.options=n.extend({},r.options,t)),r.refresh(function(){r._callbackSupport(i)},!0),r};u.wait=function(n,t){var i=this;return i.widgetProto._delay.call(i,t,n),i}}),function(n,t){"use strict";function i(n){var t=Array.prototype.slice.call(arguments,1);return n.prop?n.prop.apply(n,t):n.attr.apply(n,t)}function r(n,t,i){var r,u;for(r in i)i.hasOwnProperty(r)&&(u=r.replace(/ |$/g,t.eventNamespace),n.bind(u,i[r]))}function u(n,t,i){r(n,i,{focus:function(){t.addClass(i.focusClass)},blur:function(){t.removeClass(i.focusClass);t.removeClass(i.activeClass)},mouseenter:function(){t.addClass(i.hoverClass)},mouseleave:function(){t.removeClass(i.hoverClass);t.removeClass(i.activeClass)},"mousedown touchbegin":function(){n.is(":disabled")||t.addClass(i.activeClass)},"mouseup touchend":function(){t.removeClass(i.activeClass)}})}function e(n,t){n.removeClass(t.hoverClass+" "+t.focusClass+" "+t.activeClass)}function y(n,t,i){i?n.addClass(t):n.removeClass(t)}function o(n,t,i){var r="checked",u=t.is(":"+r);t.prop?t.prop(r,u):u?t.attr(r,r):t.removeAttr(r);y(n,i.checkedClass,u)}function f(n,t,i){y(n,i.disabledClass,t.is(":disabled"))}function h(n,t,i){switch(i){case"after":return n.after(t),n.next();case"before":return n.before(t),n.prev();case"wrap":return n.wrap(t),n.parent()}return null}function s(t,r,u){var e,o,s;return u||(u={}),u=n.extend({bind:{},divClass:null,divWrap:"wrap",spanClass:null,spanHtml:null,spanWrap:"wrap"},u),e=n("<div />"),o=n("<span />"),r.autoHide&&t.is(":hidden")&&t.css("display")==="none"&&e.hide(),u.divClass&&e.addClass(u.divClass),r.wrapperClass&&e.addClass(r.wrapperClass),u.spanClass&&o.addClass(u.spanClass),s=i(t,"id"),r.useID&&s&&i(e,"id",r.idPrefix+"-"+s),u.spanHtml&&o.html(u.spanHtml),e=h(t,e,u.divWrap),o=h(t,o,u.spanWrap),f(e,t,r),{div:e,span:o}}function a(t,i){var r;return i.wrapperClass?(r=n("<span />").addClass(i.wrapperClass),h(t,r,"wrap")):null}function it(){var u,t,i,r;return r="rgb(120,2,153)",t=n('<div style="width:0;height:0;color:'+r+'">'),n("body").append(t),i=t.get(0),u=window.getComputedStyle?window.getComputedStyle(i,"").color:(i.currentStyle||i.style||{}).color,t.remove(),u.replace(/ /g,"")!==r}function rt(t){return t?n("<span />").text(t).html():""}function p(){return navigator.cpuClass&&!navigator.product}function ut(){return typeof window.XMLHttpRequest!="undefined"?!0:!1}function w(n){var t;return n[0].multiple?!0:(t=i(n,"size"),!t||t<=1)?!1:!0}function c(){return!1}function l(n,t){var i="none";r(n,t,{"selectstart dragstart mousedown":c});n.css({MozUserSelect:i,msUserSelect:i,webkitUserSelect:i,userSelect:i})}function b(n,t,i){var r=n.val();r===""?r=i.fileDefaultHtml:(r=r.split(/[\/\\]+/),r=r[r.length-1]);t.text(r)}function k(n,t,i){var r,u;for(r=[],n.each(function(){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r.push({el:this,name:n,old:this.style[n]}),this.style[n]=t[n])}),i();r.length;)u=r.pop(),u.el.style[u.name]=u.old}function d(n,t){var i;i=n.parents();i.push(n[0]);i=i.not(":visible");k(i,{visibility:"hidden",display:"block",position:"absolute"},t)}function g(n,t){return function(){n.unwrap().unwrap().unbind(t.eventNamespace)}}var v=!0,nt=!1,tt=[{match:function(n){return n.is("a, button, :submit, :reset, input[type='button']")},apply:function(n,t){var o,h,a,v,c;return h=t.submitDefaultHtml,n.is(":reset")&&(h=t.resetDefaultHtml),v=n.is("a, button")?function(){return n.html()||h}:function(){return rt(i(n,"value"))||h},a=s(n,t,{divClass:t.buttonClass,spanHtml:v()}),o=a.div,u(n,o,t),c=!1,r(o,t,{"click touchend":function(){var r,f,t,u;c||n.is(":disabled")||(c=!0,n[0].dispatchEvent?(r=document.createEvent("MouseEvents"),r.initEvent("click",!0,!0),f=n[0].dispatchEvent(r),n.is("a")&&f&&(t=i(n,"target"),u=i(n,"href"),t&&t!=="_self"?window.open(u,t):document.location.href=u)):n.click(),c=!1)}}),l(o,t),{remove:function(){return o.after(n),o.remove(),n.unbind(t.eventNamespace),n},update:function(){e(o,t);f(o,n,t);n.detach();a.span.html(v()).append(n)}}}},{match:function(n){return n.is(":checkbox")},apply:function(n,t){var c,h,i;return c=s(n,t,{divClass:t.checkboxClass}),h=c.div,i=c.span,u(n,h,t),r(n,t,{"click touchend":function(){o(i,n,t)}}),o(i,n,t),{remove:g(n,t),update:function(){e(h,t);i.removeClass(t.checkedClass);o(i,n,t);f(h,n,t)}}}},{match:function(n){return n.is(":file")},apply:function(t,o){function w(){b(t,c,o)}var v,a,c,y;return v=s(t,o,{divClass:o.fileClass,spanClass:o.fileButtonClass,spanHtml:o.fileButtonHtml,spanWrap:"after"}),a=v.div,y=v.span,c=n("<span />").html(o.fileDefaultHtml),c.addClass(o.filenameClass),c=h(t,c,"after"),i(t,"size")||i(t,"size",a.width()/10),u(t,a,o),w(),p()?r(t,o,{click:function(){t.trigger("change");setTimeout(w,0)}}):r(t,o,{change:w}),l(c,o),l(y,o),{remove:function(){return c.remove(),y.remove(),t.unwrap().unbind(o.eventNamespace)},update:function(){e(a,o);b(t,c,o);f(a,t,o)}}}},{match:function(n){if(n.is("input")){var t=(" "+i(n,"type")+" ").toLowerCase();return" color date datetime datetime-local email month number password search tel text time url week ".indexOf(t)>=0}return!1},apply:function(n,t){var r,f;return r=i(n,"type"),n.addClass(t.inputClass),f=a(n,t),u(n,n,t),t.inputAddTypeAsClass&&n.addClass(r),{remove:function(){n.removeClass(t.inputClass);t.inputAddTypeAsClass&&n.removeClass(r);f&&n.unwrap()},update:c}}},{match:function(n){return n.is(":radio")},apply:function(t,h){var l,c,a;return l=s(t,h,{divClass:h.radioClass}),c=l.div,a=l.span,u(t,c,h),r(t,h,{"click touchend":function(){n.uniform.update(n(':radio[name="'+i(t,"name")+'"]'))}}),o(a,t,h),{remove:g(t,h),update:function(){e(c,h);o(a,t,h);f(c,t,h)}}}},{match:function(n){return n.is("select")&&!w(n)?!0:!1},apply:function(t,i){var c,h,o,a;return i.selectAutoWidth&&d(t,function(){a=t.width()}),c=s(t,i,{divClass:i.selectClass,spanHtml:(t.find(":selected:first")||t.find("option:first")).html(),spanWrap:"before"}),h=c.div,o=c.span,i.selectAutoWidth?d(t,function(){k(n([o[0],h[0]]),{display:"block"},function(){var n;n=o.outerWidth()-o.width();h.width(a+n);o.width(a)})}):h.addClass("fixedWidth"),u(t,h,i),r(t,i,{change:function(){o.html(t.find(":selected").html());h.removeClass(i.activeClass)},"click touchend":function(){var n=t.find(":selected").html();o.html()!==n&&t.trigger("change")},keyup:function(){o.html(t.find(":selected").html())}}),l(o,i),{remove:function(){return o.remove(),t.unwrap().unbind(i.eventNamespace),t},update:function(){i.selectAutoWidth?(n.uniform.restore(t),t.uniform(i)):(e(h,i),o.html(t.find(":selected").html()),f(h,t,i))}}}},{match:function(n){return n.is("select")&&w(n)?!0:!1},apply:function(n,t){var i;return n.addClass(t.selectMultiClass),i=a(n,t),u(n,n,t),{remove:function(){n.removeClass(t.selectMultiClass);i&&n.unwrap()},update:c}}},{match:function(n){return n.is("textarea")},apply:function(n,t){var i;return n.addClass(t.textareaClass),i=a(n,t),u(n,n,t),{remove:function(){n.removeClass(t.textareaClass);i&&n.unwrap()},update:c}}}];p()&&!ut()&&(v=!1);n.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"Choose File",fileClass:"uploader",fileDefaultHtml:"No file selected",filenameClass:"filename",focusClass:"focus",hoverClass:"hover",idPrefix:"uniform",inputAddTypeAsClass:!0,inputClass:"uniform-input",radioClass:"radio",resetDefaultHtml:"Reset",resetSelector:!1,selectAutoWidth:!0,selectClass:"selector",selectMultiClass:"uniform-multiselect",submitDefaultHtml:"Submit",textareaClass:"uniform",useID:!0,wrapperClass:null},elements:[]};n.fn.uniform=function(t){var i=this;return(t=n.extend({},n.uniform.defaults,t),nt||(nt=!0,it()&&(v=!1)),!v)?this:(t.resetSelector&&n(t.resetSelector).mouseup(function(){window.setTimeout(function(){n.uniform.update(i)},10)}),this.each(function(){var i=n(this),r,u,f;if(i.data("uniformed")){n.uniform.update(i);return}for(r=0;r<tt.length;r=r+1)if(u=tt[r],u.match(i,t)){f=u.apply(i,t);i.data("uniformed",f);n.uniform.elements.push(i.get(0));return}}))};n.uniform.restore=n.fn.uniform.restore=function(i){i===t&&(i=n.uniform.elements);n(i).each(function(){var r=n(this),t,i;(i=r.data("uniformed"),i)&&(i.remove(),t=n.inArray(this,n.uniform.elements),t>=0&&n.uniform.elements.splice(t,1),r.removeData("uniformed"))})};n.uniform.update=n.fn.uniform.update=function(i){i===t&&(i=n.uniform.elements);n(i).each(function(){var i=n(this),t;(t=i.data("uniformed"),t)&&t.update(i,t.options)})}}(jQuery);ArticleList={classSearchList:"searchList",isSearchList:!1,onScroll:function(){"use strict";var i,r,u,n=null,t;i=jQuery(window);r=i.scrollTop();u=r+i.height();ArticleList.$root.find(".calendarSchedule").each(function(){var t=jQuery(this),i;i=t.offset();i.top<=u&&(n=t.attr("id"))});n!==null&&(ArticleList.$types.removeClass("on"),ArticleList.$types.find("a[href$="+n+"]").parents(".articleControlsTypes li").addClass("on"),t=ArticleList.$root.find(".articleControlsTypesSelect select"),t.val()!=="#"+n&&(t.val("#"+n),t.selectBoxIt("refresh")))},styleSelect:function(n){"use strict";n=jQuery(n);n.selectBoxIt({autoWidth:!1})},styleSelects:function(){"use strict";ArticleList.styleSelect(ArticleList.$filterAndSorts)},initMoreList:function(){"use strict";ArticleList.$root.find(".articleControls.calendar").length===0?ArticleList.$root.moreList({numResults:$("input[name=ps]").val(),end:".articleList .resultCountEnd",form:".articleListInner form.modifyResults",formTrigger:".filterAndSort select",moreTrigger:".articleList .moduleFooter a.more",onMore:function(n){jQuery(".flexibleAd",n).flexibleAds({});n.parents(".photoGrid").length>0&&n.find(".summary .image img, .moduleInstagram .moduleInstagramImage img").proportional({scaleType:"bleed"})},target:".articleList .moduleContent",total:".articleList .resultCountTotal"}):ArticleList.$root.find(".articleControls.calendar .filterAndSort select").change(function(){var n;n=jQuery(this);n.parents("form").trigger("submit")})},bindSticky:function(){"use strict";ArticleList.$root.stickyClass({offset:44,relativeTo:".articleList .articleControlsWrapper"})},buildSelectFromLinks:function(n,t){"use strict";var i,r=null;if(t===undefined&&(t=!1),n=jQuery(n),n.length===0)return!1;if(i=jQuery("<select><\/select>"),n.each(function(){var n,t;n=jQuery(this);t=jQuery('<option value="'+n.attr("href")+'">'+n.text()+"<\/option>");n.is(".active, .current, .on")&&(r=n.attr("href"));n.parent().is(".active, .current, .on")&&(r=n.attr("href"));i.append(t)}),r!==null&&i.val(r),t)i.on("change",function(){var n=i.val();window.setTimeout(function(){document.location=n},100)});return i},buildMobileSelect:function(n,t,i,r,u){"use strict";var f,e;(u===undefined&&(u=!1),f=jQuery('<div class="'+i+'"><\/div>'),e=ArticleList.buildSelectFromLinks(r,!0),e!==!1)&&(f.append(e),n!==undefined&&(n=jQuery(n),n.prepend(f)),t!==undefined&&(t=jQuery(t),t.append(f)),ArticleList.styleSelect(e))},buildMobileTypesSelect:function(){"use strict";ArticleList.buildMobileSelect(ArticleList.$root.find(".articleControlsInner"),undefined,"articleControlsTypesSelect",ArticleList.$types.find("a"),!0)},buildMobileSearchFilterSelect:function(){"use strict";ArticleList.buildMobileSelect(ArticleList.$root.find(".articleControlsInner"),undefined,"articleSearchFilterSelect",ArticleList.$root.find(".searchFilter a"),!0)},updateTitle:function(n){"use strict";var t;n!==undefined&&n!==null&&n!==""&&(n=n.replace(/\+/g," "),t=ArticleList.$root.find(".articleShowingValue"),t.text(n))},bindUpdateTitleOnFilterChange:function(){"use strict";ArticleList.$root.find(".filterAndSort .filter select").change(function(){var n=jQuery(this);ArticleList.updateTitle(n.val())})},init:function(){"use strict";ArticleList.$root=jQuery(".articleList");ArticleList.$form=ArticleList.$root.find("form");ArticleList.$types=ArticleList.$form.find(".articleControlsTypes li");ArticleList.$filterAndSorts=ArticleList.$form.find(".filterAndSort select, .searchFilter select");ArticleList.$root.is("."+ArticleList.classSearchList)&&(ArticleList.isSearchList=!0);ArticleList.buildMobileTypesSelect();ArticleList.buildMobileSearchFilterSelect();ArticleList.styleSelects();ArticleList.initMoreList();ArticleList.bindSticky();jQuery(window).on("scroll",function(){ArticleList.onScroll()});ArticleList.bindUpdateTitleOnFilterChange()}};ExpandableTable.prototype.bindExpandCollapse=function(){"use strict";var n=this;this.$root.find(".expandableTableRow").each(function(){var t=jQuery(this);t.find(".expandableTableExpander a").click(function(i){i.preventDefault();jQuery(this).is(".expand")?n.expand(t):n.collapse(t)})})};ExpandableTable.prototype.expand=function(n){"use strict";n.removeClass("expandableTableRowClosed").addClass("expandableTableRowOpen")};ExpandableTable.prototype.collapse=function(n){"use strict";n.removeClass("expandableTableRowOpen").addClass("expandableTableRowClosed")};FormModule.prototype.initSelectboxIt=function(){"use strict";this.$root.find("select").selectBoxIt({autoWidth:!1})};FormModule.prototype.initUniform=function(){"use strict";this.$root.find("input[type=checkbox], input[type=radio]").uniform()};FormModule.prototype.validateField=function(n,t){"use strict";var u=!0,i,r,e,f;return t===undefined&&(t=!1),n=jQuery(n),i=n.find("input, select, textarea"),r="text",i.is("select")?r="select":i.is("[type=checkbox]")?r="checkbox":i.is("[type=radio]")&&(r="radio"),i.is("[data-required]")&&(r==="text"||r==="select"?(i.val()===undefined||i.val()===null||i.val()==="")&&(u=!1):r==="checkbox"?i.is(":checked")||(u=!1):r==="radio"&&(e=i.attr("name"),jQuery("[name="+e+"]:checked").length===0&&(u=!1))),i.is("[data-pattern]")&&(f=i.attr("data-pattern"),f=new RegExp(f,"g"),f.test(i.val())||(u=!1)),u?n.removeClass(this.classError).addClass(this.classNoError):t||n.removeClass(this.classNoError).addClass(this.classError),u};FormModule.prototype.validateAllFields=function(){"use strict";var t=this,n=!0;return this.$root.find(".formField").each(function(){t.validateField(this)||(n=!1)}),n};FormModule.prototype.bindFieldChanges=function(){"use strict";var n=this;this.$root.find(".formField").each(function(){var t=jQuery(this);t.find("input, select, textarea").on("blur",function(){n.validateField(t)}).on("change",function(){n.validateField(t)}).on("keyup",function(){n.validateField(t)})})};FormModule.prototype.bindForm=function(){"use strict";var n=this;this.$root.on("submit",function(t){var r,i;t.preventDefault();t.stopPropagation();r=n.validateAllFields();r&&(i=n.$root.attr("method"),typeof i!="string"&&(i="GET"),i=i.toString().toUpperCase(),i!=="POST"&&(i="GET"),jQuery.ajax({url:n.$root.attr("action"),data:n.$root.serializeArray(),dataType:"json",type:i,success:function(t){!t.body||!t.body.update||!t.body.update.html||n.$root.html(t.body.update.html);!t.head||!t.head.location||(window.location=t.head.location);!t.head||!t.head.message||n.$root.prepend('<p class="error">'+t.head.message+"<\/p>")}}))})};Gallery.prototype.updateCounts=function(){"use strict";var n=this;this.$photos.each(function(t){var i=jQuery(this);i.find(n.settings.selectorPhotoCurrent).text(t+1);i.find(n.settings.selectorPhotoTotal).text(n.$photos.length)});this.$photos.length<2?(this.$root.find(n.settings.selectorPhotoCurrent).parent().hide(),this.$root.find(this.settings.selectorControlPrevious).hide(),this.$root.find(this.settings.selectorControlNext).hide()):(this.$root.find(n.settings.selectorPhotoCurrent).parent().show(),this.$root.find(this.settings.selectorControlPrevious).show(),this.$root.find(this.settings.selectorControlNext).show())};Gallery.prototype.show=function(n){"use strict";var t=this,i,o=$(".flexibleAd"),s=window.location.pathname,r=this.$root.find(this.settings.selectorNextGallery),f=this.$root.find(this.settings.selectorRestartGallery),e=this.$root.find(this.settings.selectorEndcaps),u;for(n===undefined&&(n=this.current),i=this.$photos.length;i>0&&n<0;)n+=i;if(n=n%i,this.current=n,this.$photos.removeClass(this.settings.classCurrent).find(this.settings.selectorPhotoImage).proportional("remove"),this.$photos.eq(n).addClass(this.settings.classCurrent).find(this.settings.selectorPhotoImage).proportional({scaleType:"letterbox"}),n!==0&&o.flexibleAds("redraw",undefined,!0),n===i-1){u=r.attr("data-url");t=this;f.on("click",function(){t.show(0)});if(this.$root.find(".current").find(this.settings.selectorControlPrevious).click(function(){t.show(0)}),this.$root.hasClass("hasNext")&&r.show(),f.show(),window.setTimeout(function(){e.fadeIn();t.$root.find(".photoDetail").last().find(t.settings.selectorControls).fadeIn()},2e3),u!==""){r.on("click",function(){window.location.href=u});this.$root.find(".current").find(this.settings.selectorControlNext).unbind("click").click(function(n){n.preventDefault();window.location.href=u})}}else $.when(e.fadeOut()).then(function(){r.hide();f.hide()})};Gallery.prototype.truncateText=function(n,t){"use strict";var i=n.text();i.length>t&&n.text(i.substring(0,t)+"…")};Gallery.prototype.increment=function(n){"use strict";n===undefined&&(n=0);this.show(this.current+n)};Gallery.prototype.next=function(){"use strict";this.increment(1)};Gallery.prototype.previous=function(){"use strict";this.increment(-1)};Gallery.prototype.bindPagination=function(){"use strict";var n=this;this.$root.find(this.settings.selectorControlPrevious).click(function(t){t.preventDefault();n.previous()});this.$root.find(this.settings.selectorControlNext).click(function(t){t.preventDefault();n.next()})};Gallery.prototype.appendPaginationToEachPhoto=function(){"use strict";var n,t;n=this.$root.find(this.settings.selectorControls);t=this.$root.find(this.settings.selectorPhotoImageWrapper);t.append(n.clone())};Gallery.prototype.appendEndcapsToLastPhoto=function(){"use strict";var n,t;n=this.$root.find(this.settings.selectorEndcaps);t=this.$root.find(this.settings.selectorPhotoImageWrapper).last();t.append(n)};SubMenu.prototype.makeSticky=function(){"use strict";this.$root.stickyClass({offset:100,relativeTo:this.$root})};SubMenu.prototype.bindFilterSelects=function(){"use strict";jQuery(".filterOptions select").each(function(){var n=jQuery(this);n.on("change",function(){var n,t;n=jQuery(this);t=n.val();document.location=t});n.selectBoxIt({autoWidth:!1})})};SubMenu.prototype.buildDropMenu=function(){"use strict";var n;if(this.$root.find(".sections a").length!==0){n=jQuery("<select />");this.$root.find(".sections a").each(function(){var i,t;i=jQuery(this);t=jQuery("<option />");t.text(i.text());t.attr("value",i.attr("href"));i.is(".active")&&t.attr("selected","selected");n.append(t)});n.on("change",function(){setTimeout(function(){document.location=n.val()},100)});this.$root.find(".subMenuInner2").append('<div class="subMenuSelect" />');this.$root.find(".subMenuSelect").append(n);n.selectBoxIt({autoWidth:!1})}};SubMenu.prototype.isOnScreen=function(n){"use strict";var u,t,f,i,r,e;return(n=jQuery(n),n.length===0)?!1:(u=n.offset(),t=u.top,f=t+n.height(),i=jQuery(window),r=i.scrollTop(),e=r+i.height(),t<=e&&f>=r)?!0:!1};SubMenu.prototype.setActiveAnchor=function(){"use strict";var t=this,n=null;this.$root.find(".sections a").each(function(){var r,i;if(r=jQuery(this),i=r.attr("href"),i===""||i===undefined)return!1;i.substr(0,1)==="#"&&t.isOnScreen(i)&&(n=i)});n===null};SubMenu.prototype.bindScrollIfAnchorMenu=function(){"use strict";var t=this,n;if(this.$root.is(".anchorMenu")){jQuery(window).on("scroll",function(){window.clearTimeout(n);n=window.setTimeout(function(){t.setActiveAnchor()},100)});this.setActiveAnchor()}};VideoModals={$modal:null,$close:null,$videoWrapper:null,$video:null,player:null,selectorLink:".useVideoModal, .homeFeatureContent .linkTypeVideo",videoId:"videoModalVideo",getPreRollXMLURL:function(){"use strict";var n="http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/2117/usab.dfp&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]";return n=n.replace("[referrer_url]",encodeURIComponent(document.location.toString())),n=n.replace("[description_url]",encodeURIComponent(document.location.toString())),n.replace("[timestamp]",(new Date).getTime())},createModal:function(){"use strict";VideoModals.$modal=jQuery('<div id="videoModal" class="closed"><\/div>');VideoModals.$close=jQuery('<a href="#" id="videoModalClose" title="Close">Close<\/a>');VideoModals.$videoWrapper=jQuery('<div id="videoModalVideoWrapper"><\/div>');VideoModals.$video=jQuery('<div id="'+VideoModals.videoId+'"><\/div>');VideoModals.$videoWrapper.append(VideoModals.$video);VideoModals.$modal.append(VideoModals.$close).append(VideoModals.$videoWrapper);VideoModals.$close.click(function(n){n.preventDefault();VideoModals.close()});jQuery("body").append(VideoModals.$modal)},close:function(){"use strict";try{jwplayer(VideoModals.videoId).remove()}catch(n){console.log(n)}VideoModals.$modal.removeClass("open").addClass("closed")},open:function(n,t,i,r){"use strict";var u;r===undefined&&(r=n);Analytics.jwplayerSetTitle(r);u={autostart:!0,events:{onComplete:Analytics.jwplayerOnComplete,onTime:Analytics.jwplayerOnTime},file:n,height:"100%",primary:"flash",skin:"/includes/jsbin/jwplayer/skin.xml",width:"100%"};t!==undefined&&(u=jQuery.extend(u,t));i!==undefined&&(u.image=i);VideoModals.$modal.removeClass("closed").addClass("open");VideoModals.player=jwplayer(VideoModals.videoId).setup(u)},bind:function(n){"use strict";n===undefined&&(n=jQuery("body"));jQuery(VideoModals.selectorLink,n).click(function(n){var t,i,r;n.preventDefault();t=jQuery(this);i=t.attr("href");r=i;t.is(".homeFeature a")&&(r=Analytics.getText(".homeFeatureContent h2"));VideoModals.open(i,undefined,undefined,r)})},init:function(){"use strict";VideoModals.createModal();VideoModals.bind()}};USAB={getCookie:function(n){"use strict";var r,u,t,i;for(r=n+"=",u=document.cookie.split(";"),t=0;t<u.length;t+=1)if(i=u[t].trim(),i.indexOf(r)!==-1)return i.substring(r.length,i.length);return""},setCookie:function(n,t,i,r){"use strict";var u,f="";i!==undefined&&(u=new Date,u.setTime(u.getTime()+i*864e5),f="expires="+u.toGMTString()+"; ");r===undefined&&(r="/");document.cookie=n+"="+t+"; "+f+"path="+r},alertArchiveLinks:function(){"use strict";var n="archive.usab",t="You are being redirected from the new USAB.com to USAB Archives. As we continue to work USAB.com into championship form, be sure to check back for updates!";jQuery("a[href]").each(function(){var i,r;if(i=jQuery(this),r=this.hostname,r.toString()!==document.location.hostname.toString()&&i.addClass("externalLink"),r.toString().indexOf(n)!==-1){i.addClass("archiveSite");i.on("click",function(){USAB.getCookie("archiveAlert")!=="SHOWN"&&(USAB.setCookie("archiveAlert","SHOWN"),window.alert(t))})}})},findFirstLastLayoutWrappers:function(){"use strict";var n=jQuery(".layoutWrapper");n.length>0&&(jQuery(n.get(0)).addClass("layoutWrapperFirst"),jQuery(n.get(n.length-1)).addClass("layoutWrapperLast"))},initFormModules:function(){"use strict";jQuery(".moduleForm").each(function(){var n,t;n=jQuery(this).find("form");t=new FormModule(n)})},submitMediaLoginAjax:function(n,t){"use strict";var r,u,i=jQuery("#mediaLogin");n===undefined&&(n={});t!==!1&&(t=!0);r=i.attr("method");u=i.attr("action");$.ajax({url:u+"?d="+Number(new Date),type:r,data:n,dataType:"json",success:function(n){console&&console.log&&console.log(n);n.processed?document.location=n.returnurl:t&&(i.find(".validation-summary-errors ul li").html(n.message),i.find(".validation-summary-errors").show())},error:function(){alert("Unable to Connect to Server")}})},mediaLoginAjax:function(){"use strict";var n=jQuery("#mediaLogin");n.on("submit",function(t){var i;t.preventDefault();i=n.serialize();USAB.submitMediaLoginAjax(i,!0)});n.length>0&&USAB.submitMediaLoginAjax(undefined,!1)},initPlaceholder:function(){var t=document.createElement("input"),n;t.placeholder===undefined&&(n=jQuery("[placeholder]"),n.each(function(){var n=jQuery(this),t=n.attr("placeholder"),i=USAB.testPasswdField(n);i&&n.attr("type","text").attr("data-passwd",i);n.attr("data-placeholder",t);n.val(t);n.on("focus",function(){var n=jQuery(this),t=n.attr("data-placeholder");n.val()===t&&(n.attr("data-passwd")==="true"&&n.attr("type","password"),n.val(""))}).on("blur",function(){var n=jQuery(this),t=n.attr("data-placeholder");n.val()===""&&(n.attr("data-passwd")==="true"&&n.attr("type","text"),n.val(t))})}))},testPasswdField:function(n){return n.attr("type")==="password"},initModuleBackgrounds:function(){"use strict";jQuery(".homeModuleImage img, .moduleInstagramImage img, .moduleProfileImage img, .homeModulePlayerRotatorPaneImage img, .moduleImageTextLinks .moduleImage img, .moduleSimpleTout .moduleImage img, .moduleFeaturedPlayer .moduleImage img, .layoutA .moduleFeatured .image img, .photoGrid .summary .image img, .moduleRelated--lg_img .summary .image img").proportional({scaleType:"bleed"})},initGalleries:function(){"use strict";jQuery(".galleryDetail").each(function(){return new Gallery(this,{})})},initModalAd:function(){var n=jQuery(".ad-modal"),t=jQuery(".ad-modal__close",n),i=jQuery("a",n);n.on("click",function(n){n.target.classList.contains("ad-modal")&&t.trigger("click")});i.on("click",function(){t.trigger("click")});t.on("click",function(){localStorage.setItem("usabHomepageAd",!0);n.removeClass("ad-modal--open")});localStorage.getItem("usabHomepageAd")||(n.addClass("ad-modal--open"),window.setTimeout(function(){t.trigger("click")},1e4))},initPolls:function(){"use strict";jQuery(".modulePoll").each(function(){var n=new Poll(this)})},initVideoDetail:function(){"use strict";if(jwplayer===undefined){console.log("initVideoDetail: jwplayer library required.");return}jQuery(".videoWrapper .videoPlayer[data-file]").each(function(){var n,t,i,r,u=Date.now(),f=encodeURIComponent(location),e=encodeURIComponent(location);n=jQuery(this);n.attr("id")===undefined&&n.attr("id","video"+(new Date).getTime()+Math.floor(Math.random()*1e6));t=n.attr("id");i=n.attr("data-file");r=n.attr("data-image");jwplayer(t).setup({playlist:i,related:{},height:"100%",image:r,skin:{name:"six"},width:"100%",advertising:{client:"googima",schedule:{myAds:{offset:"pre",tag:"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/2117/usab_video.dfp&ciu_szs=300x60&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url="+e+"&description_url="+f+"&correlator="+u}}}})})},initArticleDetailVideo:function(){var n=jQuery(".video[data-video-url]");n.each(function(){var n=jQuery(this),r=n.attr("data-video-url"),u=n.attr("data-img-url"),f=USAB.createUniqueId(),t="player"+f,i;n.append('<div class="videoInner"><div><\/div><\/div>');i=jQuery(".videoInner > div",n);i.attr("id",t);jwplayer(t).setup({file:r,height:"100%",image:u,primary:"flash",skin:"/includes/jsbin/jwplayer/skin.xml",width:"100%"})})},createUniqueId:function(){return(new Date).getTime()+Math.floor(Math.random()*1e6)},setElementEvenOdd:function(n,t,i){"use strict";jQuery(n).each(function(n){var r=jQuery(this);r.is("."+t)||r.is("."+i)||(n%2==0?r.addClass(t):r.addClass(i))})},setFigureEvenOdd:function(){"use strict";USAB.setElementEvenOdd("figure","figureEven","figureOdd")},setImageTextLinksEvenOdd:function(){"use strict";USAB.setElementEvenOdd(".moduleImageTextLinks","moduleImageTextLinksEven","moduleImageTextLinksOdd")},useFirstLink:function(n){"use strict";n=jQuery(n);n.each(function(){var t,n;t=jQuery(this);n=t.find("a[href]");n.length>0&&(n=jQuery(n.get(0)),t.click(function(t){var i,r;(i=jQuery(t.target),r=i.parents("a"),i.is("a")||r.length>0)||(t.preventDefault(),n[0].click())}))})},zebraStripe:function(){"use strict";jQuery(".summaries .calendar:nth-child(even)").addClass("zebraStripe")},initRespTables:function(){var n=jQuery(".resp-table");n.length&&n.each(function(){var t=jQuery(this),i=jQuery("thead th",t),r=jQuery("tbody tr",t),n=[];i.each(function(){n.push(jQuery(this).text())});r.each(function(){for(var f=jQuery(this),i=jQuery("td",f),t=0,r,u,t=0;t<n.length;t++)r=document.createElement("div"),r.className+="resp-label",r.textContent=n[t],u=document.createElement("div"),u.className+="resp-value",u.textContent=i[t].textContent,i[t].textContent="",i[t].appendChild(r),i[t].appendChild(u)})})},initSchedule:function(){if(jQuery("select").selectBoxIt(),jQuery("#filterYears").length)jQuery("#filterYears").on("change",function(){var n=jQuery(this);n.val()&&(document.location=n.val())})},getFriendlyDate:function(n){var i=n.replace("/Date(","").replace(")/","").split("-")[0],t=new Date(Number(i));return{day:t.getDate(),month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],fullMonth:["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],year:t.getFullYear()}},updateTournaments:function(n){var u=jQuery(".filter-module__total-results"),f=n.results.currentTournamentItems,i=n.results.pastTournamentItems,t=jQuery("#tournaments"),e=jQuery(".filter-module__category"),r;if(u.text(n.totalCount),t.empty(),Number(n.totalCount)===0)return t.append('<h5 class="tournament-results__heading tournament-results__heading--alert">'+n.message+"<\/h5>"),!1;jQuery.each(f,function(n,i){var f=USAB.getFriendlyDate(i.startDate),u=f.fullMonth;r!==u&&t.append('<h5 class="tournament-results__heading">'+u+" "+f.year+"<\/h5>");USAB.renderTournament(i,"current");r=u});i.length>0&&t.append('<h5 class="tournament-results__heading">Past Tournaments<\/h5>');jQuery.each(i,function(n,t){USAB.renderTournament(t,"past")});USAB.filterHasChanged=!1},renderFunFact:function(n){var t,i=n.blurb,r=n.img,u=n.title,f=jQuery("#tournaments");t='<div class="event-card event-card--fun-fact"><div class="event-card__graphic"><img class="event-card__graphic__img" src="'+r+')" alt=""><\/div><div class="event-card__content"><h6 class="event-card__heading">'+u+':<\/h6> <div class="event-card__location-date">'+i+"<\/div ><\/div><\/div>";f.append(t)},renderTournament:function(n,t){var i,f=n.blurb,e=n.categoryTags.join(" | ").replace("_"," "),o=n.img||"https://scontent.cdninstagram.com/vp/89bab88baf6b2920e942b4193ee97826/5E159B39/t51.2885-15/sh0.08/e35/s640x640/66846175_951521381892153_9171576433448971403_n.jpg?_nc_ht=scontent.cdninstagram.com",s=n.title,r=USAB.getFriendlyDate(n.startDate),u=USAB.getFriendlyDate(n.endDate),h="event-card--"+t,c=jQuery(n.cta),l=jQuery("#tournaments");i='<div class="event-card '+h+'"><div class="event-card__graphic" title="Past Tournaments"><div class="event-card__graphic__img" style="background-image: url('+o+')"><\/div><\/div><div class="event-card__content"><h6 class="event-card__heading">'+s+'<\/h6><div class="event-card__location-date">'+f+" / "+r.month+" "+r.day+" - "+u.month+" "+u.day+'<\/div ><div class="event-card__tags">'+e.replace("_"," ")+'<\/div><\/div><div class="event-card__cta" > <a href="'+c.attr("href")+'" target="_blank" class="cta">Register Here<\/a><\/div ><\/div>';l.append(i)},getTournaments:function(){var n=jQuery(".filter-module__form"),t=n.serialize(),i=n.attr("action");$.ajax({url:i,type:"post",data:t,dataType:"json",success:function(n){USAB.updateTournaments(n)},error:function(){console.log("Unable to Connect to Server")}})},filterHasChanged:!1,initFilterCheckboxCount:function(){jQuery(".filter-module__categories input[type=checkbox]").on("change input",function(){var n=jQuery(this).closest(".filter-module__category"),r=n.find("input[type=checkbox]"),t=n.find(".filter-module__category-count"),i=r.filter(":checked").length;t.text("("+i+")");i<1&&t.empty();USAB.filterHasChanged=!0})},closeFilterDropdown:function(n){var t="open",i="last",r=jQuery(".filter-module__category");n&&n.length?n.removeClass(t+" "+i):r.removeClass(t+" "+i);USAB.filterHasChanged&&USAB.getTournaments()},initFilterDropdown:function(){var t="open",i="last",n=jQuery(".filter-module__category"),r="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;r||$("html").addClass("non-touch");jQuery(".filter-module__category-heading").on("click",function(){var r=jQuery(this).closest(".filter-module__category");r.hasClass(t)?USAB.closeFilterDropdown(r):(n.filter(".open").length&&USAB.closeFilterDropdown(),r.offset().left>r.next().offset().left&&r.find(".filter-module__category-group--background").length&&r.addClass(i),r.addClass(t))});jQuery(document).on("click",function(t){jQuery(t.target).hasClass("filter-module__category-heading")||n.is(t.target)||n.has(t.target).length!==0||USAB.closeFilterDropdown()})},initFilterButtons:function(){jQuery(".filter-module__form").on("submit",function(n){n.preventDefault()});jQuery(".filter-module__apply-btn").on("click",function(){USAB.getTournaments();jQuery(".filter-module__form").removeClass("mobile-open");USAB.closeFilterDropdown()});jQuery(".filter-module__clear-btn").on("click",function(n){var r=jQuery(this).closest(".filter-module__form"),t=jQuery(this).closest(".filter-module__category-group"),i;n.preventDefault();i=t.length?t.find('input[type="checkbox"]'):r.find('input[type="checkbox"]');i.prop("checked",!1).trigger("input");USAB.getTournaments();jQuery(".filter-module__form").removeClass("mobile-open");USAB.closeFilterDropdown()});jQuery(".filter-module__category--more").on("click",function(){jQuery(".filter-module__categories").addClass("show-all")});jQuery(".filter-module__header").on("click",function(n){var t=jQuery(this).closest(".filter-module__form");if(n.preventDefault(),window.innerWidth>767)return!1;t.hasClass("mobile-open")||t.addClass("mobile-open")});jQuery(".filter-module__mobile-close").on("click",function(n){var t=jQuery(this).closest(".filter-module__form");n.stopPropagation();n.preventDefault();window.innerWidth<768&&t.removeClass("mobile-open")});jQuery(document).on("click",".event-card:not(.event-card--past)",function(){var n=jQuery(this).find(".cta"),t=n.attr("href");window.open(t)})},readMoreClick:function(){if(jQuery("button.read-more").length){jQuery("button.read-more").on("click",function(){jQuery("body").addClass("flyout-active")});function n(){jQuery("body").removeClass("flyout-active")}jQuery("button.close").on("click",function(){n()})}},newCarousel:function(){jQuery(".olympic-team-roster--carousel").slick({arrows:!0,infinite:!1,slidesToScroll:1,slidesToShow:4,speed:300,responsive:[{breakpoint:960,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{dots:!0,dotsClass:"custom_paging",customPaging:function(n,t){return console.log(n),t+1+" of "+n.slideCount},slidesToShow:1,slidesToScroll:1}}]})},verticalContentCarousel:function(){if(jQuery(".vertical-content--carousel").slick({arrows:!1,dots:!0,mobileFirst:!0,slidesToScroll:1,slidesToShow:1,responsive:[{breakpoint:600,settings:"unslick"}]}),jQuery(".vertical-content--carousel").length)jQuery(window).on("resize",function(){jQuery(".vertical-content--carousel").slick("resize")})},bindStats:function(){USAB.initializeStatsCarousel();window.addEventListener("resize",USAB.debounce(function(){USAB.initializeStatsCarousel()},250));$(".js-statistics-view-more").on("click",function(){var n=$(this),t=n.closest(".statistics"),i=n.siblings(".statistics__table-wrap");t.toggleClass("open");i.slideToggle()})},initializeStatsCarousel:function(){$(window).width()>1023&&!$(".statistics__carousel").hasClass("slick-initialized")?$(".statistics__carousel").slick({appendArrows:".statistics__carousel__arrows",infinite:!1,slidesToShow:4,variableWidth:!0}):$(window).width()<1024&&$(".statistics__carousel").hasClass("slick-initialized")&&$(".statistics__carousel").slick("unslick")},bindRelatedTabs:function(){$(".js-featured-content-tab").on("click",function(){var n=$(this),t=n.closest(".featured-content-tabbed"),r=t.find(".js-featured-content-tab"),i=t.find(".featured-content-tabbed__content-item"),u=n.attr("rel");r.removeClass("active");i.removeClass("active");n.addClass("active");i.filter("[rel="+u+"]").addClass("active")})},debounce:function(n,t,i){let r;return function(){const u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}},promoInterstitial:function(){var n={},t;return n.close=function(){$("body").removeClass("modalOpen");window.clearTimeout(t)},n.create=function(){var r=$('<div id="interstitialModal"><\/div>'),f=$('<div class="close">X<\/div>'),u=$('<div class="imageWrapper"><\/div>'),e=$("#promoInterstitial").html(),i,o=$('<div id="modalOverlay"><\/div>');u.append(e);r.append(f).append(u);i=r.find("img");window.innerWidth>768?i.attr("src",i.data("desktop-src")):i.attr("src",i.data("mobile-src"));$(document).on("click","",n.close);$("body").addClass("modalOpen").append(o).append(r);t=window.setTimeout(n.close,1e4)},n.init=function(){$("#promoInterstitial").length&&USAB.getCookie("promoInterstitial")!=="SHOWN"&&(USAB.setCookie("promoInterstitial","SHOWN",3),n.create())},n}(),init:function(){"use strict";jQuery(".homeModulePlayerRotator").simplecarousel({classBullet:"homeModulePlayerRotatorPage",selectorBullets:".homeModulePlayerRotatorPages",selectorNext:".homeModulePlayerRotatorStepsNext",selectorPanes:".homeModulePlayerRotatorPane",selectorPrevious:".homeModulePlayerRotatorStepsPrev"});USAB.readMoreClick();USAB.newCarousel();USAB.verticalContentCarousel();USAB.bindStats();USAB.bindRelatedTabs();USAB.initFilterDropdown();USAB.initFilterButtons();USAB.initFilterCheckboxCount();USAB.promoInterstitial.init();USAB.alertArchiveLinks();USAB.useFirstLink(".homeModuleCommon");USAB.findFirstLastLayoutWrappers();USAB.initModuleBackgrounds();ArticleList.init();initSubMenus();USAB.initFormModules();USAB.initGalleries();USAB.initPolls();USAB.initPlaceholder();USAB.initArticleDetailVideo();USAB.setFigureEvenOdd();USAB.setImageTextLinksEvenOdd();USAB.mediaLoginAjax();jQuery(".expandableTable").each(function(){return new ExpandableTable(this)});jQuery(".schedSubMenu").length&&USAB.initSchedule();jQuery(".ad-modal").length&&USAB.initModalAd();googletag.cmd.push(function(){jQuery(".flexibleAd").flexibleAds({})});USAB.initRespTables();USAB.zebraStripe()}};jQuery(document).ready(function(){"use strict";USAB.init()})