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