"); } if (window.location.hostname.toLowerCase().indexOf('.literatumonline.') >= 0) { gpt_IsProd = false; gptTestENV_Debug = 'Test Environment Detected'; } else { gptTestENV_Debug = 'Production Environment Detected'; } break; default: //Cell gptContextualEnabled = false; if (window.location.hostname.toLowerCase().indexOf('.literatumonline.') >= 0) { gpt_IsProd = false; gptTestENV_Debug = 'Test Environment Detected'; } else { gptTestENV_Debug = 'Production Environment Detected'; } break; } } //-------------------------------------------------------------------------- function gpt_GetNonCMEArticle() { var url; $('.articleCitation').each(function (i, obj) { if ($(obj).find('.toc__item__detials').length > 0) { var itemDetails = $(obj).first().find('.toc__item__detials'); var x1 = $(itemDetails).find("img[title~='Education']").length; var x2 = $(itemDetails).find("img[title~='CME']").length; if (x1 == 0 && x2 == 0) { var itemLink = $(itemDetails).first().find('.toc__item__title'); var linkCount = $(itemLink).first().find("a:contains('CME')").length; if (linkCount == 0) { url = $(itemLink).first().find('a').attr('href'); return false; } } } }); return url; } //-------------------------------------------------------------------------- function gpt_GetElapsedTime() { var endTime = new Date(); var timeDiff = endTime - gpt_StartTime; //in ms // strip the ms timeDiff /= 1000; // get seconds return seconds = Math.round(timeDiff) + " seconds"; } //-------------------------------------------------------------------------- function gpt_CheckSSC() { //Check for ScreenShot Client var gpt_SSC = gpt_GetQuerystring('gpt_ssc', ''); if (gpt_SSC == '1') { //it's the ScreenShotClient, disable MOAT IVT Detection $('#gpt-Variables').append(''); $('#gptm_data').val(0); gpt_Target("m_data"); } } //-------------------------------------------------------------------------- function gpt_LocalSS(adTypeId) { window.scrollTo(0, 0); gpt_Sleep(1000); gpt_ScrollToAd(adTypeId); gpt_PreTearsheet(adTypeId); } //-------------------------------------------------------------------------- function gpt_InitScripts() { if (gpt_AdFile == "PU") { if (gpt_IsProd) { gpt_ContextualURL = gpt_CheckForNULL($('#canonicalurl').val()); if (gpt_ContextualURL === null) { gpt_ContextualURL = window.location.href.split('?')[0].split('#')[0]; } else { gpt_ContextualURL = window.location.origin + gpt_ContextualURL; } var useSSL = 'https:' == document.location.protocol; var gs = document.createElement('script'); gs.async = true; gs.type = 'text/javascript'; gs.src = (useSSL ? 'https:' : 'http:') + '//elsevier.gscontxt.net/multizone/channels.cgi?url=' + encodeURIComponent(gpt_ContextualURL); gs.onload = function () { gpt_ContextualReady = true; }; document.head.appendChild(gs); } } else { //JBS-Cell-Lancet var useSSL = 'https:' == document.location.protocol; var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; gads.src = (useSSL ? 'https:' : 'http:') + '//securepubads.g.doubleclick.net/tag/js/gpt.js'; document.head.appendChild(gads); if (gpt_IsProd && gptContextualEnabled) { gpt_ContextualURL = window.location.href.split('?')[0].split('#')[0]; var gs = document.createElement('script'); gs.async = true; gs.type = 'text/javascript'; gs.src = (useSSL ? 'https:' : 'http:') + '//elsevier.gscontxt.net/multizone/channels.cgi?url=' + encodeURIComponent(gpt_ContextualURL); gs.onload = function () { gpt_ContextualReady = true; }; document.head.appendChild(gs); } var elsevierMoatHeader = document.createElement('link'); elsevierMoatHeader.rel = 'preload'; elsevierMoatHeader.as = 'script'; elsevierMoatHeader.src = (useSSL ? 'https:' : 'http:') + '//z.moatads.com/elsevierheader150204004183/moatheader.js'; document.head.appendChild(elsevierMoatHeader); var elsevierMoatAds = document.createElement('link'); elsevierMoatAds.rel = 'preconnect'; elsevierMoatAds.src = (useSSL ? 'https:' : 'http:') + '//mb.moatads.com'; document.head.appendChild(elsevierMoatAds); var moatHeader = document.createElement('script'); moatHeader.async = true; gads.type = 'text/javascript'; moatHeader.src = (useSSL ? 'https:' : 'http:') + '//z.moatads.com/elsevierheader150204004183/moatheader.js'; document.head.appendChild(moatHeader); } } //-------------------------------------------------------------------------- async function gpt_CheckForMOATInit() { //Check every 1/10 of a second until MOAT is Loaded or 1 second timeout if (gpt_MOATInitAttempts < gpt_MaxMOATInitAttempts) { gpt_MOATInitAttempts += 1; if (typeof window.moatPrebidApi === "object") { //MOAT LOADED gptMoatInit_Debug = '0.0' + gpt_MOATInitAttempts + ' seconds'; gpt_CheckForMOATReady(); } else { setTimeout(() => { gpt_CheckForMOATInit(); }, 100); } } else { //TIMEOUT: MOAT Not LOADED gptMoatInit_Debug = 'Timeout Expired'; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; gpt_CheckForContextualReady(); } } //-------------------------------------------------------------------------- function gpt_CheckForMOATReady() { //Check every 1/10 of a second until MOAT is Ready or 1 second timeout if (gpt_MOATReadyAttempts < gpt_MaxMOATReadyAttempts) { gpt_MOATReadyAttempts += 1; if (window.moatPrebidApi.safetyDataAvailable()) { //MOAT Ready gptMoatReady_Debug = '0.0' + gpt_MOATReadyAttempts + " seconds"; gpt_CheckForContextualReady(); } else { setTimeout(() => { gpt_CheckForMOATReady(); }, 100); } } else { //TIMEOUT: MOAT Not Ready gptMoatReady_Debug = 'Timeout Expired'; gpt_CheckForContextualReady(); } } //-------------------------------------------------------------------------- function gpt_CheckForContextualReady() { //Check every 1/10 of a second until Contextual is Ready or 2 second timeout if (gpt_IsProd && gptContextualEnabled) { //Enabled if (gpt_ContextualReadyAttempts < gpt_MaxContextualReadyAttempts) { gpt_ContextualReadyAttempts += 1; if (gpt_ContextualReady) { //Contextual Ready gptContextualURL_Debug = gpt_ContextualURL; gptContextualReady_Debug = '0.0' + gpt_ContextualReadyAttempts + " seconds"; gptContextualInit_Debug = gs_channels; gpt_InitAds(); } else { setTimeout(() => { gpt_CheckForContextualReady(); }, 100); } } else { //LOG TIMEOUT error //REMOVE FOR NOW (SHOULD LOG TO A DIFF LOCATION) //TIMEOUT: Contextual Not Ready $('#gpt_GrapeShotDebugBtn').remove(); gptContextualURL_Debug = gpt_ContextualURL; gptContextualReady_Debug = 'Timeout Expired'; gptContextualInit_Debug = ""; gpt_InitAds(); } } else { //Not Enabled $('#gpt_GrapeShotDebugBtn').remove(); switch (gpt_AdFile) { case 'PU': case 'LANCET': case 'JBS': gptContextualURL_Debug = 'Not enabled outside of Production'; gptContextualReady_Debug = 'Not enabled outside of Production'; gptContextualInit_Debug = 'Not enabled outside of Production'; break; case "CELLJOURNAL": case "CELLBUCKET": gptContextualReady_Debug = 'Not enabled on Cell'; gptContextualInit_Debug = 'Not enabled on Cell'; gptContextualURL_Debug = 'Not enabled on Cell'; break; } gpt_InitAds(); } } //-------------------------------------------------------------------------- function GPT_GetPageByURL() { var host = window.location.host.toLocaleLowerCase() var localpath = window.location.pathname.toLocaleLowerCase(); ///Check for Cell.com if (host.indexOf('cell.com') >= 0) { return null; } ///Check for Cell.com (marlin-stag) if (host.indexOf('www-cell-com') >= 0) { return null; } ///Check for Lancet if (host.indexOf('thelancet') >= 0) { return null; } if (localpath.indexOf('/article/') >= 0) { return 'article.fulltext'; } if (localpath.indexOf('/action/dosearch') >= 0) { return 'search.searchResults'; } if (localpath.indexOf('/content/') >= 0) { return 'periodical.editorial'; } return 'periodical.home'; } //-------------------------------------------------------------------------- function gpt_CheckForNULL(x, valueifnull) { if (typeof valueifnull == "undefined") { valueifnull = null; } if (typeof x == 'undefined') { return valueifnull; } if (x == null) { return valueifnull; } if (x == "null") { return valueifnull; } if ($.trim(x) == '') { return valueifnull; } return x; } //-------------------------------------------------------------------------- function gpt_GetAdditionalTargeting() { //adds page level targeting of custom variables //the id (minus gpt) and the value will be used as a key-value pair //eg: //eg: target issuepii=x $(".gpt-Target").each(function (index) { var gptTargetId = $(this).attr('id'); gptTargetId = gptTargetId.replace('gpt', '').toLowerCase(); if (gptTargetId !== '') { gpt_Target(gptTargetId); } }) } //-------------------------------------------------------------------------- function gpt_GetQuerystring(key, default_) { //function to read querystring variables if (default_ === null) default_ = ''; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^]*)"); var qs = regex.exec(window.location.href); if (qs === null) return default_; else return qs[1]; } //-------------------------------------------------------------------------- function gpt_GetDFPTestId() { //Get any request for a test id from querystring and set custom targeting parameter var gptDFPTestId = gpt_GetQuerystring('dfptestid', ''); if (gptDFPTestId !== '') { $('#gpt-Variables').append(''); $('#gptDFPTestId').val(gptDFPTestId); gpt_Target("DFPTestId"); } } //-------------------------------------------------------------------------- function gpt_Target(targetName) { //Set page level target if value is found if ($('#gpt' + targetName).length > 0) { var targetValue = $('#gpt' + targetName).val(); if (targetValue !== '') { targetValue = targetValue.replace(/[^-a-z0-9]/ig, '');//Only Allow a-z, 0-9 googletag.pubads().setTargeting(targetName.toLowerCase(), targetValue.toLowerCase()); gptCustomTargeting_Debug = gptCustomTargeting_Debug + targetName.toLowerCase() + ' = ' + targetValue.toLowerCase() + '
'; } } } //-------------------------------------------------------------------------- function gpt_TargetAccessType() { var currentAccessType = $('#gptAccessType').val(); if (typeof currentAccessType == "undefined") { currentAccessType = ""; } if (currentAccessType.indexOf('ANON_IP') >= 0) { googletag.pubads().setTargeting("loggedin", "yes"); } else { gpt_Target("LoggedIn"); } } //-------------------------------------------------------------------------- async function gpt_PreTearsheet(adTypeId) { if (typeof adTypeId === "undefined") { adTypeId = 0; } //Remove Elsevier Cookie Policy Notice if ($("#onetrust-consent-sdk").length > 0) { $("#onetrust-consent-sdk").remove(); } //Mobile Nav$('#skip').remove(); $('#skipNavigationLink').remove(); //JBS Modals if ($('.leadinModal').length > 0) { $('.leadinModal').remove(); } if ($('.leadinModal').length > 0) { $('.leadinModal').remove(); } if ($('.usabilla__overlay').length > 0) { $('.usabilla__overlay').remove(); } //Pendo if ($('._pendo-step-container').length > 0) { $('._pendo-step-container').remove(); } if ($('._pendo-guide-tt_').length > 0) { $('._pendo-guide-tt_').remove(); } if ($('._pendo-image').length > 0) { $('._pendo-image').remove(); } if ($('._pendo-badge-image').length > 0) { $('._pendo-badge-image').remove(); } switch (gpt_AdFile) { case "CELLJOURNAL": case "CELLBUCKET": //Mobile Bug Fix on Cell if (parseInt(adTypeId) == 5) { $('.widget-horizontalAd').css('position', 'static'); $('.body-horizontalAd').css('display', 'block'); } break; case "JBS": case "LANCET": objLeaderboard = ".container-leaderboard"; offset = 53; switch (parseInt(adTypeId)) { case 3: //MPU case 4: //SkyScraper //BUGFIX: Show Sidebar ad for JBS //skyscraper & mpu if ($('.widget-verticalAd').length > 0) { $('.widget-verticalAd').css('display', 'block'); } $('#backgroundLayer').css('display', 'none'); //Hide any Prestitial break; case 6: //Prestitial $('#backgroundLayer').css('display', 'block'); break; default: $('#backgroundLayer').css('display', 'none'); //Hide any Prestitial break; } break; } } //-------------------------------------------------------------------------- function gpt_Sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } //-------------------------------------------------------------------------- async function gpt_ScrollToAd(adTypeId) { if (typeof adTypeId === "undefined") { adTypeId = 0; } var adId = ""; var offset = 0; var objLeaderboard = ""; var gpt_ScrollToAd = true; switch (gpt_AdFile) { case "PU": //PracticeUpdate var hideOtherAds = true; $('#modalPrestitial').modal('hide'); $('.jumbotron-welcome').hide(); objLeaderboard = ".container-leaderboard"; offset = 53; switch (parseInt(adTypeId)) { case 2: //LeaderBoard, no Scroll Needed gpt_ScrollToAd = false; adId = "adSlot1"; break; case 3: //MPU adId = "adSlot2"; break; case 4: //SkyScraper adId = "adSlot3"; $('.most-read').hide(); break; case 5: //Mobile, no Scroll Needed gpt_ScrollToAd = false; adId = "adSlot1"; break; case 6: //Interstitial gpt_ScrollToAd = false; adId = "adSlot15"; await gpt_Sleep(1000); $(objLeaderboard).hide(); $('#modalPrestitial').unbind(); $('#modalPrestitial').modal(); break; case 7: //Native Ad break; case 10: //Master Companion hideOtherAds = false; gpt_ScrollToAd = false; break; default: //Unknown Ad Type gpt_ScrollToAd = false; adId = "adSlot1"; break; } if (hideOtherAds) { //Hide all other ads $('.ad-container').each(function (i, obj) { if (this.id !== adId) { var tempParent = this.id; tempParent = tempParent.replace("adSlot", "adParent"); $("#" + tempParent).addClass('hide'); } }); } break; case "JBS": objLeaderboard = ".js__adToHide"; offset = 80; switch (parseInt(adTypeId)) { case 2: //Leaderboard gpt_ScrollToAd = false; $(".widget-verticalAd").hide(); break; case 5: //Mobile //Scroll to Top gpt_ScrollToAd = false; break; case 3: //MPU case 4: //SkyScraper $(objLeaderboard).hide(); adId = $('.gpt-ad-defined[data-adsize="sidebar"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; case 13: //Phone - Portrait case 14: //Phone - Landscape $(objLeaderboard).hide(); offset = 60; adId = 'gpt-Interscroller'; gpt_ScrollToAd = true; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; } break; case "CELLJOURNAL": case "CELLBUCKET": objLeaderboard = ".js__adToHide"; offset = 260; switch (parseInt(adTypeId)) { case 2: //Leaderboard gpt_ScrollToAd = false; $('.body-verticalAd').hide(); break; case 5: //Mobile //Scroll to Top gpt_ScrollToAd = false; break; case 3: //MPU case 4: //SkyScraper $(objLeaderboard).hide(); adId = $('.gpt-ad-defined[data-adsize="boombox"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; } //Hide the second ad if found var tCount = 0; $(".widget.literatumAd.none.GPT-ad-placeholder.widget-horizontalAd.widget-compact-all").each(function (index) { tCount += 1; if (tCount !== 1) { $(this).hide(); } }); break; case "LANCET": objLeaderboard = ".js__adToHide"; offset = 80; switch (parseInt(adTypeId)) { case 2: //Leaderboard gpt_ScrollToAd = false; $('.body-verticalAd').hide(); break; case 5: //Mobile //Scroll to Top gpt_ScrollToAd = false; break; case 3: //MPU case 4: //SkyScraper $(objLeaderboard).hide(); adId = $('.gpt-ad-defined[data-adsize="skyscraper"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; } break; } //Scroll to Top var gpt_container = $("html,body"); gpt_container.animate({ scrollTop: 0, scrollLeft: 0 }); if (gpt_ScrollToAd) { //If Adexists, scroll to it var gpt_scrollTo = $('#' + adId); if (gpt_scrollTo.length > 0) { //Scroll to the Ad var gpt_topPosition = gpt_scrollTo.offset().top - gpt_container.offset().top + gpt_container.scrollTop(); if (gpt_topPosition > 0) { gpt_container.animate({ scrollTop: gpt_topPosition, scrollLeft: 0 }); if (gpt_topPosition - offset > 0 && offset > 0) { gpt_container.animate({ scrollTop: gpt_topPosition - offset, scrollLeft: 0 }); } } } } } //-------------------------------------------------------------------------- async function gpt_CheckForCookiePolicy() { var returnVal = false; if ($('#onetrust-accept-btn-handler').length > 0) { $('#onetrust-accept-btn-handler').click(); returnVal = true; } return returnVal; } //-------------------------------------------------------------------------- function gpt_InitAds() { var gpt_ResponsiveHomepage = false; switch (gpt_AdFile) { case "JBS": case "CELLJOURNAL": case "CELLBUCKET": //Responsive Check if ($('#hdrHomeBrand').length > 0) { gpt_ResponsiveHomepage = true; } break; } //InterScroller Check if (gpt_AdFile === "JBS") { var gpt_InterScrollerEnabled = false; var gpt_InterScrollerInsertObj; if ($("#articleHeader").length > 0) { //It's an article Page if ($('.article__sections > section').length > 0) { gpt_InterScrollerEnabled = true; gpt_InterScrollerInsertObj = $(".article__sections > section"); } } else { if ($('.toc__section').length > 0) { //It's a TOC Page gpt_InterScrollerEnabled = true; gpt_InterScrollerInsertObj = $(".toc__section").first(); } } //Add the Interscroller if (gpt_InterScrollerEnabled) { gpt_InterScrollerInsertObj.first().append($("#gpt-Interscroller").clone()); $("#gpt-Interscroller").remove(); $(".gpt-adinterscroller").addClass("gpt-ad"); } } googletag.cmd.push(function () { var gptBoomBoxSizeMapping; var gptFluidMapping; var gptHomePageSidebarMapping; var gptCellHomePageSidebarMapping; var gptInterscrollerMapping; var gptLeaderboardSizeMapping; var gptMobileSizeMapping; var gptPrestitialMapping; var gptRectangleShortSizeMapping; var gptRectangleSizeMapping; var gptSideBarSizeMapping; var gptTallSizeMapping; var gptWideSizeMapping; var gptWideRectangleSizeMapping; //*********************************************** //Start Define Size mapping based on client Viewport //*********************************************** if (gpt_AdFile === 'PU') { gptTallSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 600], [160, 600], [120, 600]]). addSize([0, 0], []). build(); gptRectangleSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 250]]). addSize([0, 0], []). build(); gptRectangleShortSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 250], [320, 50], [300, 50]]). addSize([0, 0], [[300, 250], [320, 50], [300, 50]]). build(); gptWideSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[728, 90]]). addSize([760, 0], [[728, 90], [320, 50], [300, 50]]). addSize([0, 0], [[320, 50], [300, 50]]). build(); gptWideRectangleSizeMapping = googletag.sizeMapping(). addSize([992, 0], []). addSize([760, 0], [[320, 50], [300, 50], [300, 250]]). addSize([0, 0], [[320, 50], [300, 50], [300, 250]]). build(); gptMobileSizeMapping = googletag.sizeMapping(). addSize([0, 0], [[320, 50], [300, 50]]). build(); gptFluidMapping = googletag.sizeMapping(). addSize([0, 0], ['fluid']). build(); gptPrestitialMapping = googletag.sizeMapping(). addSize([760, 0], [[1, 1]]). build(); } else { //JBS-CELL-LANCET gptLeaderboardSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[728, 90]]). // Desktop addSize([768, 0], [[728, 90]]). // Tablet Landscape addSize([0, 0], [[320, 50], [300, 50]]). // Phone & Tablet Portrait build(); gptHomePageSidebarMapping = googletag.sizeMapping(). addSize([2090, 795], [[300, 600], [300, 250], [160, 600], [120, 600]]). addSize([1910, 795], [[160, 600], [120, 600]]). addSize([0, 0], []). build(); gptCellHomePageSidebarMapping = googletag.sizeMapping(). addSize([2090, 795], [[300, 600], [300, 250], [336, 280], [160, 600], [120, 600]]). addSize([1910, 795], [[160, 600], [120, 600]]). addSize([0, 0], []). build(); gptSideBarSizeMapping = googletag.sizeMapping(). addSize([1140, 795], [[300, 600], [160, 600], [120, 600], [300, 250]]). // SkyScraper - Desktop (Require min 630 vertical) addSize([1140, 445], [[300, 250]]). // BoomBox Fall Back - Desktop (Require min 280 vertical) addSize([0, 0], []). // Phone build(); gptBoomBoxSizeMapping = googletag.sizeMapping(). addSize([768, 0], [[300, 250], [336, 280]]). // Desktop & Tablet Landscape addSize([0, 0], []). // Phone build(); gptFluidMapping = googletag.sizeMapping(). addSize([0, 0], ['fluid']). build(); gptPrestitialMapping = googletag.sizeMapping(). addSize([600, 700], [[1, 1]]). // Desktop & Tablet Landscape addSize([0, 0], []). // Phone build(); gptInterscrollerMapping = googletag.sizeMapping(). addSize([1140, 445], []). addSize([1024, 768], [[1024, 768]]). addSize([768, 1024], [[768, 1024]]). addSize([480, 320], [[480, 320]]). addSize([320, 480], [[320, 480]]). build(); } //*********************************************** //End Define Size mapping based on client Viewport //*********************************************** //*********************************************** //Start detection for ad slots on page //*********************************************** var gptMasterPage = gpt_CheckForNULL($('#gptPage').val()); var gptMasterSite; if (gpt_AdFile === 'PU') { gptMasterSite = $('#gptSite').val(); } else { //JBS-CELL-LANCET gptMasterSite = "dev"; if (gpt_IsProd) { gptMasterSite = gpt_CheckForNULL($('#gptSite').val()); //If there is no master site, check for a defaultsite if (gptMasterSite == null) { gptMasterSite = gpt_CheckForNULL($('#gptDefaultSite').val()); } } else { //Dev ENV //If the page has no gptSite Value, assume no value which will disable ads if (gpt_CheckForNULL($('#gptSite').val()) === null) { gptMasterSite = null; } } //If there is no master Page, check for a Page using the URL if (gptMasterPage === null) { gptMasterPage = GPT_GetPageByURL(); } } $(".gpt-ad").each(function (index) { var gptPage = ''; var adSizeMapping = ''; var gptPOS; var gptTC; var gptNative; var adId; var gptSite; var tempSlot = null; if (gpt_IsProd) { //Check if the ad slot has it's own site defined if (typeof $(this).data('site') === 'undefined') { gptSite = gptMasterSite; } else { gptSite = gpt_CheckForNULL($(this).data('site')); } } else { gptSite = gptMasterSite; } if (gpt_AdFile === 'PU') { adId = $(this).attr('id'); } else { //JBS-CELL-LANCET adId = 'gpt-ad-' + index + 1; } if (gpt_CheckForNULL(gptSite) !== null) { gptSite_Debug = gptSite; gptPOS = parseInt($(this).data('pos')) || -1; if (gptPOS === -1) { gptPOS = index + 1; } //Check if the ad slot has it's own page defined gptPage = $(this).data('page'); if (gpt_CheckForNULL(gptPage) == null) { //Use the Master Page gptPage = gptMasterPage; } //If the page is not null, preceed it with a slash if (gptPage !== null) { gptPage = '/' + gptPage; } else { gptPage = ''; } gptPage_Debug = gptPage; gptTC = $(this).data('tc'); if (typeof gptTC === "undefined") { gptTC = ''; } gptNative = $(this).data('native'); if (typeof gptNative === "undefined") { gptNative = ''; } //Determine sizemapping based on data-adsize if (gpt_AdFile === 'PU') { switch ($(this).data('adsize')) { case 'tall': adSizeMapping = gptTallSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[120, 600], [160, 600], [300, 600]], adId); break; case 'rectangle': adSizeMapping = gptRectangleSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[300, 250]], adId); break; case 'rectangleshort': adSizeMapping = gptRectangleShortSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[300, 250], [320, 50], [300, 50]], adId); break; case 'wide': adSizeMapping = gptWideSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[728, 90], [320, 50], [300, 50]], adId); break; case 'widerectangle': adSizeMapping = gptWideRectangleSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[320, 50], [300, 50], [300, 250]], adId); break; case 'mobile': adSizeMapping = gptMobileSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[320, 50], [300, 50]], adId); break; case 'fluid': adSizeMapping = gptFluidMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, 'fluid', adId); break; case 'prestitial': adSizeMapping = gptPrestitialMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[1, 1]], adId); break; } } else { //JBS-CELL-LANCET switch ($(this).data('adsize')) { case 'cell-leaderboard': case 'leaderboard': adSizeMapping = gptLeaderboardSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[728, 90], [320, 50], [300, 50]], adId); break; case 'bottom': if (gpt_ResponsiveHomepage) { adSizeMapping = gptHomePageSidebarMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[120, 600], [160, 600], [300, 600], [300, 250]], adId); } else { adSizeMapping = gptBoomBoxSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[300, 250]], adId); } break; case 'boombox': if (gpt_AdFile === "CELLJOURNAL" || gpt_AdFile == "CELLBUCKET") { if (gpt_ResponsiveHomepage) { adSizeMapping = gptCellHomePageSidebarMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[120, 600], [160, 600], [300, 600], [300, 250], [336, 280]], adId); } else { adSizeMapping = gptBoomBoxSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[300, 250], [336, 280]], adId); } } else { adSizeMapping = gptBoomBoxSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[300, 250]], adId); } break; case 'interscroller': adSizeMapping = gptInterscrollerMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[320, 480], [480, 320], [768, 1024], [1024, 768]], adId); break; case 'sidebar': case 'skyscraper': adSizeMapping = gptSideBarSizeMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, [[120, 600], [160, 600], [300, 600], [300, 250]], adId); break; case 'native': case 'fluid': adSizeMapping = gptFluidMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, 'fluid', adId); break; case 'prestitial': adSizeMapping = gptPrestitialMapping; tempSlot = googletag.defineSlot('/6053/els.' + gptSite + gptPage, 'fluid', adId); break; } } } //Ignore any invalid adsizes that could be on the page if (adSizeMapping !== '') { $(this).addClass('gpt-ad-defined'); if (gpt_AdFile !== 'PU') { $(this).attr('id', adId); } tempSlot.defineSizeMapping(adSizeMapping).addService(googletag.pubads()).setTargeting("pos", gptPOS); if (gptTC !== '') { tempSlot.setTargeting("tc", gptTC); } if (gptNative !== '') { tempSlot.setTargeting("native", gptNative); } gptEvent_Debug = gptEvent_Debug + $(this).data('adsize') + ' Requested
'; } else { gptInvalidAdSize_Debug = gptInvalidAdSize_Debug + "Invalid Size Found, Id: " + $(this).prop('id') + ', adSize: ' + $(this).data('adsize') + '
'; $(this).remove(); } }); if (gpt_CheckForNULL(gptInvalidAdSize_Debug) === null) { gptInvalidAdSize_Debug = "None Detected"; } //*********************************************** //End detection for ad slots on page //*********************************************** //*********************************************** //Start page level targeting //*********************************************** if (gpt_AdFile !== 'PU') { //Logged in or IP Access gpt_TargetAccessType(); //Check for Screenshot Client gpt_CheckSSC(); } //Check for DFP Test gpt_GetDFPTestId(); //Check for Additional Targeting gpt_GetAdditionalTargeting(); if (gpt_IsProd && gptContextualEnabled) { var gpt_ContextualRetry = false; //Check for Contextual Targeting if (gs_channels !== "DEFAULT") { var gpt_ContextualCategories = Array.from(gs_channels); for (var i = 0; i < gpt_ContextualCategories.length; i++) { if (gpt_ContextualCategories[i] == 'gx_retry') { gpt_ContextualRetry = true; } if (!gpt_ContextualCategories[i].startsWith("custom_")) { //Remove any tag that is not custom gpt_ContextualCategories.splice(i, 1); i--; } else { //Strip the 'custom_' from the tag gpt_ContextualCategories[i] = gpt_ContextualCategories[i].replace("custom_", "") } } if (gpt_ContextualCategories.length > 0) { googletag.pubads().setTargeting("gs_cat", gpt_ContextualCategories); } else { gpt_ContextualCategories = 'none'; } if (gpt_ContextualRetry) { gpt_ContextualCategories = "*Indexing*"; } gptContextualResult_Debug = gpt_ContextualCategories; } else { gptContextualResult_Debug = 'No segments found'; } } else { //Not Prod gptContextualResult_Debug = 'Not enabled'; var gpt_DevSite = gpt_CheckForNULL($('#gptSite').val(), "dev"); $('#gpt-Variables').append(''); gpt_Target("Environment"); } //*********************************************** //End page level targeting //*********************************************** //Enable google dfp services if (parseInt($('#gptLazyLoading').val()) === 1) { googletag.pubads().enableLazyLoad({ fetchMarginPercent: 200, renderMarginPercent: 0, mobileScaling: 2.0 }); } else { googletag.pubads().enableSingleRequest(); } //Add Listener for RenderEnded googletag.pubads().addEventListener('slotRenderEnded', function (event) { if (!event.isEmpty) { if (typeof LocalAdLoaded === "function") { LocalAdLoaded(event); } if (gpt_ResponsiveHomepage) { if (typeof positionAd === "function") { positionAd(); } } if (event.size[0] == "480" || event.size[1] == "480") { $('.gpt-InScrollBox').css('display', 'block'); gptEvent_Debug = gptEvent_Debug + 'Interscroller ' + event.size + ' rendered: ' + gpt_GetElapsedTime() + '
'; } else { gptEvent_Debug = gptEvent_Debug + event.size + ' rendered: ' + gpt_GetElapsedTime() + '
'; } } }); if (gpt_AdFile !== 'PU') { googletag.pubads().collapseEmptyDivs(); } googletag.enableServices(); //Populate Defined Ad Slots $(".gpt-ad-defined").each(function (index) { var adId = $(this).attr('id'); googletag.cmd.push(function () { googletag.display(adId); }); }); gptStatus_Debug = 'GPT Complete'; }); } //-------------------------------------------------------------------------- function gpt_DisplayDebug() { //Clone the template and append to Body $(document.body).append($('#gpt-DebugDiv').clone()); $('#gpt-DebugDiv').remove(); //Populate the Values gpt_LoadDebugValues(); //Display and scroll to debug section $('.gpt-DebugDiv').css('display', 'block'); window.scrollTo(0, document.body.scrollHeight); } //-------------------------------------------------------------------------- function gpt_LoadDebugValues() { $('.gpt-DebugBtn').blur(); $('.gptVersion_Debug').text(gpt_Version); $('.gptAdFile_Debug').html(gpt_AdFile); $('.gptEvent_Debug').html(gptEvent_Debug); $('.gptCustomTargeting_Debug').html(gptCustomTargeting_Debug); $('.gptSite_Debug').text(gptSite_Debug); $('.gptContextualResult_Debug').text(gptContextualResult_Debug); $('.gptContextualInit_Debug').text(gptContextualInit_Debug); $('.gptContextualURL_Debug').text(gptContextualURL_Debug); $('.gptContextualReady_Debug').text(gptContextualReady_Debug); $('.gptMoatReady_Debug').text(gptMoatReady_Debug); $('.gptMoatInit_Debug').text(gptMoatInit_Debug); $('.gptTestENV_Debug').text(gptTestENV_Debug); $('.gptDisableAds_Debug').text(gptDisableAds_Debug); $('.gptStatus_Debug').text(gptStatus_Debug); $('.gptPage_Debug').text(gptPage_Debug); $('.gptInvalidAdSize_Debug').html(gptInvalidAdSize_Debug); } //-------------------------------------------------------------------------- function gpt_GrapeShotDebug() { $('.gpt-DebugBtn').blur(); window.open("http://admin-elsevier.grapeshot.co.uk/custom/bookmarklet.cgi?blocking=1&vn=2&url=" + encodeURIComponent(document.location), "GRAPESHOT_POPUP", "width=650,height=600,scrollbars=yes,screenX=40,screenY=50,menubar=no,toolbar=no,resizable=yes", "Custom").focus(); } //-------------------------------------------------------------------------- function gpt_ShowConsole() { $('.gpt-DebugBtn').blur(); googletag.openConsole(); } //--------------------------------------------------------------------------
FAQs
Can herpes virus cause arthritis? ›
Many viruses could be responsible for causing viral arthritis, the most common being Parvovirus, alphavirus, rubella, Hepatitis B, C, and flavivirus. Some other viruses can also cause arthritis/arthralgia rarely. These are EBV, HIV, mumps, herpes, and cytomegalovirus (CMV).
Can herpes affect joints? ›The demonstration of acute arthritis during herpes simplex virus and cytomegalovirus infection adds a newly recognized feature to the protean manifestations of these viral infections and enlarges the spectrum of viral agents known to be associated with arthritis.
What are the symptoms of viral arthritis? ›The most common symptom of reactive arthritis is pain, stiffness and swelling in the joints and tendons, most commonly the knees, feet, toes, hips and ankles.
Can cytomegalovirus cause arthritis? ›Cytomegalovirus (CMV) infection has been implicated in cardiovascular disease and rheumatoid arthritis for >20 years and is associated with increased disease severity and higher numbers of complications.
What kind of leg pain does herpes cause? ›Recurrent outbreaks of genital herpes are common, and many patients who recognize recurrences have prodromal symptoms, either localized genital pain, or tingling or shooting pains in the legs, hips or buttocks, which occur hours to days before the eruption of herpetic lesions.
Which two areas of the body does herpes affect? ›Herpes simplex virus (HSV) type 1 and type 2.
Type 1 usually causes cold sores or fever blisters around the mouth. Type 2 usually causes sores on the genitals (sexual organs).
Herpes can also spread to internal organs, such as the liver and lungs. Infants infected with herpes are treated with acyclovir, an antiviral drug. They usually receive several weeks of intravenous acyclovir treatment, often followed by several months of oral acyclovir.
How do you get rid of viral arthritis? ›What is the treatment for viral arthritis? Your healthcare provider may prescribe nonsteroidal anti-inflammatory drugs (NSAIDs) to reduce inflammation and pain. If you have hepatitis B, hepatitis C or HIV, your provider may treat the underlying infection with antiviral medications.
What triggers viral arthritis? ›Viruses that can give rise to viral arthritis include the following : Parvovirus B19. Hepatitis viruses ( hepatitis A virus [HAV], hepatitis B virus [HBV], and HCV) Rubella virus. Alphaviruses and flaviviruses.
Is viral arthritis permanent? ›For many patients, the episode of viral arthritis is self-limiting and does not cause permanent joint injury, while other patients may experience significant systemic disease and disabling joint symptoms.
Should I worry about cytomegalovirus? ›
Cytomegalovirus (CMV) is a common virus. Once infected, your body retains the virus for life. Most people don't know they have CMV because it rarely causes problems in healthy people. If you're pregnant or if your immune system is weakened, CMV is cause for concern.
Can herpes cause chronic fatigue? ›Chronic fatigue syndrome (CFS) is a neurological disease that is accompanied by excessive fatigue or tiredness. There are several reports confirming the association between human herpesvirus 6 (HHV-6) infection and CFS illness.
Does herpes affect the brain? ›Key points. Herpes meningoencephalitis is an infection of the brain and brain covering (meninges) caused by the herpes simplex virus. It is a medical emergency that requires treatment right away.
Does herpes cause neurological problems? ›The herpes viruses are responsible for significant neurological morbidity. Three of the 8 human herpes virus types—herpes simplex virus type 1 (HSV-1), HSV-2, and varicella zoster virus—establish latency in the peripheral sensory ganglia and persist in the host for a lifetime.
Where does herpes simplex hide in the body? ›“Once people are infected with herpes simplex, the virus stays in the body for the rest of their lives,” says Dr. Carolyn Deal, who heads the sexually transmitted diseases branch at NIH. Symptoms may first appear about 2 weeks after infection. After that, the herpes virus goes into hiding in your nerve cells.
What does herpes do inside the body? ›The herpes simplex viruses are latent, meaning they can live in the body without causing symptoms. After the initial infection, the virus gets into the nerve roots and spreads to the sensory nerve ganglia, the junctions where nerves from different parts of the body come together.
Where does herpes break out on the body? ›Genital herpes sores can appear on your vagina, vulva, cervix, penis, scrotum (balls), butt, anus, or upper thighs.
Can herpes simplex be fatal? ›Deaths from herpes simplex virus type 1 (HSV-1) and herpes simplex virus type 2 (HSV-2) are rare. A major exception is perinatally acquired HSV-1 or HSV-2 infection where the neonatal death rate is substantial. Fatal HSV infection also occurs occasionally in pregnant women.
What brain process causes herpes? ›HSV-1 Infection of the Central Nervous System. Herpetic simplex encephalitis (HSE) is produced by the active replication of HSV-1 in neuronal cells in the brain (Gnann and Whitley, 2017).
Can herpes cause rheumatoid arthritis? ›Conclusions: Herpes viruses may have a role in RA, although alternative explanations are possible: (a) defects in cellular immunity in patients with RA may result in a relatively high viral load; (b) patients with RA may be more prone to infection/reactivation.
What damage does herpes do to your body? ›
In general, complications are rare. And they usually occur with the first-time (primary) genital herpes outbreak. Some of these complications include: Meningitis, an infection of the fluid (cerebrospinal fluid, or CSF) and tissues (meninges) that surround the brain and spinal cord.
Can herpes cause chronic inflammation? ›One clinically significant disease that is caused by HSV-1 is herpetic stromal keratitis (HSK) an intense inflammatory response triggered by the viral infection of the corneal stroma [3, 45, 54]. If left untreated, the chronic inflammatory response leads to the formation of lesions, scarring, and eventually blindness.
What STD causes rheumatoid arthritis? ›Gonococcal arthritis is a rare complication of the sexually transmitted infection (STI) gonorrhea. It generally causes painful inflammation of the joints and tissues. The arthritis tends to affect women more than it affects men.
What is mono arthritis? ›Monoarthritis refers to the clinical presentation of pain or swelling in a single joint. 1. The diagnosis can pose a considerable challenge in the primary care setting because the pain may be limited to the joint, or it may represent early manifestation of a systemic disease. 2.
Is herpes an autoimmune virus? ›Herpesvirus infection has potential roles in both initiating the autoimmune process and exacerbating disease progression. In particular, EBV has a proposed role in initiating the anti-nucleoprotein antibodies that are characteristic of SLE through molecular mimicry.
Which organ is affected by herpes? ›Genital herpes affects the genitals, buttocks or anal area. Genital herpes is a sexually transmitted disease (STD). It affects the genitals, buttocks or anal area. Other herpes infections can affect the eyes, skin, or other parts of the body.
What happens if herpes simplex goes untreated? ›Herpes can be painful, but it generally does not cause serious health problems like other STDs can. Without treatment, you might continue to have regular outbreaks, or they could only happen rarely. Some people naturally stop getting outbreaks after a while. Herpes typically does not get worse over time.
What does herpes do to the brain? ›Diseases Overview. Herpes simplex encephalitis (HSE) is a rare neurological disorder characterized by inflammation of the brain (encephalitis). Common symptoms include headaches, fevers, drowsiness, hyperactivity, and/or general weakness.
Does herpes shorten your lifespan? ›It does not cause long-term ill health or affect longevity of life. People who get genital herpes can and do lead perfectly normal lives.
Does herpes destroy your immune system? ›Herpesviruses owe their successful spread to their complexity, which has enabled them to effectively slow down the human immune system in several different ways.
What type of herpes is permanent? ›
Genital herpes is likely the most feared and least understood sexually transmitted infection (STI). There is no cure, so people infected with herpes have it forever. Though the virus is rarely life-threatening for most people with it, it's extremely dangerous for pregnant women.
Can herpes affect your kidneys? ›The present study reports a case of a patient developing acute kidney injury secondary to herpes simplex after receiving acyclovir. Other potential mechanisms of injury include acute interstitial nephritis and acute tubular necrosis.
How do you know if you have internal herpes? ›Typical symptoms of genital herpes include: Internal and external blisters and sores that are small, fluid filled, and often occur in clusters. Itching or burning feeling in the genital or anal area. Pain in the legs, buttocks, or genital area.