if(typeof ncbi==="undefined")ncbi={};ncbi.sgAppsWithScrolling=[{ncbi_app:"entrez",ncbi_db:"gene",ncbi_report:"full_report"},{ncbi_app:"entrez",ncbi_db:"pmc"},{ncbi_app:"smartblast"},{ncbi_app:"primerblast"},function(){var P=ncbi.sg.getInstance();return!!(P._cachedVals.ncbi_app&&P._cachedVals.ncbi_app.value&&P._cachedVals.ncbi_app.value=="pmc"&&!document.getElementById("jr"))}];
(function(){function P(a){return ncbi.sg._urls.getAttrFromStr("jsevent",a)}function X(a){for(var b=ncbi.sg.reservedParams,c=0;c<b.length;c++)if(a==b[c])return true;return false}function Y(a,b){b=ncbi.sg._urls.getDataObj(b);var c={},e=ncbi.sg.pingCallbacks;a=typeof e[a]!=="undefined"?e[a]:[];for(e=0;e<a.length;e++)ncbi.sg._urls.addDataToObj(c,a[e](b));for(var g in c)if(X(g)){delete c[g];console.warn("You tried to add param '"+g+"' to ping data, but that parameter is reserved.")}return c}if(typeof ncbi===
"undefined")ncbi={};if(ncbi.sg)typeof console!=="undefined"&&console.warn&&console.warn("The logging JavaScript was added twice in the document. Please include it once.");else{ncbi.sg=function(){};ncbi.sg.getInstance=function(){if(!ncbi.sg._instance)ncbi.sg._instance=new ncbi.sg;return ncbi.sg._instance};ncbi.sg._instance=null;ncbi.sg._version="53";(function(){var a=navigator.cookieEnabled?true:false;if(typeof navigator.cookieEnabled==="undefined"&&!a){document.cookie="testcookie";a=document.cookie.indexOf("testcookie")!==
-1?true:false}ncbi.sg.isCookieEnabled=a;ncbi.sg.isClickingEnabled=typeof __ncbi_sg_isClickingEnabled==="undefined"?true:!!__ncbi_sg_isClickingEnabled;ncbi.sg.calcXY=typeof __ncbi_sg_calcXY==="undefined"?true:!!__ncbi_sg_calcXY;ncbi.sg.gaID=(typeof __ncbi_sg_gaMode==="undefined"?null:__ncbi_sg_gaMode)=="dev"?"UA-68648221-2":"UA-68648221-3";a={};for(var b in window){var c=b.match(/^__ncbi_sg_pingCallbacks_(\w+)_(.+)$/);if(c&&typeof c[1]!=="undefined"){c=c[1];var e=window[b];a[c]=a[c]||[];a[c].push(e)}}ncbi.sg.pingCallbacks=
a})();ncbi.sg.appLogIgnore=["ncbi_sessionid","ncbi_clickdisabled"];ncbi.sg.reservedParams=["jsevent","sgSource","sgVersion","hasScrolled","jseventms","ncbi_phid","ncbi_timeonpage","ncbi_timesinceload","ncbi_timesincenavstart"];ncbi.sg.prototype={init:function(){this.isProcessRunning=true;this._setScrollingEnabled();if(this._cachedVals.ncbi_db&&this._cachedVals.ncbi_db.value.toLowerCase()=="pubmed"&&this._cachedVals.ncbi_report&&this._cachedVals.ncbi_report.value.toLowerCase()=="abstract"&&this._cachedVals.ncbi_resultcount&&
this._cachedVals.ncbi_resultcount.value.toLowerCase()=="1"||this._cachedVals.ncbi_db&&this._cachedVals.ncbi_db.value.toLowerCase()=="pmc"&&this._cachedVals.ncbi_report&&this._cachedVals.ncbi_report.value.toLowerCase()=="record"&&this._cachedVals.ncbi_type&&this._cachedVals.ncbi_type.value.toLowerCase()=="fulltext")ncbi.sg.isHoverEnabled=true;this._setUpPathParts();this._addOnScrollListeners();var a=this;this._sidPromise.then(function(){a._setUpCustomProps();a._send("init");a._scheduleDOMReadyPing();
a._sendPrev();a._addPrintPing()});ncbi.sg.isScrollingEnabled&&this._setBeforeScrollDetails()},_vals:{},_cachedVals:{},_hasInitRun:false,_readyPinged:false,_linkObjs:[],_pathParts:{part1:"",part2:"",part3:"",part4:""},_scheduleDOMReadyPing:function(){var a=this,b=function(){return typeof jQuery!=="undefined"&&typeof jQuery.ui!=="undefined"&&typeof jQuery.ui.jig!=="undefined"?typeof jQuery.ui.jig.version!=="undefined"&&jQuery.ui.jig.version?jQuery.ui.jig.version:"unknown":"unknown"},c=function(){var n=
{},r=jQuery.ui.jig._foundWidgets;for(var E in r)n["jigWidget_"+E]=r[E];n.jigVersion=b();return n},e=function(n){var r=ncbi.sg.getInstance();r.storeAllHeadings();for(var E=r.getVisibleHeadingIDs(),I=[],H=0;H<E.length;H++){var N=E[H];N&&I.push(encodeURIComponent(N))}r=r.getHiddenHeadingIDs();var F=[];for(H=0;H<r.length;H++)(N=r[H])&&F.push(encodeURIComponent(N));n["visible.headingIDs"]=I.join(",");n["numVisible.headingIDs"]=E.length;n["hidden.headingIDs"]=F.join(",");n["numHidden.headingIDs"]=r.length},
g=function(){if(!a._readyPinged){var n={};if(typeof jQuery!=="undefined"&&typeof jQuery.ui!=="undefined"&&typeof jQuery.ui.jig!=="undefined"&&typeof jQuery.ui.jig.scanned!=="undefined")if(jQuery.ui.jig.scanned){n=c();n.jsevent="domready";ncbi.sg.isScrollingEnabled&&e(n);ncbi.sg._ping(n);a._readyPinged=true}else{if(typeof jQuery.ui.jig.scan!=="undefined"&&jQuery.ui.jig.scan){var r=jQuery.ui.jig.scan;jQuery.ui.jig.scan=function(){var E=r.apply(this,arguments);g();return E}}}else{n.jigVersion="nojig";
n.jsevent="domready";ncbi.sg.isScrollingEnabled&&e(n);ncbi.sg._ping(n);a._readyPinged=true}}};if(document.addEventListener){var k=function(){document.removeEventListener("DOMContentLoaded",k,false);g()};document.addEventListener("DOMContentLoaded",k)}else if(document.attachEvent){var o=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",o);g()}};document.attachEvent("onreadystatechange",o)}},_setScrollingEnabled:function(){if(typeof ncbi_isScrollingEnabled!==
"undefined")ncbi.sg.isScrollingEnabled=!!ncbi_isScrollingEnabled;else try{ncbi.sg.isScrollingEnabled=false;var a=ncbi.sgAppsWithScrolling;if(typeof a!=="undefined")for(var b=0;b<a.length;b++){var c=true;if(typeof a[b]==="function")c=a[b]();else{var e=a[b];for(var g in e)if(!this._cachedVals[g]||this._cachedVals[g].value.toLowerCase()!=e[g]){c=false;break}}if(c){ncbi.sg.isScrollingEnabled=true;break}}}catch(k){ncbi.sg.getInstance().noteEventData("jserror",{jserror:k.toString(),SELF_URL:window.location.href},
["ncbi_sessionid","ncbi_phid"])}},_setUpMetaTagValues:function(){for(var a=document.getElementsByTagName("meta"),b=0;b<a.length;b++){var c=a[b].name;c.indexOf("ncbi_")===0&&this.addEntry(c,a[b].content)}},_setUpCachedMetaTagValues:function(a){for(var b=0;b<a.length;b++){var c=this._cachedVals[a[b]];c&&this.addEntry(a[b],c.value)}},cachedNames:["ncbi_app","ncbi_db","ncbi_pcid","ncbi_pdid","ncbi_phid","ncbi_sessionid","ncbi_uidlist"],ignoreLengthRestrictions:["jserror","jserrorlocation"],addEntry:function(a,
b){if(!(b===undefined||b.length===0)){if(b.length>100&&this.ignoreLengthRestrictions.indexOf(a)===-1)b=b.substr(0,100);this._cachedVals[a]={sProp:a,value:b}}},getVal:function(a){return typeof this._cachedVals[a]!=="undefined"&&this._cachedVals[a]&&typeof this._cachedVals[a].value!=="undefined"?this._cachedVals[a].value:null},removeAllEntries:function(){for(var a={},b=this.cachedNames.length,c=0;c<b;c++){var e=this.cachedNames[c],g=this._cachedVals[e];if(g)a[e]=g}this._cachedVals=a;for(var k in this._pathParts)this._pathParts[k]=
""},_setUpCustomProps:function(){var a=this._pathParts.part1,b=this._pathParts.part2.length>0?":"+this._pathParts.part2:"",c=this._pathParts.part3.length>0?":"+this._pathParts.part3:"",e=this._pathParts.part4.length>0?":"+this._pathParts.part4:"";a={pagename:a+b+c,server:window.location.hostname,sitesect2:a+b,subsect3:a+b+c,subsect4:a+b+c+e,heir1:(a+b+c+e).replace(/:/g,"|")};for(var g in a)this.addEntry(g,a[g]);this._staticPageCheck();this._browserConfigurationSettings();this._hashCheck()},_staticPageCheck:function(){this._cachedVals.ncbi_app&&
this._cachedVals.ncbi_app.value.length>0||this.addEntry("ncbi_app","static");this._cachedVals.ncbi_pdid&&this._cachedVals.ncbi_pdid.value.length>0||this.addEntry("ncbi_pdid",(document.title||"unknown").replace(/\s+/g,""))},_getSessionId:function(){if(this._cachedVals.ncbi_sessionid&&this._cachedVals.ncbi_sessionid.value.length>0)return this._cachedVals.ncbi_sessionid&&this._cachedVals.ncbi_sessionid.value;else if(this._cachedVals.ncbi_sid&&this._cachedVals.ncbi_sid.value.length>0)return this._cachedVals.ncbi_sid&&
this._cachedVals.ncbi_sid.value;else{var a="",b=this.getCookie("ncbi_sid");if(b.length>0)a=b;if(a.length===0){b=this.getCookie("WebCubbyUser")||this.getCookie("WebEnv");if(b.length>0){b=unescape(b).split("@");if(b.length>1)a=b[b.length-1]}}if(a.length===0)a=null;return a}},_sessionIdCheck:function(){var a=this;if(typeof Promise==="undefined"){var b=function(){var c=a._getSessionId()||"UNK_SESSION";a.addEntry("ncbi_sessionid",c);a._prevHitCheck()};b.prototype.then=function(c){c()}}else b=Promise;a._sidPromise=
new b(function(c){var e=a._getSessionId()||"UNK_SESSION";if(!e||e=="UNK_SESSION")a.makeSessionidRequest(function(){a.addEntry("ncbi_sessionid",a._getSessionId()||"UNK_SESSION");a._prevHitCheck();c()},function(){a.addEntry("ncbi_sessionid","UNK_SESSION");a._prevHitCheck();c()});else{a.addEntry("ncbi_sessionid",e);a._prevHitCheck();c()}})},_isLoggedIn:function(){var a=this.getCookie("WebCubbyUser");return a?a.search(/logged-in=true/)!==-1:false},_isInnerLoginFrame:function(){if(j&&j=="account"){if(m&&
(m=="login-page"||m=="SigninPage"))return true;return false}return false},_isOuterLoginFrame:function(){for(var a=document.getElementsByTagName("meta"),b=false,c=false,e=0;e<a.length;e++){var g=a[e];if(g.getAttribute("name")=="ncbi_app"&&g.getAttribute("content")=="account")b=true;if(g.getAttribute("name")=="ncbi_pdid"&&g.getAttribute("content")=="login-page")c=true}return b&&c},_isLoginPage:function(){return this._isInnerLoginFrame()||this._isOuterLoginFrame()},getBrowserWidthHeight:function(){var a=
this.getViewportWidth(),b=this.getViewportHeight();return{width:a,height:b}},_browserConfigurationSettings:function(){if(ncbi.sg.calcXY){var a=this.getBrowserWidthHeight();this.addEntry("browserwidth",a.width);this.addEntry("browserheight",a.height);this.addEntry("screenwidth",screen.width);this.addEntry("screenheight",screen.height);this.addEntry("screenavailwidth",screen.availWidth);this.addEntry("screenavailheight",screen.availHeight);if(document&&document.body){var b=document.body.scrollWidth,
c=document.body.scrollHeight,e=c>a.height?"true":"false";this.addEntry("canscroll_x",b>a.width?"true":"false");this.addEntry("canscroll_y",e);this.addEntry("scrollwidth",b);this.addEntry("scrollheight",c)}}if(screen.colorDepth)this.addEntry("colorDepth",screen.colorDepth);else screen.pixelDepth&&this.addEntry("colorDepth",screen.pixelDepth)},_hashCheck:function(){var a=window.location.hash;if(a){a=a.replace("#","");this.addEntry("urlhash",a)}(a=window.location.search.match(/[?&]campaign=([^&]*)/))&&
this.addEntry("campaign",a[1])},_createPHID:function(){var a=this._cachedVals.ncbi_sessionid.value,b=a.substr(0,15)+"9"+(new Date).getTime().toString(),c=a.length;b+=a.substr(c-(32-b.length),c);a={value:b};this.addEntry("ncbi_phid",b);return a},currentPageHitId:null,currentPHIDMatchesPrev:false,_prevHitCheck:function(){var a=this.getCookie("ncbi_prevPHID"),b=this._cachedVals.ncbi_phid;a.length>0&&this.addEntry("prev_phid",a);if(!b||!b.value||b.value.length===0)b=this._createPHID();if(b.value==a)this.currentPHIDMatchesPrev=
true;this.currentPageHitId=b.value;this.setCookie("ncbi_prevPHID",b.value)},_setUpPathParts:function(){var a=this._cachedVals.ncbi_app,b=this._cachedVals.ncbi_db,c=this._cachedVals.ncbi_pdid,e=this._cachedVals.ncbi_pcid;this._pathParts.part1=a!==undefined?a.value:"";this._pathParts.part2=b!==undefined?b.value:"";this._pathParts.part3=c!==undefined?c.value:"";this._pathParts.part4=e!==undefined?e.value:""},getPerfStats:function(){var a=window.performance;if(!a)return{};var b=a.timing;if(b)b={dns:b.domainLookupEnd-
b.domainLookupStart,connect:b.connectEnd-b.connectStart,ttfb:b.responseStart-b.connectEnd,basePage:b.responseEnd-b.responseStart,frontEnd:b.loadEventStart-b.responseEnd};else return{};if(a=a.navigation){b.navType=a.type;b.redirectCount=a.redirectCount}return b},setPerfStats:function(a,b){var c=this.getPerfStats();for(var e in c){var g=c[e];if(g>=0){var k="jsperf_"+e;if(b)a[k]=g;else a.push(k+"="+g)}}},getExtraRenderStats:function(){var a={SELF_URL:encodeURIComponent(window.location.href)};if(typeof document!==
"undefined"&&typeof document.referrer!=="undefined")a.HTTP_REFERER=encodeURIComponent(document.referrer);return a},setExtraRenderStats:function(a){var b=this.getExtraRenderStats();for(var c in b)a.push(c+"="+b[c])},_addCachedVals:function(a){for(var b in this._cachedVals)ncbi.sg.appLogIgnore.indexOf(b)===-1&&a.push(b+"="+encodeURIComponent(this._cachedVals[b].value))},_addCachedValsToString:function(a){for(var b in this._cachedVals)if(ncbi.sg.appLogIgnore.indexOf(b)===-1)a=ncbi.sg._urls.addAttrToStr(b,
encodeURIComponent(this._cachedVals[b].value),a);return a},_send:function(a,b,c){if(typeof c==="undefined"||c===null)c=true;var e=[];if(a==="init"){e.push("jsevent=render");ncbi.sg.renderTime=new Date;if(typeof ncbi_startTime!=="undefined"){e.push("jsrendertime="+(ncbi.sg.renderTime-ncbi_startTime));ncbi.sg.loadTime&&e.push("jsloadtime="+(ncbi.sg.loadTime-ncbi_startTime))}this.setPerfStats(e);this.setExtraRenderStats(e);(a=ncbi.sg.getTimeSinceNavStart())&&e.push("ncbi_timesincenavstart="+a);e.push("cookieenabled="+
(ncbi.sg.isCookieEnabled?"true":"false"))}else a!=="clicknext"&&a!=="searchnext"&&a!=="unloadnext"&&this._addCachedVals(e);this._sendAl(e.join("&"),b,true,c);this._hasInitRun=true;var g=this;setTimeout(function(){g.isProcessRunning=false;g.runSGProcess()},300)},send:function(a,b){this._send(a,b,false)},_sendPrev:function(){var a=ncbi.sg.getInstance(),b;b=a.getCookie("prevselfurl")!=document.referrer?"false":"true";var c=a.getCookie("clicknext");if(c){if(!a.currentPHIDMatchesPrev){c=ncbi.sg._urls.addAttrToStr("directnav",
b,c);ncbi.sg._ping(c)}a.setCookie("clicknext","")}if(c=a.getCookie("prevsearch")){if(!a.currentPHIDMatchesPrev){c=ncbi.sg._urls.addAttrToStr("directnav",b,c);ncbi.sg._ping(c)}a.setCookie("prevsearch","")}if(c=a.getCookie("unloadnext")){if(!a.currentPHIDMatchesPrev){c=ncbi.sg._urls.addAttrToStr("directnav",b,c);ncbi.sg._ping(c)}a.setCookie("unloadnext","")}a.setCookie("prevselfurl","")},_isGADirectnav:function(){return this.getCookie("ncbi_is_ga")=="true"},_setGACookie:function(){ncbi.sg.ga_track?
this.setCookie("ncbi_is_ga","true"):this.setCookie("ncbi_is_ga","false")},_unsetGACookie:function(){this.setCookie("ncbi_is_ga","")},_getCachedValsData:function(){var a={};for(var b in this._cachedVals)if(ncbi.sg.appLogIgnore.indexOf(b)===-1)a[b]=encodeURIComponent(this._cachedVals[b].value);return a},_sendAl:function(a,b,c,e){function g(){reqURL=ncbi.sg.getStatUrl(a);r.makeRequest(reqURL,function(){typeof b==="function"&&b()},c)}if(typeof e==="undefined"||e===null)e=true;var k=P(a),o=this._getCachedValsData();
k=Y(k,a);if(a.indexOf("jseventms")===-1)a+="&jseventms="+ncbi.sg.getInstance().getMillisecondsSinceSunday();a.match(/jsevent=(search|click|unload)next/i)||(a=ncbi.sg._urls.addDataToStr(o,a));if(a.match(/jsevent=search/i)&&!a.match(/jsevent=searchnext/i)){o=ncbi.sg.addTimeonpageToAr([]);for(var n=0;n<o.length;n++)a+="&"+o[n];a.match(/jsevent=searchnext/i)||(a+="&eventid="+ncbi.sg.getEventId());o=a.replace(/jsevent=search(next)?/i,"jsevent=searchnext");this.setCookie("prevselfurl",window.location.href,
null);this._storeNext("prevsearch",o,null,e)}else if(a.match(/jsevent=click/i)&&!a.match(/jsevent=clicknext/i)){o=ncbi.sg.addTimeonpageToAr([]);for(n=0;n<o.length;n++)a+="&"+o[n];a+="&eventid="+ncbi.sg.getEventId();o=a.replace(/jsevent=click/i,"jsevent=clicknext");this.setCookie("prevselfurl",window.location.href,null);this._storeNext("clicknext",o,null,e)}else if(a.match(/jsevent=unload/i)&&!a.match(/jsevent=unloadnext/i)){o=ncbi.sg.addTimeonpageToAr([]);for(n=0;n<o.length;n++)a+="&"+o[n];a+="&eventid="+
ncbi.sg.getEventId();o=a.replace(/jsevent=unload/i,"jsevent=unloadnext");this.setCookie("prevselfurl",window.location.href,null);this._storeNext("unloadnext",o,null,e)}a+="&sgVersion="+ncbi.sg._version;if(a.indexOf("sgSource")===-1)a=this._setSgSource(a,e);a=ncbi.sg._urls.addDataToStr(k,a);var r=this;this._sidPromise.then(function(){a=r._addCachedValsToString(a);g()})},makeSessionidRequest:function(a,b){var c=document.createElement("iframe");url=typeof ncbi_signinUrl!=="undefined"?ncbi_signinUrl:
"/portal/signin.fcgi?cmd=Nop";c.style.display="none";c.style.width="1px";c.style.height="1px";c.onload=function(e){console.info("onload fired");console.info(e);a();document.body.removeChild(c)};c.onerror=function(e){console.info("onerror fired");console.info(e);b();document.body.removeChild(c)};c.setAttribute("src",url);document.body.appendChild(c);setTimeout(b,1E3)},makeRequest:function(a,b,c){typeof ncbi_pingWithImage!=="undefined"&&ncbi_pingWithImage?this.makeImgRequest(reqURL,function(){typeof callbackFnc===
"function"&&callbackFnc()},c):this.makeAjaxCall(reqURL,function(){typeof callbackFnc==="function"&&callbackFnc()},c);this._pushPingFired(a)},sendAl:function(a,b,c){this._sendAl(a,b,c,false)},_processingQueue:[],isProcessRunning:false,addSGProcess:function(a){this._processingQueue.push(a)},getSGProcess:function(a){return this._processingQueue.shift(a)},runSGProcess:function(){if(this.isProcessRunning||this._processingQueue.length===0||!this._hasInitRun)return false;this.isProcessRunning=true;this.removeAllEntries();
var a=this.getSGProcess();this._setUpCachedMetaTagValues(a.metadata);this.addEntry("jsevent",a.eventName);for(var b in a.props)this.addEntry(b,a.props[b]);this._send(a.eventName,a.callbackFnc);var c=this;setTimeout(function(){c.isProcessRunning=false;c.runSGProcess()},300)},noteEventData:function(a,b,c,e){var g=this;this._sidPromise.then(function(){g.addSGProcess({eventName:a,props:b,metadata:c,callback:e});g.runSGProcess()})},_setCookie:function(a,b,c){if(window.sessionStorage)try{sessionStorage.setItem(a,
b)}catch(e){}var g=typeof __ncgi_sgCookieDomain!=="undefined"?__ncbi_sgCookieDomain:".ncbi.nlm.nih.gov";document.cookie=a+"="+escape(b)+(c===0?"":"; expires="+c)+"; domain="+escape(g)+"; path=/"},setCookie:function(a,b,c){if(c===0)c=0;else{var e=new Date;c!==null&&e.setDate(e.getDate()+c);c=e.toGMTString()}return this._setCookie(a,b,c)},_setSgSource:function(a,b){a+="&sgSource="+(b?"native":"api");return a},_storeNext:function(a,b,c,e){if(typeof e==="undefined"||e===null)e=true;b=this._setSgSource(b,
e);this.setCookie(a,b,c)},getCookie:function(a){var b;if(window.sessionStorage){try{b=sessionStorage.getItem(a)||""}catch(c){b=""}if(b.length>0)return b}if(document.cookie.length>0){b=document.cookie.indexOf(a+"=");if(b!==-1){b=b+a.length+1;a=document.cookie.indexOf(";",b);if(a===-1)a=document.cookie.length;return unescape(document.cookie.substring(b,a))}}return""},getTransport:function(){var a=null;if(window.XMLHttpRequest)try{a=new XMLHttpRequest;this.getTransport=function(){return new XMLHttpRequest}}catch(b){a=
null}if(window.ActiveXObject&&a===null)try{a=new ActiveXObject("Msxml2.XMLHTTP");this.getTransport=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP");this.getTransport=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(e){a=false}}if(a===null)this.getTransport=function(){return null};return this.getTransport()},_shouldStorePing:function(a){return a.search(/jsevent=(click|search|unload)next/)!==-1||(a.search("jsevent=render")!==
-1||a.search("jsevent=domready")!==-1||a.search("jsevent=jserror")!==-1)&&a.search("sgSource=api")===-1},_pushPingFired:function(a){this._shouldStorePing(a)&&ncbi.sg.pingsFired.push(a)},_pushPingSucceeded:function(a){this._shouldStorePing(a)&&ncbi.sg.pingsSucceeded.push(a)},makeAjaxCall:function(a,b,c){var e=this,g=this.getTransport();g._ncbi_skipOverride=true;g.open("GET",a,c);if(c)g.onreadystatechange=function(){if(g.readyState===4){ncbi.sg.outstandingPings-=1;e._pushPingSucceeded(a);b(g)}};ncbi.sg.lastPing=
g;ncbi.sg.outstandingPings+=1;g.send(null);return g},makeImgRequest:function(a,b){var c=this,e=document.createElement("img");e.setAttribute("src",a);e.style.display="none";e.onload=function(){if(!this.complete||typeof this.naturalWidth==="undefined"||this.naturalWidth==0)console.warn("could not load stat img");else{c._pushPingSucceeded(a);b()}ncbi.sg.outstandingPings-=1;document.body.removeChild(e)};ncbi.sg.outstandingPings+=1;document.body.appendChild(e)},scrollDetails:{maxScroll_x:0,maxScroll_y:0,
currScroll_x:0,currScroll_y:0,hasScrolled:false},scrollEventDetails:{xTenths:0,yTenths:0,xMax:0,yMax:0},_visibleHeadings:[],_hiddenHeadings:[],_getScrollXYPx:function(){return[window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0]},_getScrollXY:function(){var a=this.getViewportHeight(),b=this.getViewportWidth(),c=document.body.scrollHeight,e=document.body.scrollWidth,g=this._getScrollXYPx(),
k=Math.round(g[1]/a*10)/10;return{xRel:Math.round(g[0]/b*10)/10,yRel:k,viewportHeight:a,viewportWidth:b,pageHeight:c,pageWidth:e}},_addOnScrollListeners:function(){var a=this,b=function(){if(ncbi.sg.isScrollingEnabled){a._setScrollDetails();a.scrollDetails.hasScrolled=true;a._sidPromise.then(function(){a._addScrollEvent()})}else{a._setScrollDetails();a.scrollDetails.hasScrolled=true}if(ncbi.sg.ga_track)if(ncbi.sg.calcXY)if(a.scrollDetails.maxScroll_y>400)if(!ncbi.sg._hasLoggedGAScroll){ncbi.sg.getGA()("send",
"event","scroll");ncbi.sg._hasLoggedGAScroll=true}};if(window.addEventListener)window.addEventListener("scroll",b);else window.attachEvent&&document.attachEvent("onscroll",b)},getViewportHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!==null?document.body.clientHeight:"NA"},getViewportWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&
document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!==null?document.body.clientWidth:"NA"},_setScrollDetails:function(){if(ncbi.sg.calcXY){this.scrollDetails.currScroll_y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;this.scrollDetails.currScroll_x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.getViewportWidth();this.getViewportHeight();if(this.scrollDetails.maxScroll_y<this.scrollDetails.currScroll_y)this.scrollDetails.maxScroll_y=
this.scrollDetails.currScroll_y;if(this.scrollDetails.maxScroll_x<this.scrollDetails.currScroll_x)this.scrollDetails.maxScroll_x=this.scrollDetails.currScroll_x}},isVisible:function(a){var b=this.findEffectiveStyleProperty(a,"visibility");a=this._isDisplayed(a);return b!="hidden"&&a},_isDisplayed:function(a){if(this.findEffectiveStyleProperty(a,"display")=="none")return false;if(a.parentNode.style)return this._isDisplayed(a.parentNode);return true},findEffectiveStyleProperty:function(a,b){var c=this.findEffectiveStyle(a)[b];
if(c=="inherit"&&a.parentNode.style)return this.findEffectiveStyleProperty(a.parentNode,b);return c},findEffectiveStyle:function(a){if(a.style!=undefined){if(window.getComputedStyle)return window.getComputedStyle(a,null);if(a.currentStyle)return a.currentStyle;if(window.document.defaultView&&window.document.defaultView.getComputedStyle)return window.document.defaultView.getComputedStyle(a,null);return null}},findElementPos:function(a,b,c){var e=0,g=0;if(a.offsetLeft)e+=parseInt(a.offsetLeft);if(a.offsetTop)g+=
parseInt(a.offsetTop);if(a.scrollTop&&a.scrollTop>0){g-=parseInt(a.scrollTop);c=true}if(a.scrollLeft&&a.scrollLeft>0){e-=parseInt(a.scrollLeft);b=true}if(a.offsetParent){b=this.findElementPos(a.offsetParent,b,c);if(b==-1)return-1;e+=b[0];g+=b[1]}else if(a.ownerDocument){var k=a.ownerDocument.defaultView;if(!k&&a.ownerDocument.parentWindow)k=a.ownerDocument.parentWindow;if(k){var o=k.pageXOffset!==undefined?k.pageXOffset:(a.document.documentElement||a.document.body.parentNode||a.document.body).scrollLeft;
a=k.pageYOffset!==undefined?k.pageYOffset:(a.document.documentElement||a.document.body.parentNode||a.document.body).scrollTop;if(!c&&a&&a>0)g-=parseInt(a);if(!b&&o&&o>0)e-=parseInt(o)}}return[e,g]},getJoinedData:function(a){var b=[];for(var c in a)b.push(c+"="+encodeURIComponent(a[c]));return b.join("&")},addScrollHeadingData:function(a,b){var c=this.scrollEventDetails.headings;if(c){a["numHeadings."+this._scrollOrder+".scrollInfo"]=c.length;for(var e=0;e<c.length;e++){var g=c[e];if(g.visible){var k=
{};if(g.innerText)k["innerText."+g.index+".headings."+this._scrollOrder+".scrollInfo"]=g.innerText;if(g.id)k["id."+g.index+".headings."+this._scrollOrder+".scrollInfo"]=g.id;k["tagName."+g.index+".headings."+this._scrollOrder+".scrollInfo"]=g.tagName;b=b?b:1800;this.getJoinedData(a).length+this.getJoinedData(k).length<b&&ncbi.sg._urls.addDataToObj(a,k)}}}return a},storeAllHeadings:function(){for(var a=[],b=[],c=document.getElementsByTagName("*"),e=-1,g=0;g<c.length;g++){for(var k=c[g],o=false,n=k.tagName.toLowerCase(),
r=0;r<7;r++)if(n=="h"+r)o=true;if(o){e+=1;r=this.findElementPos(k);o=r[1];r=r[0];var E=k.offsetHeight,I=k.offsetWidth,H=this.getViewportHeight(),N=this.getViewportWidth(),F={},d=k.getAttribute("id")||k.id;if(d)F.id=d;if(d=(k.getAttribute("innerText")||k.innerText||k.getAttribute("textContent")||k.textContent||"").replace(/^\s+|\s+$/g,""))F.innerText=d.substring(0,50);F.index=e;F.tagName=n;n=false;if(o+E>=0&&o<=H&&r+I>=0&&r<=N)if(this.isVisible(k))n=true;(F.visible=n)?a.push(F):b.push(F)}}this._visibleHeadings=
a;this._hiddenHeadings=b},getVisibleHeadings:function(){return this._visibleHeadings},getHiddenHeadings:function(){return this._hiddenHeadings},getVisibleHeadingIDs:function(){for(var a=this.getVisibleHeadings(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b},getHiddenHeadingIDs:function(){for(var a=this.getHiddenHeadings(),b=[],c=0;c<a.length;c++)b.push(a[c].id);return b},_setBeforeScrollDetails:function(a){this._lastScroll=a?a:null;if(ncbi.sg.calcXY){a=this._getScrollXY();var b=a.yRel;this.scrollEventDetails.xTenths=
Math.round(a.xRel*10);this.scrollEventDetails.yTenths=Math.round(b*10);this.scrollEventDetails.xMax=Math.max(this.scrollEventDetails.xTenths,this.scrollEventDetails.xMax);this.scrollEventDetails.yMax=Math.max(this.scrollEventDetails.yTenths,this.scrollEventDetails.yMax)}this.storeAllHeadings();this.scrollEventDetails.headings=this.getVisibleHeadings()},getScrollDetails:function(a,b){if(!ncbi.sg.isScrollingEnabled)if(ncbi.sg.calcXY){this._setScrollDetails();return this.scrollDetails}else return{};
var c=this.scrollEventDetails;c.tstamp=(new Date).getTime();var e=this._getScrollXY(),g=null;if(b||!this._lastScroll||c.tstamp-this._lastScroll>1E3){this._scrollOrder=this._scrollOrder!=undefined?this._scrollOrder+1:0;if(ncbi.sg.calcXY)var k="yTenths."+this._scrollOrder+".scrollInfo",o="xTenths."+this._scrollOrder+".scrollInfo",n="maxXTenths."+this._scrollOrder+".scrollInfo",r="maxYTenths."+this._scrollOrder+".scrollInfo";b={};b["duration."+this._scrollOrder+".scrollInfo"]=this._lastScroll?c.tstamp-
this._lastScroll:new Date-ncbi.sg.loadTime;if(ncbi.sg.calcXY){b[o]=this.scrollEventDetails.xTenths;b[k]=this.scrollEventDetails.yTenths;b[n]=this.scrollEventDetails.xMax;b[r]=this.scrollEventDetails.yMax;b["viewportHeight."+this._scrollOrder+".scrollInfo"]=e.viewportHeight;b["viewportWidth."+this._scrollOrder+".scrollInfo"]=e.viewportWidth;b["maxPossibleScrollTenthsY."+this._scrollOrder+".scrollInfo"]=Math.round((e.pageHeight/e.viewportHeight-1)*10);b["maxPossibleScrollTenthsX."+this._scrollOrder+
".scrollInfo"]=Math.round((e.pageWidth/e.viewportWidth-1)*10)}g=b=this.addScrollHeadingData(b,a)}this._setBeforeScrollDetails(c.tstamp);return g},getScrollDetailsAr:function(a,b){var c=[];a=this.getScrollDetails(a,b);for(var e in a)c.push(e+"="+encodeURIComponent(a[e]));return c},addScrollDetailsAr:function(a,b,c){b=this.getScrollDetailsAr(b,c);for(c=0;c<b.length;c++)a.push(b[c])},addScrollDetails:function(a,b,c){b=this.getScrollDetails(b,c);for(var e in b)a[e]=b[e]},_addScrollEvent:function(){try{var a=
this.getScrollDetails();if(a){a.jsevent="scroll";ncbi.sg._ping(a)}}catch(b){ncbi.sg.getInstance().noteEventData("jserror",{jserror:b.toString(),SELF_URL:window.location.href},["ncbi_sessionid","ncbi_phid"])}},_addPrintPing:function(){function a(){var e=document.createElement("style");e.type="text/css";var g=document.createElement("style");g.type="text/css";g.media="print";for(var k=["jsevent=print"],o=0;o<b.cachedNames.length;o++){var n=b.cachedNames[o],r=b._cachedVals[n];r&&n!=="ncbi_sessionid"&&
k.push(n+"="+encodeURIComponent(r.value))}k=".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }.print-log li { list-style-image: url('"+ncbi.sg.getStatUrl(k.join("&"))+"'); }";if(g.styleSheet){g.styleSheet.cssText=k;e.styleSheet.cssText=".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }"}else{g.appendChild(document.createTextNode(k));e.appendChild(document.createTextNode(".print-log { position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden; }"))}k=
document.getElementsByTagName("head")[0];k.appendChild(g);k.appendChild(e);e=document.createElement("ul");e.className="print-log";g=document.createElement("li");e.appendChild(g);document.body.appendChild(e)}var b=this;if(typeof jQuery!=="undefined")jQuery(a);else{var c=window.onload;window.onload=function(e){c&&c(e);a()}}},getMillisecondsSinceSunday:function(){var a=new Date,b=new Date;b.setDate(b.getDate()-b.getDay());b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);return(a-b).toString(36)},
addLinkObjs:function(a){this._linkObjs.push(a)},isInLinkObjs:function(a){for(var b=this._linkObjs,c=0;c<b.length;c++)for(var e=b[c],g=0;g<e.length;g++)if(a==e[g])return true;return false}};ncbi.sg.lastPing=null;ncbi.sg.hasNotedErrorEvent=false;ncbi.sg.getTimeSinceNavStart=function(){return typeof performance!=="undefined"&&typeof performance.now!=="undefined"?Math.round(performance.now()):null};ncbi.sg.getTimeonpageData=function(){var a={};if(typeof ncbi_startTime!=="undefined"){a.ncbi_timeonpage=
new Date-ncbi_startTime;if(typeof ncbi_onloadTime!=="undefined"&&ncbi_onloadTime)a.ncbi_onloadTime=ncbi_onloadTime-ncbi_startTime}return a};ncbi.sg.addTimeonpageDetails=function(a){var b=ncbi.sg.getTimeonpageData();for(var c in b)a[c]=b[c];return a};ncbi.sg.addTimeonpageToAr=function(a){var b=ncbi.sg.getTimeonpageData();for(var c in b)a.push(c+"="+b[c]);return a};ncbi.sg.getStatUrl=function(a){var b=window.location.port?":"+window.location.port:"";return typeof __ncbi_stat_url!=="undefined"?__ncbi_stat_url+
"?"+a:window.location.protocol+"//"+window.location.hostname+b+"/stat?"+a};(function(){function a(){ncbi.sg.getInstance()._sidPromise.then(function(){if(I.length>0)for(;I.length>0;)c(I.pop());var d={jsevent:"unload",ncbi_pingaction:"unload"};d=ncbi.sg.addTimeonpageDetails(d);d.eventid=ncbi.sg.getEventId();var f=ncbi.sg.getInstance();f.setPerfStats(d,true);f.addScrollDetails(d,1800-f.getJoinedData(d).length,true);F||ncbi.sg._ping(d);F=true})}function b(d){for(var f=I.length-1;f>=-1;f--)if(I[f]===d){I.slice(f,
1);break}c(d)}function c(d,f){if(H.indexOf(d.tstamp)===-1){H.push(d.tstamp);N.push(d);e("click",d,f)}}function e(d,f,i,l){ncbi.sg.getInstance()._sidPromise.then(function(){if(typeof l==="undefined"||l===null)l=true;var t=d==="click"?"link":"elem",q=f.link,B=g(q)||"",w=f.evt,K=q.id||"",J=q.name||"",M=q.sid||"",Q=q.href||"",h=q.innerText||q.textContent||"";if(h.length>50)h=h.substr(0,50);var p=q.getAttribute?q.getAttribute("ref")||q.ref||"":"",s=q.className?q.className.replace(/^\s?/,"").replace(/\s?$/,
"").split(/\s/g).join(",")||"":"",D=[],A=[],G=q.parentNode;if(G)for(var C=0;C<6&&G!==null;C++){(parId=G.id)&&D.push(parId);if(parClassName=G.className)A=A.concat(parClassName.split(/\s/));G=G.parentNode}G=ncbi.sg.getInstance();var y=[];K.length>0&&y.push(t+"_id="+encodeURIComponent(K));J.length>0&&y.push(t+"_name="+encodeURIComponent(J));M.length>0&&y.push(t+"_sid="+encodeURIComponent(M));Q.length>0&&y.push(t+"_href="+encodeURIComponent(Q));h.length>0&&y.push(t+"_text="+encodeURIComponent(h));s.length>
0&&y.push(t+"_class="+encodeURIComponent(s));B.length>0&&y.push(t+"_section_name="+encodeURIComponent(B));if(ncbi.sg.calcXY){C=G.getBrowserWidthHeight();C.width!==null&&y.push("browserwidth="+encodeURIComponent(C.width));C.height!==null&&y.push("browserheight="+encodeURIComponent(C.height))}for(var T in w){C=w[T];C!==undefined&&y.push(T.toLowerCase()+"="+C.toString())}d==="click"&&y.push("eventid="+encodeURIComponent(ncbi.sg.getEventId()));y.push("jsevent="+d);p.length>0&&y.push(p);if(typeof jQuery!==
"undefined")if(C=jQuery(q).attr("sg")){q=C.split(/\}\s*,\s*\{/);for(C=0;C<q.length;C++){p=q[C].match(/name\s*:\s*'(.+)',\s*selector\s*:\s*'(.+)'/);if(p.length===3){w="cust_"+p[1];p=jQuery(p[2]).val();y.push(w+"="+encodeURIComponent(p))}}}if(i&&i.length>0)for(;i.length>0;)y.push(i.shift());D.length>0&&y.push("ancestorId="+D.join(","));A.length>0&&y.push("ancestorClassName="+A.join(",").replace(/\s+/g," ").replace(/(^\s|\s$)/g,""));G.addScrollDetailsAr(y,1800-y.join("&").length,true);ncbi.sg._ping(y,
true,null,null,l)})}function g(d){var f;if(d=d.parentNode)for(;d&&d.dataset;){if(f=d.dataset.section)break;d=d.parentNode}return f||null}function k(d){var f={};if(ncbi.sg.calcXY&&d){if(d.clientX||d.clientY){var i=ncbi.sg.getInstance()._getScrollXYPx();f.evt_coor_x=d.clientX+i[0];f.evt_coor_y=d.clientY+i[1]}else if(d.pageX||d.pageY){f.evt_coor_x=d.pageX;f.evt_coor_y=d.pageY}f.jseventms=ncbi.sg.getInstance().getMillisecondsSinceSunday()}return f}function o(d,f,i,l,t){ncbi.sg.getInstance()._sidPromise.then(function(){var q=
{},B=null,w=null;if(typeof f==="string"){B=f;w=i}else{q=k(f);B=i;w=l}if(w){var K=typeof w;if(K==="string")w=[w];else if(K==="object"&&!(w instanceof Array)){K=[];for(var J in w)K.push(J+"="+w[J]);w=K}}e(B,{link:d,evt:q},w,t)})}function n(d,f,i){ncbi.sg.getInstance()._sidPromise.then(function(){var l=[];if(typeof f==="undefined")f=true;if(typeof d==="object"&&!(d instanceof Array))for(var t in d)l.push(t+"="+encodeURIComponent(d[t]));else if(typeof d==="string")l.push(d);else l=d;t=ncbi.sg.getInstance().currentPageHitId||
"";var q=null;if(typeof ncbi.sg.loadTime!=="undefined")q=new Date-ncbi.sg.loadTime;var B=l.join("&");if(B.indexOf("jsevent=clicknext")!==-1||B.indexOf("jsevent=searchnext")!==-1||B.indexOf("jsevent=unloadnext")!==-1){t.length>0&&l.push("next_phid="+encodeURIComponent(t));q!==null&&l.push("next_ncbi_timesinceload="+q)}else{t.length>0&&l.push("ncbi_phid="+encodeURIComponent(t));q!==null&&l.push("ncbi_timesinceload="+q)}(t=ncbi.sg.getTimeSinceNavStart())&&l.push("ncbi_timesincenavstart="+t);ncbi.sg.getInstance()._sendAl(l.join("&"),
null,f,i)})}var r=ncbi.sg.getInstance();r._setUpMetaTagValues();r._sessionIdCheck();var E=window.onerror;window.onerror=function(d,f,i){if(!ncbi.sg.hasNotedErrorEvent){ncbi.sg.getInstance().noteEventData("jserror",{jserror:d,jserrorlocation:f,jserrorline:i,SELF_URL:window.location.href},["ncbi_sessionid","ncbi_phid"]);ncbi.sg.hasNotedErrorEvent=true;if(typeof E==="function")return E(d,f,i)}};ncbi.sg._currentEventId=1;ncbi.sg.getEventId=function(){return ncbi.sg._currentEventId++};var I=[],H=[],N=
[],F=false;ncbi.sg.sendElementEvent=function(d,f,i){e(d,f,i,false)};ncbi.sg.clickTimers=[];ncbi.sg.getGA=function(){function d(i){var l=i.GoogleAnalyticsObject;return l?i[l]:null}var f;return(f=d(window))?f:(f=d(window.top))?f:null};setClickEvent=function(){function d(){a()}var f=ncbi.sg.getInstance(),i=function(h){return(h=typeof h.parentNode!=="undefined"?h.parentNode:null)?q(h)?h:i(h):false},l=function(h){var p=h.target||h.srcElement;if(typeof p=="undefined"||p==null)return null;if(p.nodeType==
3)p=h.target.parentNode;q(p)||(p=i(p));return p},t=function(h){return ncbi.sg.getInstance().isInLinkObjs(h)},q=function(h){var p=typeof h.tagName!=="undefined"?h.tagName.toLowerCase():null,s=false,D=false;if(typeof jQuery!=="undefined")s=jQuery(h).is("button, input[type=button], input[type=submit], input[type=reset]");else if(p==="input"){s=h.type;s=s=="button"||s=="submit"||s=="reset"}else s=p==="button"?true:false;s||(D=p=="a"||p=="area");return D?"link":s?"button":t(h)?"linkObjs":null},B=function(h){var p=
null;if(f.getVal("ncbi_app")=="sciencv"&&f.getVal("ncbi_pdid")=="sciencv-splash"){if(h.href&&h.href.search(/\/account\/nih-sciencv\/\?back_url=/)!==-1)var s="Big Green Button";else if(h.getAttribute("id")&&h.getAttribute("id")=="sign_in")s="Standard Upper Right Link";p={event:"click",category:"Login Route",action:"1 - Login Link Click",label:s}}else if(f.getVal("ncbi_app")=="account"&&(f.getVal("ncbi_pdid")=="login-page"||f.getVal("ncbi_pdid")=="SigninPage")){var D=h.getAttribute("name");if(D=="partner_signin")s=
h.getAttribute("authid");else if(D=="signinBtn")s="NCBI";if(s){f.setCookie("sg_logging_in","yes",0);p={event:"click",category:"Login Route",action:"3 - Click Login Option",label:s,cd5:s}}}p||(p={event:"click",category:"Link Click",action:g(h)||"NONE",label:h.href||"NONE"});return p},w=function(h,p,s,D){ncbi.sg.getInstance()._sidPromise.then(function(){if(!(D&&D=="click"&&h.which&&h.which==3))if(!(!p||q(p)==null)){var A=k(h);A.iscontextmenu=D=="contextmenu"?"true":"false";A={evt:A,link:p,tstamp:(new Date).getTime(),
floodTstamp:(new Date).getTime()};g(p);b(A);ncbi.sg.clickTimers&&window.clearTimeout(ncbi.sg.clickTimers);ncbi.sg.clickTimers=window.setTimeout(function(){ncbi.sg.clickTimers=null},300);if(ncbi.sg.ga_track&&D!="contextmenu"){A=B(p);var G=ncbi.sg.getGA();if(G)A.cd5?G("send","event",A.category,A.action,A.label,{dimension5:A.cd5}):G("send","event",A.category,A.action,A.label);ncbi.sg.gaPingsFired.push(A)}}})};if(window.addEventListener){window.addEventListener("click",function(h){w(h,l(h),[],"click")});
window.addEventListener("contextmenu",function(h){w(h,l(h),[],"contextmenu")},false);window.addEventListener("beforeunload",d)}else if(window.attachEvent){document.attachEvent("onclick",function(h){w(h,l(h),[],"click")});document.attachEvent("oncontextmenu",function(h){w(h,l(h),[],"contextmenu")},false);document.attachEvent("onbeforeunload",d)}if(f._isOuterLoginFrame()){var K=function(h){if(h.contentWindow){var p=h.contentWindow;h=h.contentDocument||h.contentWindow.document;if(p.addEventListener){p.addEventListener("click",
function(s){w(s,l(s),[],"click")});p.addEventListener("contextmenu",function(s){w(s,l(s),[],"contextmenu")},false)}else if(p.attachEvent){h.attachEvent("onclick",function(s){w(s,l(s),[],"click")});h.attachEvent("oncontextmenu",function(s){w(s,l(s),[],"contextmenu")},false)}}},J=document.getElementsByTagName("iframe");if(J.length){var M=J[0];J=function(h){(h=h.target||h.srcElement)&&h==M&&K(M)};if(M.addEventListener)M.addEventListener("load",J);else M.attachEvent&&M.attachEvent("onload",J)}}if(Event.prototype.stopPropagation){var Q=
Event.prototype.stopPropagation;Event.prototype.stopPropagation=function(){var h=l(this);if(q(h)!=null)if(this.type=="click")w(this,h,[],"click");else this.type=="contextmenu"&&w(this,h,[],"contextmenu");return Q.apply(this,arguments)}}};ncbi.sg.isClickingEnabled&&ncbi.sg.getInstance()._sidPromise.then(function(){setClickEvent()});ncbi.sg.scanLinks=function(d){var f=ncbi.sg.getInstance();if(d){var i=typeof jQuery!=="undefined"&&jQuery?d instanceof jQuery:false;if(typeof d==="object"&&!(d instanceof
Array)&&!i)d=[d];f.addLinkObjs(d)}};ncbi.sg._ping=function(d,f,i,l,t){if(typeof t==="undefined"||t===null)t=true;typeof d==="undefined"||d===null||(typeof d==="object"&&d.nodeName!==undefined?o(d,f,i,l,t):n(d,f,t))};ncbi.sg.ping=function(d,f,i,l){ncbi.sg._ping(d,f,i,l,false)};ncbi.sg.loadTime=new Date;ncbi.sg.gaPingsFired=[];ncbi.sg.pingsFired=[];ncbi.sg.pingsSucceeded=[];ncbi.sg.prevPingsFired=null;ncbi.sg.prevPingsSucceeded=null;ncbi.sg.outstandingPings=0;ncbi.sg._isGBPage=false;ncbi.sg._urls={getDataObj:function(d){if(typeof d===
"string"||typeof DOMString!=="undefined"&&d instanceof DOMString||typeof String!=="undefined"&&d instanceof String){var f={};d=d.split("&");for(var i=0;i<d.length;i++)if(d[i].length){var l=d[i].split("="),t=l[0],q="";if(l.length==1)q="";else{q=l[1];if(l.length>2)for(var B=2;B<l.length;B++)q+="="+l[B]}f[t]=q}return f}else return false},getUrlParts:function(d){if(typeof d!=="undefined"&&d){d=d.split("?");if(d.length<=2)return d;else{for(var f=d[1],i=2;i<d.length;i++)f+="?"+d[i];return[d[0],f]}}return""},
getQueryString:function(d){d=this.getUrlParts(d);return d.length>1?typeof d[1]!=="undefined"&&d[1]?d[1]:"":null},getMainUrlPart:function(d){d=this.getUrlParts(d);return d.length>0?typeof d[0]!=="undefined"&&d[0]?d[0]:"":""},hasQuestionMark:function(d){return d.search(/\?/)!==-1},getDataStr:function(d){if(typeof d==="object"&&!(d instanceof Array)){var f=[];for(var i in d)f.push(i+"="+d[i]);return f.join("&")}else return false},attrInStr:function(d,f){if(typeof f!=="undefined"&&f&&f.length>0)if(typeof this.getDataObj(f)[d]!==
"undefined")return true;return false},attrInUrl:function(d,f){return this.attrInStr(this.getQueryString(f))},getAttrFromData:function(d,f){if(typeof f!=="undefined")return f[d]},getAttrFromStr:function(d,f){return this.getAttrFromData(d,this.getDataObj(f))},addAttr:function(d,f,i,l){if(l||typeof i[d]==="undefined")i[d]=f;return i},addAttrToStr:function(d,f,i,l){i=this.getDataObj(i);i=this.addAttr(d,f,i,l);return this.getDataStr(i)},addDataToStr:function(d,f,i){f=f;for(var l in d)f=this.addAttrToStr(l,
d[l],f,i);return f},addDataToObj:function(d,f){for(var i in f)d[i]=f[i]},addAttrWithIndex:function(d,f,i){var l=ncbi.sg.getInstance();if(typeof d==="undefined"||!d)return f;if(typeof f!=="undefined"&&f){l=l.getVal(d);f[d]=l?l:"unknown";if(typeof i!=="undefined"&&i)f[d]+=".0"+ncbi.sg._ajaxRequestIndex}return f},addAttrWithIndexToUrl:function(d,f,i){var l=this.getMainUrlPart(f);f=this.getQueryString(f);f=f!==null?f:"";f=this.addAttrWithIndexToStr(d,f,i);return l+"?"+f},addAttrWithIndexToStr:function(d,
f,i){f=this.getDataObj(f);ncbi.sg.getInstance();f=this.addAttrWithIndex(d,f,i);return this.getDataStr(f)}}})();if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,b){var c=this.length>>>0;b=Number(b)||0;b=b<0?Math.ceil(b):Math.floor(b);if(b<0)b+=c;for(;b<c;b++)if(b in this&&this[b]===a)return b;return-1};(function(){function a(){ncbi_onloadTime=new Date}ncbi_onloadTime=null;if(typeof jQuery!=="undefined"&&jQuery&&jQuery.fn&&jQuery.fn.on)jQuery(window).on("load",a);else{var b=window.onload;
window.onload=function(c){b&&b(c);a()}}})();(function(){ncbi.sg._ajaxRequestIndex=1;if(typeof XMLHttpRequest!=="undefined"){var a,b=function(e,g,k,o){if(typeof a==="undefined"||!a)a=ncbi.sg.getInstance();g=(g=a.getVal(g))?g:"unknown";if(typeof o!=="undefined"&&o)g+=".0"+ncbi.sg._ajaxRequestIndex;e.setRequestHeader(k,g)},c=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){var e;if(typeof this._ncbi_skipOverride!=="undefined"&&this._ncbi_skipOverride)e=c.apply(this,arguments);else{e=
c.apply(this,arguments);b(this,"ncbi_phid","NCBI-PHID",true);ncbi.sg._ajaxRequestIndex+=1}return e}}})();var u=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];if(typeof console==="undefined"||typeof console==="function")console={};for(var v=0;v<u.length;++v)if(typeof console[u[v]]==="undefined")console[u[v]]=function(){return false};u=ncbi.sg.getInstance();u.init();v=u._cachedVals.ncbi_is_ga_pageview_enabled;
ncbi.sg.isGAPageviewEnabled=typeof __ncbi_sg_isGAPageviewEnabled!=="undefined"&&!__ncbi_sg_isGAPageViewEnabled?false:v&&v.value=="false"?false:true;ncbi.sg.ga_track=false;var j=(v=u._cachedVals.ncbi_app)&&v.value||"NONE";v=(v=u._cachedVals.ncbi_db)&&v.value||"NONE";var x=u._cachedVals.ncbi_pdid,m=x&&x.value||"NONE",R=u._cachedVals.ncbi_program;R=R&&R.value||"NONE";var S=u._cachedVals.ncbi_algorithm;S=S&&S.value||"NONE";var L,U;if(j&&j=="labs_account")ncbi.sg.ga_track=true;if(j&&j=="labs_journals")ncbi.sg.ga_track=
true;if(j&&(j=="bookshelf"||j=="Books Browser"))ncbi.sg.ga_track=true;if(j&&j=="pathogens")ncbi.sg.ga_track=true;if(j&&j=="labs_pathogens")ncbi.sg.ga_track=true;if(j&&j=="entrez")ncbi.sg.ga_track=true;if(j&&j=="pubmed_mobile")ncbi.sg.ga_track=true;if(j&&j=="pmc")ncbi.sg.ga_track=true;if(j&&(j=="blast"||j=="smartblast"||j=="primerblast"||j=="igblast"||j=="global_align"||j=="vecscreen"||j=="moleblast"||j=="cobalt"))ncbi.sg.ga_track=true;if(j&&m&&j=="static"&&(m=="moleblasthelp"||m=="blastnewsfeed"||
m=="cloudblast"||m=="blasthelppage"||m=="blastdevhelp"||m=="blastreferences"||m=="blastdownload"||m=="igblast_intro"||m=="igblast_resources"||m=="primerblast_info"||m=="primerblast_userguide"||m=="smartblast_docs"||m=="blastformatreq"||m=="blastrecentresults"||m=="blastsavedsearches"||m=="oldblastresults"||m=="primerblast_search"||m=="blast_versioningpolicy"||m=="blastalignmentviewwidget"||m=="blastdeveloperinformation"||m=="blastfrequentlyaskedquestions"||m=="blasthelppage"||m=="blastreferences"||
m=="blasttopics"))ncbi.sg.ga_track=true;if(j&&v&&j=="entrez"&&(v=="nuccore"||v=="protein"||v=="pubmed"))ncbi.sg.ga_track=true;else if(j&&m&&j=="guide"&&m=="HomePage")ncbi.sg.ga_track=true;else if(j&&j=="guide4beta"){m=(x=u._cachedVals.ncbi_page_type)&&x.value;v=(v=u._cachedVals.ncbi_page_name)&&v.value;ncbi.sg.ga_track=true}else if(j&&j=="sciencv")ncbi.sg.ga_track=true;else if(j&&j=="Myncbi"&&m=="home")gaIsMyncbiHome=ncbi.sg.ga_track=true;if(j&&(j=="Myncbi"||j=="account"||j=="myncbi-bib"||j=="mixedcollectionbrowser"))ncbi.sg.ga_track=
true;if(!ncbi.sg.getInstance()._isLoggedIn())if(j&&j=="account"&&m&&m=="login-page"){L={category:"Login Route",action:"2 - Saw Login Page"};L.label=window.location.href.search(/\/account\/nih-sciencv\//)!==-1?"SciENcv Login Page":"Standard Login Page"}if(ncbi.sg.ga_track){x=u.getCookie("sg_logging_in");x=!x||x===""?false:true;var O=u.getCookie("labs_account_logging_in");O=!O||O===""?false:true;if(x&&u._isLoggedIn()&&!(u._isOuterLoginFrame()||u._isInnerLoginFrame())){u.setCookie("sg_logging_in","",
0);x=j+":"+m;L={category:"Login Route",action:"4 - Login Confirmation",label:x}}if(O&&u._isLoggedIn()&&!(u._isOuterLoginFrame()||u._isInnerLoginFrame())){u.setCookie("labs_account_logging_in","",0);x=j+":"+m;U={category:"New Login Route",action:"Login Confirmation",label:x}}if(!window.GoogleAnalyticsObject){x=u._cachedVals.ncbi_google_analytics_object;window.GoogleAnalyticsObject=x&&x.value?x.value:"ncbi_global_ga"}var z=function(){z.q.push(arguments)};window[window.GoogleAnalyticsObject]=z;z.q=[];
z.l=1*new Date;x=document.createElement("script");x.setAttribute("async","1");x.setAttribute("src","//www.google-analytics.com/analytics.js");z("create",ncbi.sg.gaID,"auto");O=u._isLoggedIn()?"YES":"NO";var V=j+":"+v+":"+m,W=u._isGADirectnav()?"YES":"NO";z("set","dimension1",j);z("set","dimension2",v);z("set","dimension3",m);z("set","dimension4",O);z("set","dimension6",V);z("set","dimension7",W);z("set","dimension8",R);z("set","dimension9",S);z("set","contentGroup1",j);z("set","contentGroup2",v);
z("set","contentGroup3",m);z("set","contentGroup4",j+":"+v+":"+m);if(ncbi.sg.isGAPageviewEnabled){z("send","pageview");v={event:"pageview",cd1:j,contentGroup1:j,cd2:v,contentGroup2:v,cd3:m,contentGroup3:m,cd3:m,cd4:O,cd6:V,cd7:W};ncbi.sg.gaPingsFired.push(v)}if(L){z("send","event","Login Route",L.action,L.label);v={event:"Login Route",action:L.action,label:L.label};ncbi.sg.gaPingsFired.push({event:"Login Route",action:L.action,label:L.label})}if(U){z("send","event","New Login Route","Login Confirmation",
j+":"+m);v={event:"New Login Route",action:"Login Confirmation",label:j+":"+m};ncbi.sg.gaPingsFired.push({event:"New Login Route",action:"Login Confirmation",label:j+":"+m})}document.getElementsByTagName("body")[0].appendChild(x)}u._isOuterLoginFrame()||u._isInnerLoginFrame()||u._setGACookie()}})();
