function GlobalAlert(n){this.settings=$.extend({showAllAlerts:!1},n);this.init=function(n){var i=$(".reveal-modal[data-global-alert-id]"),r=[],t;if(i.length>0){for(t=0;t<i.length;t++)n.showAlert($(i[t]).attr("data-global-alert-id"))&&r.push(i[t]);n.openModal(r)}return n};this.openModal=function(n){$this=this;$(document).foundation({reveal:{animation:"fade",animation_speed:200,close_on_background_click:!1,css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}}});$.each(n,function(t,i){var u=$(i).find("button.global-alert-button"),f=$(i).find(".global-alert-dont-show-checkbox"),r=$(i).find("button.close-reveal-modal");u.on("click",function(){if(f.is(":checked")){var n=$(i).attr("data-global-alert-id");$this.hideForever(n)}r.trigger("click")});r.on("click",function(){$this.settings.showAllAlerts&&setTimeout(function(){var i=$(n[t+1]).attr("data-global-alert-id");i!==undefined&&$this.openNextAlert(n,t)},800)})});$this.openNextAlert(n);return};this.openNextAlert=function(n,t){var u,r,i;if(t===undefined){for(u=0;u<n.length;u++)if(i=$(n[u]).attr("data-global-alert-id"),$.cookie(i)===undefined){$(n[u]).foundation("reveal","open");break}}else for(t+=1,r=$(n[t]).attr("id"),i=$("#"+r).attr("data-global-alert-id");r&&i;)if($.cookie(i)===undefined){$("#"+r).foundation("reveal","open");break}else t+=1,r=$(n[t]).attr("id"),i=$("#"+r).attr("data-global-alert-id");return};this.hideForever=function(n){return $.cookie(n,"hide_alert_forever")};this.showAlert=function(n){return $.cookie(n)===undefined};this.init(this)}$(function(){var n=function(n){var t=$(n).next("ul.dropdown");t!==undefined&&($(n).attr("aria-expanded")=="false"?($(n).attr("aria-expanded","true"),t.show(),$(t).attr("aria-hidden","false"),$(n).parent("li.has-dropdown").addClass("hover")):($(n).attr("aria-expanded","false"),t.hide(),$(t).removeAttr("style"),$(t).attr("aria-hidden","true"),$(n).parent("li.has-dropdown").removeClass("hover")))},t=function(n){n=n.children("button").length==0?$(n).children("a"):$(n).children("button");$(n).focus()};$(".desktop-nav .top-bar-section").on("keydown","ul",function(i){var r=document.activeElement,u=$(r).parent(),y=$(r)[0].nodeName,p=$(r).closest("ul").hasClass("dropdown"),b=$(u).parent(),a=$(r).next("ul"),f,v,c,e,w,l,s,o,h;if(Foundation.libs.topbar.breakpoint()==!1)if(p)if(i.keyCode==13||i.keyCode==32){if(y=="BUTTON")return n($(r)),!1}else{if(i.keyCode==27)return f=$(u).closest("li.has-dropdown")[0],f.outerHTML===$(r).parent()[0].outerHTML&&(f=$(u).parents("li.has-dropdown")[0]),f=$(f).children("button")[0],v=$(f).next("ul"),$(f).attr("aria-expanded","false"),f.focus(),v.hide(),$(v).removeAttr("style"),$(v).attr("aria-hidden","true"),$(f).parent("li.has-dropdown").removeClass("hover"),!1;if(i.keyCode==9){if(i.shiftKey)return i.preventDefault(),e=$(r).attr("aria-expanded"),(e=="false"||e==undefined)&&$(u).is(":nth-of-type(2)")?(a=$(u).parent("ul.dropdown"),o=$(a).prev("button"),$(o).attr("aria-expanded","false"),a.hide(),a.removeAttr("style"),$(o).focus(),$(o).parent("li.has-dropdown").removeClass("hover")):(e=="true"&&n($(r)),c=$(u).prev(),t($(c))),!1;if(e=$(r).attr("aria-expanded"),w=$(u).is(":last-child"),(e=="false"||e==undefined)&&$(u).is(":last-child")){for(i.preventDefault(),l=$(u).parents("ul.dropdown"),s=0;s<l.length;s++)o=$(l[s]).prev("button"),$(o).attr("aria-expanded","false"),$(l[s]).hide(),$(l[s]).removeAttr("style"),$(o).parent("li.has-dropdown").removeClass("hover");h=$(u).parents("li").last().next();h=$(h).children("button").length==0?$(h).children("a"):$(h).children("button");h.focus()}}}else if(i.keyCode==13||i.keyCode==32){if(y=="BUTTON")return i.preventDefault(),n($(r)),!1}else i.keyCode==9&&i.shiftKey&&y=="BUTTON"&&($(r).attr("aria-expanded")=="true"&&n($(r)),c=$(u).prev(),$(c).length!=0&&(i.preventDefault(),t(c)))});$(".top-bar-section").on("mouseover",["> ul > li > a","> ul > li > button"],function(){return $(".top-bar-section ul.dropdown").not($(this).next("ul.dropdown")).each(function(){$(this).is(":visible")&&$(this).attr("style","")}),!1});$(document).click(function(n){var i,t;if($(n.target).parents(".top-bar").length==1)for(i=$("ul.dropdown"),t=0;t<i.length;t++)$(i[t]).attr("aria-hidden")=="false"&&($(i[t]).hide(),$(i[t]).removeAttr("style"),$(i[t]).attr("aria-hidden","true"),$(i[t]).prev("button").attr("aria-expanded","false"))})}),function(n,t,i){typeof module!="undefined"&&module.exports?module.exports=i():typeof define=="function"&&define.amd?define(i):t[n]=i()}("Fingerprint",this,function(){"use strict";var n=function(n){var t,i;t=Array.prototype.forEach;i=Array.prototype.map;this.each=function(n,i,r){var u,e,f;if(n!==null)if(t&&n.forEach===t)n.forEach(i,r);else if(n.length===+n.length){for(u=0,e=n.length;u<e;u++)if(i.call(r,n[u],u,n)==={})return}else for(f in n)if(n.hasOwnProperty(f)&&i.call(r,n[f],f,n)==={})return};this.map=function(n,t,r){var u=[];return n==null?u:i&&n.map===i?n.map(t,r):(this.each(n,function(n,i,f){u[u.length]=t.call(r,n,i,f)}),u)};typeof n=="object"?(this.hasher=n.hasher,this.screen_resolution=n.screen_resolution,this.canvas=n.canvas,this.ie_activex=n.ie_activex):typeof n=="function"&&(this.hasher=n)};return n.prototype={get:function(){var n=[],t;return n.push(navigator.userAgent),n.push(navigator.language),n.push(screen.colorDepth),this.screen_resolution&&(t=this.getScreenResolution(),typeof t!="undefined"&&n.push(this.getScreenResolution().join("x"))),n.push((new Date).getTimezoneOffset()),n.push(this.hasSessionStorage()),n.push(this.hasLocalStorage()),n.push(!!window.indexedDB),document.body?n.push(typeof document.body.addBehavior):n.push(typeof undefined),n.push(typeof openDatabase),n.push(navigator.cpuClass),n.push(navigator.platform),n.push(navigator.doNotTrack),n.push(this.getPluginsString()),this.canvas&&this.isCanvasSupported()&&n.push(this.getCanvasFingerprint()),this.hasher?this.hasher(n.join("###"),31):this.murmurhash3_32_gc(n.join("###"),31)},murmurhash3_32_gc:function(n,t){var o,h,r,s,f,e,i,u;for(o=n.length&3,h=n.length-o,r=t,f=3432918353,e=461845907,u=0;u<h;)i=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,++u,i=(i&65535)*f+(((i>>>16)*f&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(i&65535)*e+(((i>>>16)*e&65535)<<16)&4294967295,r^=i,r=r<<13|r>>>19,s=(r&65535)*5+(((r>>>16)*5&65535)<<16)&4294967295,r=(s&65535)+27492+(((s>>>16)+58964&65535)<<16);i=0;switch(o){case 3:i^=(n.charCodeAt(u+2)&255)<<16;case 2:i^=(n.charCodeAt(u+1)&255)<<8;case 1:i^=n.charCodeAt(u)&255;i=(i&65535)*f+(((i>>>16)*f&65535)<<16)&4294967295;i=i<<15|i>>>17;i=(i&65535)*e+(((i>>>16)*e&65535)<<16)&4294967295;r^=i}return r^=n.length,r^=r>>>16,r=(r&65535)*2246822507+(((r>>>16)*2246822507&65535)<<16)&4294967295,r^=r>>>13,r=(r&65535)*3266489909+(((r>>>16)*3266489909&65535)<<16)&4294967295,r^=r>>>16,r>>>0},hasLocalStorage:function(){try{return!!scope.localStorage}catch(n){return!0}},hasSessionStorage:function(){try{return!!scope.sessionStorage}catch(n){return!0}},isCanvasSupported:function(){var n=document.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))},isIE:function(){return navigator.appName==="Microsoft Internet Explorer"?!0:navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)?!0:!1},getPluginsString:function(){return this.isIE()?this.getIEPluginsString():this.getRegularPluginsString()},getRegularPluginsString:function(){return this.map(navigator.plugins,function(n){var t=this.map(n,function(n){return[n.type,n.suffixes].join("~")}).join(",");return[n.name,n.description,t].join("::")},this).join(";")},getIEPluginsString:function(){return this.ie_activex&&scope.ActiveXObject?this.map(["ShockwaveFlash.ShockwaveFlash","AcroPDF.PDF","PDF.PdfCtrl","QuickTime.QuickTime","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","RealPlayer","SWCtl.SWCtl","WMPlayer.OCX","AgControl.AgControl","Skype.Detection"],function(n){try{return new ActiveXObject(n),n}catch(t){return null}}).join(";"):""},getScreenResolution:function(){return[screen.height,screen.width]},getCanvasFingerprint:function(){var t=document.createElement("canvas"),n=t.getContext("2d"),i="http://valve.github.io";return n.textBaseline="top",n.font="14px 'Arial'",n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.fillText(i,2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.fillText(i,4,17),t.toDataURL()}},n});var resizeHeader=function(){$(".header-row").each(function(){var i=$(this),t=i.find(".top-bar img"),n=t.attr("src");n.indexOf("?")>1&&(n=n.substr(0,n.indexOf("?")));var f=n+"?"+(new Date).getTime(),t=t.attr("src",f),r=null,u=i.find("nav.mobile-nav");$(t).on("load",function(){r=u.find(">ul").height();u.height(r)})})}