function searchButtonOnClick(n,t,i,r){var u="",f,e;if(i!==""&&(u=document.getElementById(i).value),u===""||u===t)return alert("Please enter one or more search keywords"),!1;f="";r!==""&&(e=document.getElementById(r),f=e.options[e.options.selectedIndex].value);n="/search/Pages/default.aspx";n+="#k="+u;f!=""&&(n+="&s="+f);window.location.href=n}function ProcessImn(){}function ProcessImnMarkers(){}function setFormSubmitToFalse(){$(document).ready(function(){return setTimeout(function(){_spFormOnSubmitCalled=!1},3e3),!0})}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u=";expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+";domain=.nema.org;path=/"}function readCookie(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null}function deleteCookie(n){createCookie(n,"",-1)}function addRatingWidget(n,t,i,r,u){var e=document.getElementById(n),f=document.getElementById(t),o=function(n){$.ajax({type:"GET",url:u+"?rating="+n+"&username="+i+"&rawUrl="+encodeURI(window.location.href),dataType:"html",success:function(){f&&(f.innerHTML="Rating Saved!")},fail:function(){f&&(f.innerHTML='<span style="color:red;">Failed to Save!<\/span>')}})},s=rating(e,r,5,o)}function setExistingRating(n,t,i,r,u){$.ajax({type:"GET",url:r+"?&username="+i+"&rawUrl="+encodeURI(window.location.href),cache:!1,dataType:"html",success:function(r){addRatingWidget(n,t,i,r,u)},fail:function(){addRatingWidget(n,t,i,"0",u)},error:function(){addRatingWidget(n,t,i,"0",u)}})}function openCommentModalWindow(n,t,i){var r=$("#"+n),l,f,o,s,h,a,e,c,u;return r.length===0?(commentError("Failed to get modal window with id: "+n,r),!1):r.length>1?(commentError("More than one modal window with id: "+n,r),!1):(r=r.first(),r.css("display","block"),l=r.find(".modalWindowErrorMessage").first(),!l)?(commentError("Failed to get error message placeholder with id: .modalWindowErrorMessage",r),!1):(l.html(""),f=$(r).find(".modalWindowCommentTextBox"),f.length!==1)?(commentError("Failed to get comment text box. Found "+f.length+" buttons that match class: modalWindowCommentTextBox",r),!1):(f=f.first(),f.focus(),o=$(r).find(".modalWindowCommentPrivacyConsent"),o.length!==1)?(commentError("Failed to get privacy consent checkbox. Found "+o.length+" ceckboxes that match class: modalWindowCommentPrivacyConsent",r),!1):(o=o.first(),o.attr("checked",!1),s=$(r).find(".modalWindowClose"),s.length!==1)?(commentError("Failed to get close button. Found "+s.length+" buttons that match class: .modalWindowClose",r),!1):(s=s.first(),s.click(function(){return closeCommentModalWindow(n),!1}),h=$(r).find(".color-456tdf4"),h&&(h=h.first()),window.onclick=function(t){t.target==r[0]&&closeCommentModalWindow(n)},a=$("body"),a&&a.css("overflow","hidden"),e=$(r).find(".modalWindowSubmit"),e.length!==1)?(commentError("Failed to find submit button. Found "+e.length+" buttons that match class: "+modalWindowSubmit,r),!1):(e=e.first(),e.css("visibility","visible"),e.prop("disabled",!1),c=$(r).find(".modalWindowCommentEmailContainer"),c.length!==1)?(commentError("Failed to find email container that matches class: modalWindowCommentEmailContainer",r),!1):(c=c.first(),u=$(r).find(".modalWindowCommentEmail"),u.length!==1)?(commentError("Failed to find email that matches class: modalWindowCommentEmail",r),!1):(u=u.first(),u&&u.val()===""&&$.ajax({type:"get",url:i,cache:!1,dataType:"text",success:function(n){fadeInText(u,n,"#fff","#03386E",.5)},error:function(n,t,i){console.log("Failed to get email address for current user with error: "+i)}}),t==="")?(commentError("No submit comment url passed",r),!1):(e.unbind("click"),e.click(function(i){if($(this).prop("disabled",!0),l.html(""),f.val()==="")return f.focus(),commentError("Must add a comment",r),!1;if($.trim(f.val()).length<2)return f.focus(),commentError("Comment must be at least two characters",r),!1;if(f.val().length>5e3)return f.focus(),commentError("Comment cannot be longer than 5,000 characters",r),!1;if(u.val()==="")return u.focus(),commentError("Must add email",r),!1;if(u.length>250)return u.focus(),commentError("Email cannot be longer than 250 characters",r),!1;if(u.val($.trim(u.val())),!isValidEmail(u.val()))return u.focus(),commentError("Invalid email address",r),!1;if(!o.is(":checked"))return commentError("Must consent to privacy policy",r),!1;if(h&&h.val()!=="")return commentError("Spam check triggered",r),!1;i.preventDefault();var e={comment:f.val(),rawUrl:location.href,email:u.val(),isPrivacyConsent:o.is(":checked")};return $.ajax({type:"POST",url:t,cache:!1,data:e,success:function(){f.val("");closeCommentModalWindow(n)},error:function(n,t,i){c&&i=="Email not defined"&&c.slideDown(500);i===""&&(i="Failed to save comment");commentError(i,r)}}),!1}),!1)}function closeCommentModalWindow(n){var i=$("body"),t;if(i&&i.css("overflow","auto"),t=$("#"+n),t.length===0)return commentError("Failed to get modal window with id: "+n,t),!1;if(t.length>1)return commentError("More than one modal window with id: "+n,t),!1;t=t.first();t.css("display","none")}function commentError(n,t){var r,u,i;if(n===""&&(n="Undefined Error"),console.log(n),r=!0,t?(u=t.find(".modalWindowErrorMessage").first(),u?(u.html(n),r=!1):console.log("Failed to get error message in modal window passed")):console.log("Modal window passed is null"),r&&alert(n),t){if(i=$(t).find(".modalWindowSubmit"),i.length!==1)return commentError("Failed to get submit button. Found "+i.length+" buttons that match class: "+modalWindowSubmit,t),!1;i=i.first();i.css("visibility","visible");i.prop("disabled",!1)}}function isValidEmail(n){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}function fadeInText(n,t,i,r,u){(i||(i="#fff"),r||(r="#000"),u||(u=1),n&&isJQuery(n)&&n.length!=0)&&(n.val("").css("transition","").css("color",i),n.css("transition","color "+u+"s"),setTimeout(function(){n.val(t).css("color",r)},500))}function isJQuery(n){return n instanceof jQuery}function personalizePopupOpen(n,t){n||(n=0);t||(t=500);(typeof isDebug=="undefined"||isDebug==null||isDebug===undefined)&&(isDebug=!1);var i="isDisplayedPersonalizePopup";setTimeout(function(){if($("#popup").length===0){isDebug&&console.log("Failed to get popup control");return}var r="<div id='popupWindow' style='position:absolute; top:10%; left:50%; height:400px; width:50%; min-width:400px; max-width:600px; transform:translate(-50%, 0); background-color:#fff; padding:0px; font-size:16px; font-family:arial; z-index:151; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; border:2px solid #555; -webkit-box-shadow: 6px 7px 30px -1px rgba(0,0,0,0.59); -moz-box-shadow: 6px 7px 30px -1px rgba(0,0,0,0.59); box-shadow: 6px 7px 30px -1px rgba(0,0,0,0.59);'>";r+="<div id='popupCloseButton' style='float:right; font-weight:bold; color:#333; font-size:16px; margin:8px 10px 10px 10px; padding:0; cursor:pointer;'>x<\/div>";r+="<div style='margin:10px 20px 20px 20px;'>";r+="<h1>Customize Your Experience<\/h1>";r+="<iframe src='/_layouts/15/nema.portal.webparts/profilepersonalize.aspx?isPopup=true' style='width:100%; height:325px; border:0;'/>";r+="<\/div><\/div>";$("#popup").html(r);$("#popupCloseButton").unbind("click").bind("click",personalizePopupClose);$("#popup").unbind("click").bind("click",personalizePopupClose);$("#popup").attr("style","position:fixed; top:0; left:0; background:rgba(0,0,0,0.8); z-index:150; width:100%; height:100%; display:none;");$("body").css("overflow","hidden");$("#popup").fadeIn(t);createCookie(i,"true",30);isDebug&&console.log("Opened personalize popup after a "+n+"ms delay, with a "+t+"ms fade in delay")},n)}function personalizePopupClose(){(typeof isDebug=="undefined"||isDebug===null||isDebug===undefined)&&(isDebug=!1);$("body").css("overflow","auto");$("#popup").hide();isDebug&&console.log("Closed prompt")}function personalizeLink(){window.innerWidth>=400&&window.innerHeight>=400?personalizePopupOpen(0,500):window.location.href="/pages/profile.aspx"}function getFingerprint(n){var t,i,r,u;return console.log("in getFingerprint"),n===undefined&&(n=!1),t="",i="fingerprint",t=readCookie(i),t&&t!==""?(n&&console.log("Read fingerprint from cookie: "+t),t):(r={excludeJsFonts:!0},u=new Fingerprint2(r).get(function(n){t=n}),createCookie(i,t,90),n&&console.log("Generated fingerprint and set to cookie: "+t),t)}function generateUUID(){var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var i=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(t=="x"?i:i&3|8).toString(16)})}function getUserId(){try{if((userId===""||userId===undefined||userId===null||userId==="null")&&(userId=readCookie("userId"),isDebug&&console.log("UserId from cookie: "+userId),(userId===""||userId===undefined||userId===null||userId==="null")&&$.ajax({url:'" + GetUserIdUrl(true) + @"',complete:function(n){n.responseText.length==36?(userId=n.responseText,isDebug&&console.log("UserId from external url: "+userId),createCookie("userId",userId,90),isDebug&&console.log("UserId: "+userId+" added to cookie")):isDebug&&console.log("Failed to get UserId from external url")}}),userId===""||userId===undefined||userId===null||userId==="null"))if(username=readCookie("username"),username===""||username===undefined||username===null||username==="null"){isDebug&&console.log("Failed to get username from cookie");var n=document.getElementById(sharePointUsernameControlId);n!==null&&n.innerHTML.indexOf("@")>0?(username=n.innerHTML,username!==""&&username.indexOf("<")>0&&(username=username.substr(0,username.indexOf("<"))),username!==""&&(createCookie("username",username,90),isDebug&&console.log("Successfully got username: "+username+" from sharePoint username control and saved value to cookie"))):isDebug&&console.log("Failed got username from SharePoint control: "+sharePointUsernameControlId)}else isDebug&&console.log("Successfully got username from cookie: "+username)}catch(t){console.log("getUserId Error: "+t.message)}}function formatTime(n){return n===undefined||n===undefined?"undefined":n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()}function getCurrentDate(){var i=new Date,n=i.getDate(),t=i.getMonth()+1,r=i.getFullYear();return n<10&&(n="0"+n),t<10&&(t="0"+t),r+"-"+t+"-"+n}function getElapsedTimeHumanReadable(n){var t=n/6e4<<0,i=n/1e3%60;return t+"m, "+i+"s"}function focusCheck(){if(isDebug&&console.log("Focus check triggered"),startFocusTime!==undefined){var t=new Date,n=t.getTime()-lastUserInteraction.getTime();n>maxIdleTimeSpent-1e3||n>maxTimeSpent?(isDebug&&console.log("No recent interactions, probably idle. currentTime: "+formatTime(t)+", lastUserInteraction: "+formatTime(lastUserInteraction)+", idleTime: "+getElapsedTimeHumanReadable(n)),stopFocus()):isDebug&&console.log("Webpage still has focus")}else isDebug&&console.log("Webpage still doesnt have focus")}function startFocus(){startFocusTime===undefined&&(startFocusTime=new Date,isDebug&&console.log("Focus start time set to: "+formatTime(startFocusTime)));lastUserInteraction=new Date}function stopFocus(){var r,t,n;if(startFocusTime!==undefined)if(r=new Date,t=r.getTime()-startFocusTime.getTime(),t>maxTimeSpent&&(t=maxTimeSpent),startFocusTime=undefined,t>=minTimeSpent){fingerprint===""&&(fingerprint=getFingerprint());var f=generateUUID(),u="/TrackAnalytics/ArticleBeacon.aspx",i=document.getElementById("beaconContainer");i!==null&&(i.innerHTML="");n=document.createElement("img");n!==null&&i!==null&&(n.src=u,n.width=1,n.height=1,n.alt="Beacon Image",i.appendChild(n));saveData(fingerprint,1,t,f);isDebug&&console.log("Webpage focus ended, total focus time: "+getElapsedTimeHumanReadable(t)+", image src: "+u)}else isDebug&&console.log("Webpage focus ended, total focus was less than "+minTimeSpent+" milliseconds, will not record view")}function saveData(n,t,i,r){userId=$("#userid").val();currentPageID=$("#currentPageID").val();currentPageUrl=$("#pageUrl").val();currentPageTitle=$("#pageTitle").val();userName=$("#userName").val();currentPageID!==null&&currentPageID!=="00000000-0000-0000-0000-000000000000"&&$.ajax({url:"/RestApi/NemaServices/Analytics/TimeSpent",type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify({SubscriberId:userId,Fingerprint:n,PageId:currentPageID,TimeSpent:i.toString(),UniqueId:r.toString(),PageUrl:currentPageUrl,PageTitle:currentPageTitle,UserName:userName}),success:function(n){console.log(n)},error:function(){}})}window.Modernizr=function(n,t,i){function st(){u.input=function(n){for(var t=0,i=n.length;t<i;t++)et[n[t]]=n[t]in f;return et}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var o=0,r,u,s,h=n.length;o<h;o++)f.setAttribute("type",u=n[o]),r=f.type!=="text",r&&(f.value=w,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&f.style.WebkitAppearance!==i?(e.appendChild(f),s=t.defaultView,r=s.getComputedStyle&&s.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,e.removeChild(f)):/^(search|tel)$/.test(u)||(/^(url|email)$/.test(u)?r=f.checkValidity&&f.checkValidity()===!1:/^color$/.test(u)?(e.appendChild(f),e.offsetWidth,r=f.value!=w,e.removeChild(f)):r=f.value!=w)),ft[n[o]]=!!r;return ft}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function o(n,t){var i=n.charAt(0).toUpperCase()+n.substr(1),r=(n+" "+v.join(i+" ")+i).split(" ");return y(r,t)}function y(n,t){for(var r in n)if(s[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function p(n,t){return!!~(""+n).indexOf(t)}function c(n,t){return typeof n===t}function ht(n,t){return l(h.join(n+";")+(t||""))}function l(n){s.cssText=n}var u={},e=t.documentElement,at=t.head||t.getElementsByTagName("head")[0],a="modernizr",rt=t.createElement(a),s=rt.style,f=t.createElement("input"),w=":)",ut=Object.prototype.toString,h=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),v="Webkit Moz O ms Khtml".split(" "),b={svg:"http://www.w3.org/2000/svg"},r={},ft={},et={},ot=[],nt=function(n,i,r,u){var s,h,o,f=t.createElement("div");if(parseInt(r,10))while(r--)o=t.createElement("div"),o.id=u?u[r]:a+(r+1),f.appendChild(o);return s=["&shy;","<style>",n,"<\/style>"].join(""),f.id=a,f.innerHTML+=s,e.appendChild(f),h=i(f,n),f.parentNode.removeChild(f),!!h},ct=function(t){if(n.matchMedia)return matchMedia(t).matches;var i;return nt("@media "+t+" { #"+a+" { position: absolute; } }",function(t){i=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),i},k=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=c(u[n],"function"),c(u[n],i)||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),d,tt={}.hasOwnProperty,it,lt,g;it=!c(tt,i)&&!c(tt.call,i)?function(n,t){return tt.call(n,t)}:function(n,t){return t in n&&c(n.constructor.prototype[t],i)};lt=function(i,r){var e=i.join(""),f=r.length;nt(e,function(i,r){for(var e=t.styleSheets[t.styleSheets.length-1],s=e.cssRules&&e.cssRules[0]?e.cssRules[0].cssText:e.cssText||"",h=i.childNodes,o={};f--;)o[h[f].id]=h[f];u.touch="ontouchstart"in n||o.touch.offsetTop===9;u.csstransforms3d=o.csstransforms3d.offsetLeft===9;u.generatedcontent=o.generatedcontent.offsetHeight>=1;u.fontface=/src/i.test(s)&&s.indexOf(r.split(" ")[0])===0},f,r)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",h.join("touch-enabled),("),a,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",h.join("transform-3d),("),a,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',w,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){function u(n,t,i,r){n.style.cssText=h.join(t+":"+i+";")+(r||"")}function f(n,t,i,r){t+=":";n.style.cssText=(t+h.join(i+";"+t)).slice(0,-t.length)+(r||"")}var n=t.createElement("div"),i=t.createElement("div"),r;return f(n,"display","box","width:42px;padding:0;"),u(i,"box-flex","1","width:10px;"),n.appendChild(i),e.appendChild(n),r=i.offsetWidth===42,n.removeChild(i),e.removeChild(n),r};r.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};r.canvastext=function(){return!!u.canvas&&!!c(t.createElement("canvas").getContext("2d").fillText,"function")};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){return u.touch};r.geolocation=function(){return!!navigator.geolocation};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){for(var t=-1,i=v.length;++t<i;)if(n[v[t].toLowerCase()+"IndexedDB"])return!0;return!!n.indexedDB};r.hashchange=function(){return k("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!n.history&&!!history.pushState};r.draganddrop=function(){return k("dragstart")&&k("drop")};r.websockets=function(){for(var t=-1,i=v.length;++t<i;)if(n[v[t]+"WebSocket"])return!0;return"WebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),p(s.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),p(s.backgroundColor,"rgba")||p(s.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(s.background)};r.backgroundsize=function(){return o("backgroundSize")};r.borderimage=function(){return o("borderImage")};r.borderradius=function(){return o("borderRadius")};r.boxshadow=function(){return o("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return ht("opacity:.55"),/^0.55$/.test(s.opacity)};r.cssanimations=function(){return o("animationName")};r.csscolumns=function(){return o("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+h.join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+h.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),p(s.backgroundImage,"gradient")};r.cssreflections=function(){return o("boxReflect")};r.csstransforms=function(){return!!y(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};r.csstransforms3d=function(){var n=!!y(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);return n&&"webkitPerspective"in e.style&&(n=u.csstransforms3d),n};r.csstransitions=function(){return o("transitionProperty")};r.fontface=function(){return u.fontface};r.generatedcontent=function(){return u.generatedcontent};r.video=function(){var i=t.createElement("video"),n=!1,r;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"'),r='video/mp4; codecs="avc1.42E01E',n.h264=i.canPlayType(r+'"')||i.canPlayType(r+', mp4a.40.2"'),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"'))}catch(u){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"'),n.mp3=i.canPlayType("audio/mpeg;"),n.wav=i.canPlayType('audio/wav; codecs="1"'),n.m4a=i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;"))}catch(r){}return n};r.localstorage=function(){try{return!!localStorage.getItem}catch(n){return!1}};r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(b.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==b.svg};r.smil=function(){return!!t.createElementNS&&/SVG/.test(ut.call(t.createElementNS(b.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVG/.test(ut.call(t.createElementNS(b.svg,"clipPath")))};for(g in r)it(r,g)&&(d=g.toLowerCase(),u[d]=r[g](),ot.push((u[d]?"":"no-")+d));return u.input||st(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)it(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return;t=typeof t=="boolean"?t:!!t();e.className+=" "+(t?"":"no-")+n;u[n]=t}return u},l(""),rt=f=null,n.attachEvent&&function(){var n=t.createElement("div");return n.innerHTML="<elem><\/elem>",n.childNodes.length!==1}()&&function(n,t){function c(n){for(var t=-1;++t<l;)n.createElement(s[t])}n.iepp=n.iepp||{};var r=n.iepp,o=r.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",s=o.split("|"),l=s.length,y=new RegExp("(^|\\s)("+o+")","gi"),p=new RegExp("<(/*)("+o+")","gi"),w=/^\s*[\{\}]\s*$/,b=new RegExp("(^|[^\\n]*?\\s)("+o+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),a=t.createDocumentFragment(),h=t.documentElement,v=h.firstChild,f=t.createElement("body"),e=t.createElement("style"),k=/print|all/,u;r.getCSS=function(n,t){if(n+""===i)return"";for(var f=-1,o=n.length,u,e=[];++f<o;)(u=n[f],u.disabled)||(t=u.media||t,k.test(t)&&e.push(r.getCSS(u.imports,t),u.cssText),t="all");return e.join("")};r.parseCSS=function(n){for(var i=[],t;(t=b.exec(n))!=null;)i.push(((w.exec(t[1])?"\n":t[1])+t[2]+t[3]).replace(y,"$1.iepp_$2")+t[4]);return i.join("\n")};r.writeHTML=function(){var n=-1;for(u=u||t.body;++n<l;)for(var i=t.getElementsByTagName(s[n]),e=i.length,r=-1;++r<e;)i[r].className.indexOf("iepp_")<0&&(i[r].className+=" iepp_"+s[n]);a.appendChild(u);h.appendChild(f);f.className=u.className;f.id=u.id;f.innerHTML=u.innerHTML.replace(p,"<$1font")};r._beforePrint=function(){e.styleSheet.cssText=r.parseCSS(r.getCSS(t.styleSheets,"all"));r.writeHTML()};r.restoreHTML=function(){f.innerHTML="";h.removeChild(f);h.appendChild(u)};r._afterPrint=function(){r.restoreHTML();e.styleSheet.cssText=""};c(t);c(a);r.disablePP||(v.insertBefore(e,v.firstChild),e.media="print",e.className="iepp-printshim",n.attachEvent("onbeforeprint",r._beforePrint),n.attachEvent("onafterprint",r._afterPrint))}(n,t),u._version="2.0.6",u._prefixes=h,u._domPrefixes=v,u.mq=ct,u.hasEvent=k,u.testProp=function(n){return y([n])},u.testAllProps=o,u.testStyles=nt,u.prefixed=function(n){return o(n,"pfx")},e.className=e.className.replace(/\bno-js\b/,"")+(" js "+ot.join(" ")),u}(this,this.document),function(n,t){function a(){l(!0)}if(n.respond={},respond.update=function(){},respond.mediaQueriesSupported=t,!t){var i=n.document,v=i.documentElement,e=[],u=[],r=[],o={},y=30,f=i.getElementsByTagName("head")[0]||v,s=f.getElementsByTagName("link"),h=[],p=function(){for(var u=s,c=u.length,r=0,i,t,f,e;r<c;r++)i=u[r],t=i.href,f=i.media,e=i.rel&&i.rel.toLowerCase()==="stylesheet",!!t&&e&&!o[t]&&(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(t)||t.replace(RegExp.$1,"").split("/")[0]===n.location.host?h.push({href:t,media:f}):o[t]=!0);w()},w=function(){if(h.length){var n=h.shift();d(n.href,function(t){k(t,n.href,n.media);o[n.href]=!0;w()})}},k=function(n,t,i){var o=n.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),s=o&&o.length||0,t=t.substring(0,t.lastIndexOf("/")),v=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},y=!s&&i,h=0,r,c,f,a,p;for(t.length&&(t+="/"),y&&(s=1);h<s;h++)for(r=0,y?(c=i,u.push(v(n))):(c=o[h].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,u.push(RegExp.$2&&v(RegExp.$2))),a=c.split(","),p=a.length;r<p;r++)f=a[r],e.push({media:f.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:u.length-1,minw:f.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:f.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)});l()},c,b,l=function(n){var w="clientWidth",k=v[w],d=i.compatMode==="CSS1Compat"&&k||i.body[w]||k,a={},g=i.createDocumentFragment(),tt=s[s.length-1],nt=(new Date).getTime(),t,o,h,p;if(n&&c&&nt-c<y)clearTimeout(b),b=setTimeout(l,y);else{c=nt;for(o in e)t=e[o],(!t.minw&&!t.maxw||(!t.minw||t.minw&&d>=t.minw)&&(!t.maxw||t.maxw&&d<=t.maxw))&&(a[t.media]||(a[t.media]=[]),a[t.media].push(u[t.rules]));for(o in r)r[o]&&r[o].parentNode===f&&f.removeChild(r[o]);for(o in a)h=i.createElement("style"),p=a[o].join("\n"),h.type="text/css",h.media=o,h.styleSheet?h.styleSheet.cssText=p:h.appendChild(i.createTextNode(p)),g.appendChild(h),r.push(h);f.insertBefore(g,tt.nextSibling)}},d=function(n,t){var i=g();if(!!i){if(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState==4&&(i.status==200||i.status==304)&&t(i.responseText)},i.readyState==4)return;i.send()}},g=function(){for(var n=!1,t=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest}],i=t.length;i--;){try{n=t[i]()}catch(r){continue}break}return function(){return n}}();p();respond.update=p;n.addEventListener?n.addEventListener("resize",a,!1):n.attachEvent&&n.attachEvent("onresize",a)}}(this,Modernizr.mq("only all")),function(n,t,i){function g(n){return!n||n=="loaded"||n=="complete"}function r(){for(var t=1,n=-1;e.length-++n;)if(e[n].s&&!(t=e[n].r))break;t&&v()}function ft(n){var i=t.createElement("script"),e;i.src=n.s;i.onreadystatechange=i.onload=function(){!e&&g(i.readyState)&&(e=1,r(),i.onload=i.onreadystatechange=null)};f(function(){e||(e=1,r())},u.errorTimeout);n.e?i.onload():o.parentNode.insertBefore(i,o)}function et(n){var i=t.createElement("link"),e,s;i.href=n.s;i.rel="stylesheet";i.type="text/css";!n.e&&(w||c)?(s=function(n){f(function(){if(!e)try{n.sheet.cssRules.length?(e=1,r()):s(n)}catch(t){t.code==1e3||t.message=="security"||t.message=="denied"?(e=1,f(function(){r()},0)):s(n)}},0)},s(i)):(i.onload=function(){e||(e=1,f(function(){r()},0))},n.e&&i.onload());f(function(){e||(e=1,r())},u.errorTimeout);n.e||o.parentNode.insertBefore(i,o)}function v(){var n=e.shift();h=1;n?n.t?f(function(){n.t=="c"?et(n):ft(n)},0):(n(),r()):h=0}function ot(n,i,s,c,a,y){function d(){!k&&g(w.readyState)&&(b.r=k=1,!h&&r(),w.onload=w.onreadystatechange=null,f(function(){p.removeChild(w)},0))}var w=t.createElement(n),k=0,b={t:s,s:i,e:y};w.src=w.data=i;!l&&(w.style.display="none");w.width=w.height="0";n!="object"&&(w.type=s);w.onload=w.onreadystatechange=d;n=="img"?w.onerror=d:n=="script"&&(w.onerror=function(){b.e=b.r=1;v()});e.splice(c,0,b);p.insertBefore(w,l?null:o);f(function(){k||(p.removeChild(w),b.r=b.e=k=1,r())},u.errorTimeout)}function st(n,t,i){var r=t=="c"?lt:tt;return h=0,t=t||"j",a(n)?ot(r,n,t,this.i++,s,i):(e.splice(this.i++,0,n),e.length==1&&v()),this}function nt(){var n=u;return n.loader={load:st,i:0},n}var s=t.documentElement,f=n.setTimeout,o=t.getElementsByTagName("script")[0],y={}.toString,e=[],h=0,c="MozAppearance"in s.style,l=c&&!!t.createRange().compareNode,at=c&&!l,p=l?s:o.parentNode,ht=n.opera&&y.call(n.opera)=="[object Opera]",w="webkitAppearance"in s.style,ct=w&&"async"in t.createElement("script"),tt=c?"object":ht||ct?"img":"script",lt=w?"img":tt,it=Array.isArray||function(n){return y.call(n)=="[object Array]"},b=function(n){return Object(n)===n},a=function(n){return typeof n=="string"},k=function(n){return y.call(n)=="[object Function]"},d=[],rt={},ut,u;u=function(n){function s(n){for(var r=n.split("!"),e=d.length,f=r.pop(),o=r.length,i={url:f,origUrl:f,prefixes:r},u,t=0;t<o;t++)u=rt[r[t]],u&&(i=u(i));for(t=0;t<e;t++)i=d[t](i);return i}function r(n,t,r,u,f){var e=s(n),o=e.autoCallback;if(!e.bypass){if(t&&(t=k(t)?t:t[n]||t[u]||t[n.split("/").pop().split("?")[0]]),e.instead)return e.instead(n,t,r,u,f);r.load(e.url,e.forceCSS||!e.forceJS&&/css$/.test(e.url)?"c":i,e.noexec);(k(t)||k(o))&&r.load(function(){nt();t&&t(e.origUrl,f,u);o&&o(e.origUrl,f,u)})}}function o(n,t){function f(n){if(a(n))r(n,e,t,0,u);else if(b(n))for(i in n)n.hasOwnProperty(i)&&r(n[i],e,t,i,u)}var u=!!n.test,o=u?n.yep:n.nope,s=n.load||n.both,e=n.callback,i;f(o);f(s);n.complete&&t.load(n.complete)}var f,t,e=this.yepnope.loader;if(a(n))r(n,0,e,0);else if(it(n))for(f=0;f<n.length;f++)t=n[f],a(t)?r(t,0,e,0):it(t)?u(t):b(t)&&o(t,e);else b(n)&&o(n,e)};u.addPrefix=function(n,t){rt[n]=t};u.addFilter=function(n){d.push(n)};u.errorTimeout=1e4;t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",ut=function(){t.removeEventListener("DOMContentLoaded",ut,0);t.readyState="complete"},0));n.yepnope=nt()}(this,this.document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};window.matchMedia=window.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth==42,i.removeChild(r),{matches:u,media:n}}}(document),function(n){function d(){a(!0)}if(n.respond={},respond.update=function(){},respond.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!respond.mediaQueriesSupported){var t=n.document,i=t.documentElement,e=[],u=[],r=[],o={},v=30,f=t.getElementsByTagName("head")[0]||i,s=f.getElementsByTagName("link"),h=[],y=function(){for(var f=s,c=f.length,r=0,t,i,u,e;r<c;r++)t=f[r],i=t.href,u=t.media,e=t.rel&&t.rel.toLowerCase()==="stylesheet",!i||!e||o[i]||(t.styleSheet&&t.styleSheet.rawCssText?(w(t.styleSheet.rawCssText,i,u),o[i]=!0):/^([a-zA-Z]+?:(\/\/)?)/.test(i)&&i.replace(RegExp.$1,"").split("/")[0]!==n.location.host||h.push({href:i,media:u}));p()},p=function(){if(h.length){var n=h.shift();g(n.href,function(t){w(t,n.href,n.media);o[n.href]=!0;p()})}},w=function(n,t,i){var o=n.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),s=o&&o.length||0,t=t.substring(0,t.lastIndexOf("/")),v=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},y=!s&&i,h=0,r,c,f,l,p;for(t.length&&(t+="/"),y&&(s=1);h<s;h++)for(r=0,y?(c=i,u.push(v(n))):(c=o[h].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,u.push(RegExp.$2&&v(RegExp.$2))),l=c.split(","),p=l.length;r<p;r++)f=l[r],e.push({media:f.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:u.length-1,minw:f.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:f.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});a()},c,b,k=function(){var u,r=t.createElement("div"),n=t.body,f=!1;return r.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body")),n.appendChild(r),i.insertBefore(n,i.firstChild),u=r.offsetWidth,f?i.removeChild(n):n.removeChild(r),l=parseFloat(u)},l,a=function(n){var nt="clientWidth",tt=i[nt],it=t.compatMode==="CSS1Compat"&&tt||t.body[nt]||tt,d={},ft=s[s.length-1],rt=(new Date).getTime(),o,p,g;if(n&&c&&rt-c<v){clearTimeout(b);b=setTimeout(a,v);return}c=rt;for(o in e){var w=e[o],h=w.minw,y=w.maxw,ut="em";!h||(h=parseFloat(h)*(h.indexOf(ut)>-1?l||k():1));!y||(y=parseFloat(y)*(y.indexOf(ut)>-1?l||k():1));(!h&&!y||(!h||h&&it>=h)&&(!y||y&&it<=y))&&(d[w.media]||(d[w.media]=[]),d[w.media].push(u[w.rules]))}for(o in r)r[o]&&r[o].parentNode===f&&f.removeChild(r[o]);for(o in d)p=t.createElement("style"),g=d[o].join("\n"),p.type="text/css",p.media=o,f.insertBefore(p,ft.nextSibling),p.styleSheet?p.styleSheet.cssText=g:p.appendChild(t.createTextNode(g)),r.push(p)},g=function(n,t){var i=nt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState==4&&(i.status==200||i.status==304)&&t(i.responseText)},i.readyState!=4)&&i.send(null)},nt=function(){var n=!1;try{n=new XMLHttpRequest}catch(t){n=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return n}}();y();respond.update=y;n.addEventListener?n.addEventListener("resize",d,!1):n.attachEvent&&n.attachEvent("onresize",d)}}(this),function(n){n.fn.hoverIntent=function(t,i){var r={sensitivity:7,interval:100,timeout:0};r=n.extend(r,i?{over:t,out:i}:t);var u,f,e,o,s=function(n){u=n.pageX;f=n.pageY},h=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(e-u)+Math.abs(o-f)<r.sensitivity)return n(i).unbind("mousemove",s),i.hoverIntent_s=1,r.over.apply(i,[t]);e=u;o=f;i.hoverIntent_t=setTimeout(function(){h(t,i)},r.interval)},l=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,r.out.apply(t,[n])},c=function(t){var u=jQuery.extend({},t),i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t));t.type=="mouseenter"?(e=u.pageX,o=u.pageY,n(i).bind("mousemove",s),i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){h(u,i)},r.interval))):(n(i).unbind("mousemove",s),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){l(u,i)},r.timeout)))};return this.bind("mouseenter",c).bind("mouseleave",c)}}(jQuery);$(document).ready(function(){$(document).bind("click",function(n){var t=$(n.target);t.parents().hasClass("loginDropdown")||$(".loginDropdown dd ul").hide()});$(".loginDropdown dt a").click(function(){$(".loginDropdown dd ul").toggle()})}),function(){function n(n,t,i,r){function e(n,t){for(var r,i=0;i<n.length;i++)r=n[i],t(r,i)}function s(n){h(n);c(n);l(n)}function h(n){n.addEventListener("mouseover",function(){e(u,function(t,i){i<=parseInt(n.getAttribute("data-index"))?t.classList.add("is-active"):t.classList.remove("is-active")})})}function c(n){n.addEventListener("mouseout",function(n){u.indexOf(n.relatedTarget)===-1&&f(null,!1)})}function l(n){n.addEventListener("click",function(t){t.preventDefault();f(parseInt(n.getAttribute("data-index"))+1,!0)})}function f(n,f){n&&n<0||n>i||(f===undefined&&(f=!0),t=n||t,e(u,function(n,i){i<t?n.classList.add("is-active"):n.classList.remove("is-active")}),r&&f&&r(o()))}function o(){return t}var u=[];return function(){var f,r;if(!n)throw Error("No element supplied.");if(!i)throw Error("No max rating supplied.");if(t||(t=0),t<0||t>i)throw Error("Current rating is out of bounds.");for(n.innerHTML="",f=0;f<i;f++)r=document.createElement("li"),r.classList.add("starRatingItem"),r.setAttribute("data-index",f),f<t&&r.classList.add("is-active"),n.appendChild(r),u.push(r),s(r)}(),{setRating:f,getRating:o}}window.rating=n}();!function(n,t,i){"use strict";"undefined"!=typeof module&&module.exports?module.exports=i():"function"==typeof define&&define.amd?define(i):t[n]=i()}("Fingerprint2",this,function(){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(null==this)throw new TypeError("'this' is null or undefined");if((f=Object(this),u=f.length>>>0,0===u)||(i=+t||0,1/0===Math.abs(i)&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);u>r;){if(r in f&&f[r]===n)return r;r++}return-1});var n=function(n){this.options=this.extend(n,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",sortPluginsFor:[/palemoon/i]});this.nativeForEach=Array.prototype.forEach;this.nativeMap=Array.prototype.map};return n.prototype={extend:function(n,t){if(null==n)return t;for(var i in n)null!=n[i]&&t[i]!==n[i]&&(t[i]=n[i]);return t},log:function(n){window.console&&console.log(n)},get:function(n){var t=[],i;t=this.userAgentKey(t);t=this.languageKey(t);t=this.colorDepthKey(t);t=this.screenResolutionKey(t);t=this.timezoneOffsetKey(t);t=this.sessionStorageKey(t);t=this.localStorageKey(t);t=this.indexedDbKey(t);t=this.addBehaviorKey(t);t=this.openDatabaseKey(t);t=this.cpuClassKey(t);t=this.platformKey(t);t=this.doNotTrackKey(t);t=this.pluginsKey(t);t=this.canvasKey(t);t=this.webglKey(t);t=this.adBlockKey(t);t=this.hasLiedLanguagesKey(t);t=this.hasLiedResolutionKey(t);t=this.hasLiedOsKey(t);t=this.hasLiedBrowserKey(t);t=this.touchSupportKey(t);i=this;this.fontsKey(t,function(t){var r=i.x64hash128(t.join("~~~"),31);return n(r)})},userAgentKey:function(n){return this.options.excludeUserAgent||n.push(this.getUserAgent()),n},getUserAgent:function(){return navigator.userAgent},languageKey:function(n){return this.options.excludeLanguage||n.push(navigator.language),n},colorDepthKey:function(n){return this.options.excludeColorDepth||n.push(screen.colorDepth),n},screenResolutionKey:function(n){return this.options.excludeScreenResolution?n:this.getScreenResolution(n)},getScreenResolution:function(n){var t,i;return t=this.options.detectScreenOrientation?screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.height,screen.width],"undefined"!=typeof t&&n.push(t),screen.availWidth&&screen.availHeight&&(i=this.options.detectScreenOrientation?screen.availHeight>screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]),"undefined"!=typeof i&&n.push(i),n},timezoneOffsetKey:function(n){return this.options.excludeTimezoneOffset||n.push((new Date).getTimezoneOffset()),n},sessionStorageKey:function(n){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&n.push("sessionStorageKey"),n},localStorageKey:function(n){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&n.push("localStorageKey"),n},indexedDbKey:function(n){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&n.push("indexedDbKey"),n},addBehaviorKey:function(n){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&n.push("addBehaviorKey"),n},openDatabaseKey:function(n){return!this.options.excludeOpenDatabase&&window.openDatabase&&n.push("openDatabase"),n},cpuClassKey:function(n){return this.options.excludeCpuClass||n.push(this.getNavigatorCpuClass()),n},platformKey:function(n){return this.options.excludePlatform||n.push(this.getNavigatorPlatform()),n},doNotTrackKey:function(n){return this.options.excludeDoNotTrack||n.push(this.getDoNotTrack()),n},canvasKey:function(n){return!this.options.excludeCanvas&&this.isCanvasSupported()&&n.push(this.getCanvasFp()),n},webglKey:function(n){return this.options.excludeWebGL?("undefined"==typeof NODEBUG&&this.log("Skipping WebGL fingerprinting per excludeWebGL configuration option"),n):this.isWebGlSupported()?(n.push(this.getWebglFp()),n):("undefined"==typeof NODEBUG&&this.log("Skipping WebGL fingerprinting because it is not supported in this browser"),n)},adBlockKey:function(n){return this.options.excludeAdBlock||n.push(this.getAdBlock()),n},hasLiedLanguagesKey:function(n){return this.options.excludeHasLiedLanguages||n.push(this.getHasLiedLanguages()),n},hasLiedResolutionKey:function(n){return this.options.excludeHasLiedResolution||n.push(this.getHasLiedResolution()),n},hasLiedOsKey:function(n){return this.options.excludeHasLiedOs||n.push(this.getHasLiedOs()),n},hasLiedBrowserKey:function(n){return this.options.excludeHasLiedBrowser||n.push(this.getHasLiedBrowser()),n},fontsKey:function(n,t){return this.options.excludeJsFonts?this.flashFontsKey(n,t):this.jsFontsKey(n,t)},flashFontsKey:function(n,t){return this.options.excludeFlashFonts?("undefined"==typeof NODEBUG&&this.log("Skipping flash fonts detection per excludeFlashFonts configuration option"),t(n)):this.hasSwfObjectLoaded()?this.hasMinFlashInstalled()?"undefined"==typeof this.options.swfPath?("undefined"==typeof NODEBUG&&this.log("To use Flash fonts detection, you must pass a valid swfPath option, skipping Flash fonts enumeration"),t(n)):void this.loadSwfAndDetectFonts(function(i){n.push(i.join(";"));t(n)}):("undefined"==typeof NODEBUG&&this.log("Flash is not installed, skipping Flash fonts enumeration"),t(n)):("undefined"==typeof NODEBUG&&this.log("Swfobject is not detected, Flash fonts enumeration is skipped"),t(n))},jsFontsKey:function(n,t){return setTimeout(function(){var r=["monospace","sans-serif","serif"],u=document.getElementsByTagName("body")[0],i=document.createElement("span"),o,s,f;i.style.fontSize="72px";i.innerHTML="mmmmmmmmmmlli";o={};s={};for(f in r)i.style.fontFamily=r[f],u.appendChild(i),o[r[f]]=i.offsetWidth,s[r[f]]=i.offsetHeight,u.removeChild(i);for(var l=function(n){var f=!1,t,e;for(t in r)i.style.fontFamily=n+","+r[t],u.appendChild(i),e=i.offsetWidth!==o[r[t]]||i.offsetHeight!==s[r[t]],u.removeChild(i),f=f||e;return f},h=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andale Mono","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Bitstream Vera Sans Mono","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Book Antiqua","Bookman Old Style","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Calibri","Californian FB","Calisto MT","Calligrapher","Cambria","Cambria Math","Candara","CaslonOpnface BT","Castellar","Centaur","Century","Century Gothic","Century Schoolbook","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Comic Sans","Comic Sans MS","Consolas","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Courier","Courier New","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","Devanagari Sangam MN","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","Franklin Gothic","Franklin Gothic Book","Franklin Gothic Demi","Franklin Gothic Demi Cond","Franklin Gothic Heavy","Franklin Gothic Medium","Franklin Gothic Medium Cond","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Garamond","Gautami","Geeza Pro","Geneva","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","Georgia","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Helvetica","Helvetica Neue","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Impact","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Monaco","Mongolian Baiti","MONO","Monotype Corsiva","MoolBoran","Mrs Eaves","MS Gothic","MS LineDraw","MS Mincho","MS Outlook","MS PGothic","MS PMincho","MS Reference Sans Serif","MS Reference Specialty","MS Sans Serif","MS Serif","MS UI Gothic","MT Extra","MUSEO","MV Boli","MYRIAD","MYRIAD PRO","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Palatino","Palatino Linotype","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tahoma","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Times","Times New Roman","Times New Roman PS","Traditional Arabic","Trajan","TRAJAN PRO","Trebuchet MS","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Verdana","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","Wingdings","Wingdings 2","Wingdings 3","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"],c=[],e=0,a=h.length;a>e;e++)l(h[e])&&c.push(h[e]);n.push(c.join(";"));t(n)},1)},pluginsKey:function(n){return n.push(this.isIE()?this.getIEPluginsString():this.getRegularPluginsString()),n},getRegularPluginsString:function(){for(var n=[],t=0,i=navigator.plugins.length;i>t;t++)n.push(navigator.plugins[t]);return this.pluginsShouldBeSorted()&&(n=n.sort(function(n,t){return n.name>t.name?1:n.name<t.name?-1:0})),this.map(n,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(){if(window.ActiveXObject)return this.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],function(n){try{return new ActiveXObject(n),n}catch(t){return null}}).join(";");return""},pluginsShouldBeSorted:function(){for(var i,t=!1,n=0,r=this.options.sortPluginsFor.length;r>n;n++)if(i=this.options.sortPluginsFor[n],navigator.userAgent.match(i)){t=!0;break}return t},touchSupportKey:function(n){return this.options.excludeTouchSupport||n.push(this.getTouchSupport()),n},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(n){return!0}},hasLocalStorage:function(){try{return!!window.localStorage}catch(n){return!0}},hasIndexedDB:function(){return!!window.indexedDB},getNavigatorCpuClass:function(){return navigator.cpuClass?"navigatorCpuClass: "+navigator.cpuClass:"navigatorCpuClass: unknown"},getNavigatorPlatform:function(){return navigator.platform?"navigatorPlatform: "+navigator.platform:"navigatorPlatform: unknown"},getDoNotTrack:function(){return navigator.doNotTrack?"doNotTrack: "+navigator.doNotTrack:"doNotTrack: unknown"},getTouchSupport:function(){var n=0,t=!1,i;"undefined"!=typeof navigator.maxTouchPoints?n=navigator.maxTouchPoints:"undefined"!=typeof navigator.msMaxTouchPoints&&(n=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent");t=!0}catch(r){}return i="ontouchstart"in window,[n,t,i]},getCanvasFp:function(){var i=[],t=document.createElement("canvas"),n;return t.width=2e3,t.height=200,t.style.display="inline",n=t.getContext("2d"),n.rect(0,0,10,10),n.rect(2,2,6,6),i.push("canvas winding:"+(n.isPointInPath(5,5,"evenodd")===!1?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),i.push("canvas fp:"+t.toDataURL()),i.join("~")},getWebglFp:function(){var n,e=function(t){return n.clearColor(0,0,0,1),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"},s=function(n){var t,i=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic");return i?(t=n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===t&&(t=2),t):null},o,i,u,f;if(n=this.getWebglCanvas(),!n)return null;var t=[],r=n.createBuffer();return n.bindBuffer(n.ARRAY_BUFFER,r),o=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]),n.bufferData(n.ARRAY_BUFFER,o,n.STATIC_DRAW),r.itemSize=3,r.numItems=3,i=n.createProgram(),u=n.createShader(n.VERTEX_SHADER),n.shaderSource(u,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),n.compileShader(u),f=n.createShader(n.FRAGMENT_SHADER),n.shaderSource(f,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),n.compileShader(f),n.attachShader(i,u),n.attachShader(i,f),n.linkProgram(i),n.useProgram(i),i.vertexPosAttrib=n.getAttribLocation(i,"attrVertex"),i.offsetUniform=n.getUniformLocation(i,"uniformOffset"),n.enableVertexAttribArray(i.vertexPosArray),n.vertexAttribPointer(i.vertexPosAttrib,r.itemSize,n.FLOAT,!1,0,0),n.uniform2f(i.offsetUniform,1,1),n.drawArrays(n.TRIANGLE_STRIP,0,r.numItems),null!=n.canvas&&t.push(n.canvas.toDataURL()),t.push("extensions:"+n.getSupportedExtensions().join(";")),t.push("webgl aliased line width range:"+e(n.getParameter(n.ALIASED_LINE_WIDTH_RANGE))),t.push("webgl aliased point size range:"+e(n.getParameter(n.ALIASED_POINT_SIZE_RANGE))),t.push("webgl alpha bits:"+n.getParameter(n.ALPHA_BITS)),t.push("webgl antialiasing:"+(n.getContextAttributes().antialias?"yes":"no")),t.push("webgl blue bits:"+n.getParameter(n.BLUE_BITS)),t.push("webgl depth bits:"+n.getParameter(n.DEPTH_BITS)),t.push("webgl green bits:"+n.getParameter(n.GREEN_BITS)),t.push("webgl max anisotropy:"+s(n)),t.push("webgl max combined texture image units:"+n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),t.push("webgl max cube map texture size:"+n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE)),t.push("webgl max fragment uniform vectors:"+n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS)),t.push("webgl max render buffer size:"+n.getParameter(n.MAX_RENDERBUFFER_SIZE)),t.push("webgl max texture image units:"+n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)),t.push("webgl max texture size:"+n.getParameter(n.MAX_TEXTURE_SIZE)),t.push("webgl max varying vectors:"+n.getParameter(n.MAX_VARYING_VECTORS)),t.push("webgl max vertex attribs:"+n.getParameter(n.MAX_VERTEX_ATTRIBS)),t.push("webgl max vertex texture image units:"+n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),t.push("webgl max vertex uniform vectors:"+n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS)),t.push("webgl max viewport dims:"+e(n.getParameter(n.MAX_VIEWPORT_DIMS))),t.push("webgl red bits:"+n.getParameter(n.RED_BITS)),t.push("webgl renderer:"+n.getParameter(n.RENDERER)),t.push("webgl shading language version:"+n.getParameter(n.SHADING_LANGUAGE_VERSION)),t.push("webgl stencil bits:"+n.getParameter(n.STENCIL_BITS)),t.push("webgl vendor:"+n.getParameter(n.VENDOR)),t.push("webgl version:"+n.getParameter(n.VERSION)),n.getShaderPrecisionFormat?(t.push("webgl vertex shader high float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision),t.push("webgl vertex shader high float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).rangeMin),t.push("webgl vertex shader high float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).rangeMax),t.push("webgl vertex shader medium float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision),t.push("webgl vertex shader medium float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).rangeMin),t.push("webgl vertex shader medium float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).rangeMax),t.push("webgl vertex shader low float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).precision),t.push("webgl vertex shader low float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).rangeMin),t.push("webgl vertex shader low float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).rangeMax),t.push("webgl fragment shader high float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision),t.push("webgl fragment shader high float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).rangeMin),t.push("webgl fragment shader high float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).rangeMax),t.push("webgl fragment shader medium float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision),t.push("webgl fragment shader medium float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).rangeMin),t.push("webgl fragment shader medium float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).rangeMax),t.push("webgl fragment shader low float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).precision),t.push("webgl fragment shader low float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).rangeMin),t.push("webgl fragment shader low float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).rangeMax),t.push("webgl vertex shader high int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).precision),t.push("webgl vertex shader high int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).rangeMin),t.push("webgl vertex shader high int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).rangeMax),t.push("webgl vertex shader medium int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).precision),t.push("webgl vertex shader medium int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).rangeMin),t.push("webgl vertex shader medium int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).rangeMax),t.push("webgl vertex shader low int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).precision),t.push("webgl vertex shader low int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).rangeMin),t.push("webgl vertex shader low int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).rangeMax),t.push("webgl fragment shader high int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).precision),t.push("webgl fragment shader high int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).rangeMin),t.push("webgl fragment shader high int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).rangeMax),t.push("webgl fragment shader medium int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).precision),t.push("webgl fragment shader medium int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).rangeMin),t.push("webgl fragment shader medium int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).rangeMax),t.push("webgl fragment shader low int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).precision),t.push("webgl fragment shader low int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).rangeMin),t.push("webgl fragment shader low int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).rangeMax),t.join("~")):("undefined"==typeof NODEBUG&&this.log("WebGL fingerprinting is incomplete, because your browser does not support getShaderPrecisionFormat"),t.join("~"))},getAdBlock:function(){var n=document.createElement("div");return n.setAttribute("id","ads"),document.body.appendChild(n),document.getElementById("ads")?!1:!0},getHasLiedLanguages:function(){if("undefined"!=typeof navigator.languages)try{var n=navigator.languages[0].substr(0,2);if(n!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1},getHasLiedResolution:function(){return screen.width<screen.availWidth?!0:screen.height<screen.availHeight?!0:!1},getHasLiedOs:function(){var n,i=navigator.userAgent,r=navigator.oscpu,t=navigator.platform,u;return(n=i.toLowerCase().indexOf("windows phone")>=0?"Windows Phone":i.toLowerCase().indexOf("win")>=0?"Windows":i.toLowerCase().indexOf("android")>=0?"Android":i.toLowerCase().indexOf("linux")>=0?"Linux":i.toLowerCase().indexOf("iPhone")>=0||i.toLowerCase().indexOf("iPad")>=0?"iOS":i.toLowerCase().indexOf("mac")>=0?"Mac":"Other",u="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?!0:!1,u&&"Windows Phone"!==n&&"Android"!==n&&"iOS"!==n&&"Other"!==n)?!0:"undefined"!=typeof r&&(r.toLowerCase().indexOf("win")>=0&&"Windows"!==n&&"Windows Phone"!==n||r.toLowerCase().indexOf("linux")>=0&&"Linux"!==n&&"Android"!==n||r.toLowerCase().indexOf("mac")>=0&&"Mac"!==n&&"iOS"!==n||0===r.toLowerCase().indexOf("win")&&0===r.toLowerCase().indexOf("linux")&&r.toLowerCase().indexOf("mac")>=0&&"other"!==n)?!0:t.toLowerCase().indexOf("win")>=0&&"Windows"!==n&&"Windows Phone"!==n?!0:(t.toLowerCase().indexOf("linux")>=0||t.toLowerCase().indexOf("android")>=0||t.toLowerCase().indexOf("pike")>=0)&&"Linux"!==n&&"Android"!==n?!0:(t.toLowerCase().indexOf("mac")>=0||t.toLowerCase().indexOf("ipad")>=0||t.toLowerCase().indexOf("ipod")>=0||t.toLowerCase().indexOf("iphone")>=0)&&"Mac"!==n&&"iOS"!==n?!0:0===t.toLowerCase().indexOf("win")&&0===t.toLowerCase().indexOf("linux")&&t.toLowerCase().indexOf("mac")>=0&&"other"!==n?!0:"undefined"==typeof navigator.plugins&&"Windows"!==n&&"Windows Phone"!==n?!0:!1},getHasLiedBrowser:function(){var n,t=navigator.userAgent,u=navigator.productSub,i,r;if((n=t.toLowerCase().indexOf("firefox")>=0?"Firefox":t.toLowerCase().indexOf("opera")>=0||t.toLowerCase().indexOf("opr")>=0?"Opera":t.toLowerCase().indexOf("chrome")>=0?"Chrome":t.toLowerCase().indexOf("safari")>=0?"Safari":t.toLowerCase().indexOf("trident")>=0?"Internet Explorer":"Other",("Chrome"===n||"Safari"===n||"Opera"===n)&&"20030107"!==u)||(i=eval.toString().length,37===i&&"Safari"!==n&&"Firefox"!==n&&"Other"!==n)||39===i&&"Internet Explorer"!==n&&"Other"!==n||33===i&&"Chrome"!==n&&"Opera"!==n&&"Other"!==n)return!0;try{throw"a";}catch(f){try{f.toSource();r=!0}catch(e){r=!1}}return r&&"Firefox"!==n&&"Other"!==n?!0:!1},isCanvasSupported:function(){var n=document.createElement("canvas");return!(!n.getContext||!n.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var n=document.createElement("canvas"),t=n.getContext&&(n.getContext("webgl")||n.getContext("experimental-webgl"));return!!window.WebGLRenderingContext&&!!t},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName?!0:"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?!0:!1},hasSwfObjectLoaded:function(){return"undefined"!=typeof window.swfobject},hasMinFlashInstalled:function(){return swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var n=document.createElement("div");n.setAttribute("id",this.options.swfContainerId);document.body.appendChild(n)},loadSwfAndDetectFonts:function(n){var t="___fp_swf_loaded",i,r,u;window[t]=function(t){n(t)};i=this.options.swfContainerId;this.addFlashDivNode();r={onReady:t};u={allowScriptAccess:"always",menu:"false"};swfobject.embedSWF(this.options.swfPath,i,"1","1","9.0.0",!1,r,u,{})},getWebglCanvas:function(){var t=document.createElement("canvas"),n=null;try{n=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(i){}return n||(n=null),n},each:function(n,t,i){var r,f,u;if(null!==n)if(this.nativeForEach&&n.forEach===this.nativeForEach)n.forEach(t,i);else if(n.length===+n.length){for(r=0,f=n.length;f>r;r++)if(t.call(i,n[r],r,n)==={})return}else for(u in n)if(n.hasOwnProperty(u)&&t.call(i,n[u],u,n)==={})return},map:function(n,t,i){var r=[];return null==n?r:this.nativeMap&&n.map===this.nativeMap?n.map(t,i):(this.each(n,function(n,u,f){r[r.length]=t.call(i,n,u,f)}),r)},x64Add:function(n,t){n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=n[3]+t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=n[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=n[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=n[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(n,t){n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=n[3]*t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=n[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=n[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=n[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=n[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=n[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=n[0]*t[3]+n[1]*t[2]+n[2]*t[1]+n[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(n,t){return t%=64,32===t?[n[1],n[0]]:32>t?[n[0]<<t|n[1]>>>32-t,n[1]<<t|n[0]>>>32-t]:(t-=32,[n[1]<<t|n[0]>>>32-t,n[0]<<t|n[1]>>>32-t])},x64LeftShift:function(n,t){return t%=64,0===t?n:32>t?[n[0]<<t|n[1]>>>32-t,n[1]<<t]:[n[1]<<t-32,0]},x64Xor:function(n,t){return[n[0]^t[0],n[1]^t[1]]},x64Fmix:function(n){return n=this.x64Xor(n,[0,n[0]>>>1]),n=this.x64Multiply(n,[4283543511,3981806797]),n=this.x64Xor(n,[0,n[0]>>>1]),n=this.x64Multiply(n,[3301882366,444984403]),n=this.x64Xor(n,[0,n[0]>>>1])},x64hash128:function(n,t){n=n||"";t=t||0;for(var h=n.length%16,c=n.length-h,f=[0,t],e=[0,t],r=[0,0],u=[0,0],o=[2277735313,289559509],s=[1291169091,658871167],i=0;c>i;i+=16)r=[255&n.charCodeAt(i+4)|(255&n.charCodeAt(i+5))<<8|(255&n.charCodeAt(i+6))<<16|(255&n.charCodeAt(i+7))<<24,255&n.charCodeAt(i)|(255&n.charCodeAt(i+1))<<8|(255&n.charCodeAt(i+2))<<16|(255&n.charCodeAt(i+3))<<24],u=[255&n.charCodeAt(i+12)|(255&n.charCodeAt(i+13))<<8|(255&n.charCodeAt(i+14))<<16|(255&n.charCodeAt(i+15))<<24,255&n.charCodeAt(i+8)|(255&n.charCodeAt(i+9))<<8|(255&n.charCodeAt(i+10))<<16|(255&n.charCodeAt(i+11))<<24],r=this.x64Multiply(r,o),r=this.x64Rotl(r,31),r=this.x64Multiply(r,s),f=this.x64Xor(f,r),f=this.x64Rotl(f,27),f=this.x64Add(f,e),f=this.x64Add(this.x64Multiply(f,[0,5]),[0,1390208809]),u=this.x64Multiply(u,s),u=this.x64Rotl(u,33),u=this.x64Multiply(u,o),e=this.x64Xor(e,u),e=this.x64Rotl(e,31),e=this.x64Add(e,f),e=this.x64Add(this.x64Multiply(e,[0,5]),[0,944331445]);switch(r=[0,0],u=[0,0],h){case 15:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+14)],48));case 14:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+13)],40));case 13:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+12)],32));case 12:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+11)],24));case 11:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+10)],16));case 10:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+9)],8));case 9:u=this.x64Xor(u,[0,n.charCodeAt(i+8)]);u=this.x64Multiply(u,s);u=this.x64Rotl(u,33);u=this.x64Multiply(u,o);e=this.x64Xor(e,u);case 8:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+7)],56));case 7:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+6)],48));case 6:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+5)],40));case 5:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+4)],32));case 4:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+3)],24));case 3:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+2)],16));case 2:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+1)],8));case 1:r=this.x64Xor(r,[0,n.charCodeAt(i)]);r=this.x64Multiply(r,o);r=this.x64Rotl(r,31);r=this.x64Multiply(r,s);f=this.x64Xor(f,r)}return f=this.x64Xor(f,[0,n.length]),e=this.x64Xor(e,[0,n.length]),f=this.x64Add(f,e),e=this.x64Add(e,f),f=this.x64Fmix(f),e=this.x64Fmix(e),f=this.x64Add(f,e),e=this.x64Add(e,f),("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(e[0]>>>0).toString(16)).slice(-8)+("00000000"+(e[1]>>>0).toString(16)).slice(-8)}},n}),function(){"use strict";var u,t,i,v,f,s,e,l,r,h,c,n,a,o;r={};i=document;c=!1;n="active";e=6e4;s=!1;t=function(){var t,r,n,u,f,i;return t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)},f=function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},i={},n="__ceGUID",r=function(t,r,u){return t[n]=undefined,t[n]||(t[n]="ifvisible.object.event.identifier"),i[t[n]]||(i[t[n]]={}),i[t[n]][r]||(i[t[n]][r]=[]),i[t[n]][r].push(u)},u=function(t,r,u){var s,f,h,e,o;if(t[n]&&i[t[n]]&&i[t[n]][r]){for(e=i[t[n]][r],o=[],f=0,h=e.length;f<h;f++)s=e[f],o.push(s(u||{}));return o}},{add:r,fire:u}}();u=function(){var n;return n=!1,function(t,i,r){return n||(n=t.addEventListener?function(n,t,i){return n.addEventListener(t,i,!1)}:t.attachEvent?function(n,t,i){return n.attachEvent("on"+t,i,!1)}:function(n,t,i){return n["on"+t]=i}),n(t,i,r)}}();v=function(n,t){var r;return i.createEventObject?n.fireEvent("on"+t,r):(r=i.createEvent("HTMLEvents"),r.initEvent(t,!0,!0),!n.dispatchEvent(r))};l=function(){var r,u,t,f,n;for(f=void 0,n=3,t=i.createElement("div"),r=t.getElementsByTagName("i"),u=function(){return t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->",r[0]};u();)continue;return n>4?n:f}();f=!1;o=void 0;typeof i.hidden!="undefined"?(f="hidden",o="visibilitychange"):typeof i.mozHidden!="undefined"?(f="mozHidden",o="mozvisibilitychange"):typeof i.msHidden!="undefined"?(f="msHidden",o="msvisibilitychange"):typeof i.webkitHidden!="undefined"&&(f="webkitHidden",o="webkitvisibilitychange");a=function(){var f,t;return f=!1,t=function(){return clearTimeout(f),n!=="active"&&r.wakeup(),s=+new Date,f=setTimeout(function(){if(n==="active")return r.idle()},e)},t(),u(i,"mousemove",t),u(i,"keyup",t),u(window,"scroll",t),r.focus(t)};h=function(){var n;return c?!0:(f===!1?(n="blur",l<9&&(n="focusout"),u(window,n,function(){return r.blur()}),u(window,"focus",function(){return r.focus()})):u(i,o,function(){return i[f]?r.blur():r.focus()},!1),c=!0,a())};r={setIdleDuration:function(n){return e=n*1e3},getIdleDuration:function(){return e},getIdleInfo:function(){var i,t;return i=+new Date,t={},n==="idle"?(t.isIdle=!0,t.idleFor=i-s,t.timeLeft=0,t.timeLeftPer=100):(t.isIdle=!1,t.idleFor=i-s,t.timeLeft=s+e-i,t.timeLeftPer=(100-t.timeLeft*100/e).toFixed(2)),t},focus:function(i){return typeof i=="function"?this.on("focus",i):(n="active",t.fire(this,"focus"),t.fire(this,"wakeup"),t.fire(this,"statusChanged",{status:n}))},blur:function(i){return typeof i=="function"?this.on("blur",i):(n="hidden",t.fire(this,"blur"),t.fire(this,"idle"),t.fire(this,"statusChanged",{status:n}))},idle:function(i){return typeof i=="function"?this.on("idle",i):(n="idle",t.fire(this,"idle"),t.fire(this,"statusChanged",{status:n}))},wakeup:function(i){return typeof i=="function"?this.on("wakeup",i):(n="active",t.fire(this,"wakeup"),t.fire(this,"statusChanged",{status:n}))},on:function(n,i){return h(),t.add(this,n,i)},onEvery:function(t,i){var r;return h(),r=setInterval(function(){if(n==="active")return i()},t*1e3),{stop:function(){return clearInterval(r)},code:r,callback:i}},now:function(){return h(),n==="active"}};window.ifvisible=r}.call(this);var isDebug=" + Helper.Constants.IsDebug.ToString().ToLower() + @",fingerprint="",userId="",currentPageID="",currentPageUrl="",currentPageTitle="",userName="",startFocusTime=undefined,lastUserInteraction=undefined,oneMinuteInMilliseconds=6e4,minTimeSpent=3e3,maxTimeSpent=oneMinuteInMilliseconds*5,maxIdleTimeSpent=oneMinuteInMilliseconds*1,focusCheckInterval=oneMinuteInMilliseconds*.5,sharePointUsernameControlId="zz4_Menu";$(document).ready(function(){ifvisible.setIdleDuration(maxIdleTimeSpent);setInterval(focusCheck,focusCheckInterval);ifvisible.now()&&(isDebug&&console.log("Window is visible"),startFocus());ifvisible.on("statusChanged",function(n){isDebug&&console.log("Window status has changed to: "+n.status);n.status==="active"?startFocus():stopFocus()});ifvisible.on("focus",function(){isDebug&&console.log("Window is on focus (ifvisible focus event)");startFocus()});$(window).on("focus",function(){isDebug&&console.log("Window is on focus (focus event)");startFocus()});$(window).on("scroll",function(){isDebug&&console.log("Window is on focus (scroll event)");startFocus()});ifvisible.on("wakeup",function(){isDebug&&console.log("Window is on wakeup");startFocus()});ifvisible.on("blur",function(){isDebug&&console.log("Window is on blur");stopFocus()});$(window).on("blur",function(){isDebug&&console.log("Window is on blur");stopFocus()});ifvisible.on("idle",function(){isDebug&&console.log("Window is on idle");stopFocus()});$(window).on("beforeunload",function(){isDebug&&console.log("Window beforeunload");stopFocus()})})