";r.append(l)}):o.log("No more content to be loaded for filterTypeKey '"+t+"'"),e.hasMoreContent?(o.log("More content can be loaded; updating page number"),i(".dig-deeper-nav-item.selected").attr("data-page",n)):(o.log("No more content to be loaded; removing button"),i("#digDeeperLoadMore_"+t).remove()),void 0):(o.log("Unable to load more content for DigDeeper"),void 0)})}};i(function(){s.init()})}),TT(["context/ui","util/logging","lib/jquery","util/debug"],function(e,t,i,n){function a(){i("div.unselected-previous-issues").hide();var e=i("div.selected-previous-issues").find("button.eproducts-load-more");e&&e.show(),i("div.ezine-previous-issues-menu").show().on("click","li",function(e){e.preventDefault(),o(e)}),i("section.ezine-previous-issues").on("click","button.eproducts-load-more",function(){s()})}function o(e){var t=i(e.target).text(),n=i("div.selected-previous-issues").data("issueYear");i("div.selected-previous-issues").hide().attr("class","ezine-previous-issues-list unselected-previous-issues"),i("#previous_"+t).show().attr("class","ezine-previous-issues-list selected-previous-issues"),i("ul.dropdown-menu").hide(),i("ul.dropdown-menu").find("li").each(function(){i(this).text()==t&&i(this).hide(),i(this).text()==n&&i(this).show()}),i("#issuesDropdownYear").text(t),i("div.dropdown-toggle").removeClass("selected");var a=i("div.selected-previous-issues").find("button.eproducts-load-more");a&&a.show()}function s(){var e=i("div.selected-previous-issues"),t=e.find("button.eproducts-load-more"),n=e.data("issueYear"),a=parseInt(e.attr("data-load-more-page"),10),o=i("#allPreviousIssues").data("ezineId"),s="/techtarget-ecm/services/loadMore/previousIssues/"+o+"/"+n+"/"+a;l.log("Loading more issues with url: "+s),i.getJSON(s).always(function(n){if(!n.success)return l.log("Unable to load more content for Previous Issues"),void 0;if(n.content.length){var o=e.find("ul.ezine-previous-issues-list").length,s='
")}else l.log("No more previous issues to be loaded");n.hasMoreContent?(l.log("More issues can be loaded; updating page number"),e.attr("data-load-more-page",a+1)):(l.log("No more issues to be loaded; removing button"),t.remove())})}var r=n.check("debug_ui"),l=t.getLogger(r);
i(function(){a()})}),TT(["context/ui","util/logging","lib/jquery","ui/utils"],function(e,t,i,n){function a(){i("div.unselected-topic").hide();var e=i("div.selected-topic").find("button.eproducts-load-more");e&&e.show(),i("div.eproducts-lp-topics-menu").show().on("click","li",function(e){e.preventDefault(),o(e)}),i("section.eproducts-lp-topics").on("click","button.eproducts-load-more",function(){s()})}function o(e){var t=i(e.target).parent().data("topicId"),a=i("div.selected-topic").data("topicId");i("div.selected-topic").hide().attr("class","eproducts-lp-topics-list unselected-topic"),i("#topic_"+t).show().attr("class","eproducts-lp-topics-list selected-topic"),i("ul.dropdown-menu").hide(),i("ul.dropdown-menu").find("li").each(function(){i(this).data("topicId")==t&&i(this).hide(),i(this).data("topicId")==a&&i(this).show()}),i("#topicsDropdownName").text(i(e.target).text()),i("div.dropdown-toggle").removeClass("selected"),i(".eproducts-lp-topics-list").each(function(){i(this).find("li h4").css("height","")}),n.adjustHomepageElements();var o=i("div.selected-topic").find("button.eproducts-load-more");o&&o.show()}function s(){var e=i("div.selected-topic"),t=e.find("button.eproducts-load-more"),n=e.data("topicId"),a=parseInt(e.attr("data-load-more-page"),10),o=parseInt(e.data("dedupe"),10),s=i("#allFilteredContent").data("siteId"),l=i("#allFilteredContent").data("typedef"),c=i("#allFilteredContent").data("locale"),d="/techtarget-ecm/services/loadMore/filteredTopicEProducts/"+c+"/"+s+"/"+n+"/"+l+"/"+a+"/"+o;r.log("Loading more eproducts with url: "+d),i.getJSON(d).always(function(n){if(!n.success)return r.log("Unable to load more content for filtered topics"),void 0;if(n.content.length){var o,s,l,c=e.find("ul.eproducts-lp-topics-list").length,d='
")}else r.log("No more eproducts to be loaded");n.hasMoreContent?(r.log("More eproducts can be loaded; updating page number"),e.attr("data-load-more-page",a+1)):(r.log("No more eproducts to be loaded; removing button"),t.remove())})}var r=t.getLogger(!0);i(function(){a()})}),TT(["context/ui","util/logging","lib/jquery","util/debug","ui/utils","context"],function(e,t,i,n,a){function o(){i("#allFilteredContent a.button.black-button").on("click",null,function(e){e.preventDefault(),loadMore()}),i("ul.filter-by-topic-list").on("click","li",function(e){e.preventDefault(),s(e)})}function s(e){var t=i(e.target).parent().data("topicId"),n=i("div.selected-topic").data("topicId");i("div.selected-topic").hide().attr("class","unselected-topic"),t==n?i("#topic_all").show().attr("class","selected-topic"):i("#topic_"+t).show().attr("class","selected-topic"),i(".contributor-articles-list > li > div > h5").css("height",""),a.adjustHomepageElements(),t==n?i("ul.filter-by-topic-list").find(".on").attr("class",""):i("ul.filter-by-topic-list").find("li").each(function(){i(this).data("topicId")==t&&i(this).attr("class","on"),i(this).data("topicId")==n&&i(this).attr("class","")})}var r=n.check("debug_ui");t.getLogger(r),i(function(){o()})}),TT(["context","context/ui","util/logging","util/debug","lib/jquery"],function(e,t,i,n,a){function o(){var e=a("section.sign-up-wrapper.cascading-reg div#inlineRegistration");if(e.length){var t=a("#inlineRegSubmit",e);if(t.length){var i=t.eq(0).attr("value");i&&e.on("tt.inlinereg.fullReg.load",function(){t=a("#inlineRegSubmitPage2",e),t.length&&t.eq(0).attr("value",i)})}}}function s(){var t=a("body#cascading-fulfillment div.download-now-info a.button.teal-button");if(t.length){var i=t.eq(0).attr("href");if(i){var n="ff-download-"+e.dloid;r(i,n),t.click(function(e){e.preventDefault(),r(i,n)})}}}function r(e,t){u&&!u.closed?(d.log("Existing download window handle: ",u),u.focus()):l(e,t)}function l(e,i){var n=Math.max(.8*t.viewport.w,800),a=Math.max(.8*t.viewport.h,600),o=screen.height/2-a/2,s=screen.width/2-n/2,r="scrollbars=1";r+=",height="+a+"px",r+=",width="+n+"px",r+=",top="+o+"px",r+=",left="+s+"px",u=window.open(e,i,r,!1),u&&!u.closed?(d.log("New download window handle: ",u),u.focus()):d.log("No download window handle: must have been blocked")}var c=n.check("debug_dlo"),d=i.getLogger(c);e.isDloFulfillment?t.on("ready",s):e.isDloWidget?t.on("ready",o):d.log("Context contains no download offer");var u}),TT(["context","context/ui","util/logging","util/debug","lib/jquery"],function(e,t,i,n,a){function o(){var e=a("section.sign-up-wrapper.cascading-reg div#inlineRegistration");if(e.length){var t=a("#inlineRegSubmit",e);if(t.length){var i=t.eq(0).attr("value");i&&e.on("tt.inlinereg.fullReg.load",function(){t=a("#inlineRegSubmitPage2",e),t.length&&t.eq(0).attr("value",i)})}}}function s(){var t=a("body#cascading-fulfillment div.download-now-info a.button.teal-button");if(t.length){var i=t.eq(0).attr("href");if(i){var n="ff-download-"+e.uid;r(i,n),t.click(function(e){e.preventDefault(),r(i,n)})}}}function r(e,t){u&&!u.closed?(d.log("Existing download window handle: ",u),u.focus()):l(e,t)}function l(e,i){var n=Math.max(.8*t.viewport.w,800),a=Math.max(.8*t.viewport.h,600),o=screen.height/2-a/2,s=screen.width/2-n/2,r="scrollbars=1";r+=",height="+a+"px",r+=",width="+n+"px",r+=",top="+o+"px",r+=",left="+s+"px",u=window.open(e,i,r,!1),u&&!u.closed?(d.log("New download window handle: ",u),u.focus()):d.log("No download window handle: must have been blocked")}var c=n.check("debug_offer"),d=i.getLogger(c);e.zone==="MARKETING_OFFER_FULFILLMENT"?t.on("ready",s):e.zone==="MARKETING_OFFER"?t.on("ready",o):d.log("You are not on an offer page.");var u}),TT(["context","context/ui","util/cookie","lib/jquery"],function(e,t,i,n){var a="eprodFulfillment",o=window.location.href,s=e.getUser().loggedIn;i.getCookie(a)==o&&s&&n("div.eproducts-fulfillment").show(),i.deleteCookie(a),s||t.on("ready",function(){n("#downloadEzineForm").submit(function(){i.setCookie(a,o)})})}),TT(["context","ui/main","util/cookie","util/logging","util/debug","lib/jquery"],function(e,t,i,n,a,o){var s={init:function(){this.bindEventHandlers()},bindEventHandlers:function(){if(t.mq>t.mqs.mobile){var s=a.check("debug_leadgen"),r=n.getLogger(s);r.log("LeadGen not at mobile"),r.log("lead gen start");var l,c=e.getUser(),d=e.lang,u="SS_OVPSREG_"+e.adId,p=33,h=e.showLeadGenOverlay;switch(d){case"de":l=window.location.hostname.indexOf(".eng.")!="-1"?"https://de-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://de-qa.bitpipe.com":"https://de.bitpipe.com",r.log("envUrl:"+l);break;case"es":l=window.location.hostname.indexOf(".eng.")!="-1"?"https://es-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://es-qa.bitpipe.com":"https://es.bitpipe.com",r.log("envUrl:"+l);break;case"fr":l=window.location.hostname.indexOf(".eng.")!="-1"?"https://www-eng.bitpipe.fr":window.location.hostname.indexOf(".qa.")!="-1"?"https://www-qa.bitpipe.fr":"https://www.bitpipe.fr",r.log("envUrl:"+l);break;default:l=window.location.hostname.indexOf(".eng.")!="-1"?"https://www-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://www-qa.bitpipe.com":"https://www.bitpipe.com",r.log("envUrl:"+l)}var g=window.location.hostname.indexOf(".eng.")!="-1"?"https://go-eng.techtarget.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://go-qa.techtarget.com":"https://go.techtarget.com",m={apiBaseURL:l+"/data/api/leadGenAssets?",dgUserId:c.uid,vcmId:e.id,maxAssets:1};r.log("Reading overlayCookie value:"+i.getCookie("tt.gtm.inlinereg.fullReg.submitted.overlay"));var f=i.getCookie("tt.gtm.inlinereg.fullReg.submitted.overlay");if(r.log(c+" is lead gen user"),r.log(f+" is the overlayCookie"),r.log("show leadgen overlay:"+h),r.log("TT.mq:"+t.mq),r.log("TT.mqs.tablet:"+t.mqs.tablet),r.log("TT.mqs.:"+t.mqs.mobile),c.loggedIn&&f==1&&h){var b;r.log("has cookie, not at mobile, call api and show lead gen overlay");var v=function(t,n){if(t!==null){var a=Math.floor(Math.random()*99999+0);o.each(t,function(t,s){if(r.log("overlay splash:"+e.i18n("vendor_resource.overlay_title",s.thumbnail)),b='
",b+=''+e.i18n("vendor_resource.download_button")+"",n){r.log("Activity Tracking IMG SRC BEGIN set");var l=g+"/activity/activity.gif?activityTypeId="+p+"&r="+a+"&userid="+c.uid+"&resid="+s.resourceId+"&asrc="+u;b+='',r.log("Activity Tracking IMG SRC END set")}b+="
",o(b).insertAfter("#page-footer"),o("#postreg-splash").css("display","block"),o("#postreg-splash .click-close").on("click",function(){r.log("close clicked lead gen overlay"),o("#postreg-splash").css("display","none"),i.deleteCookie("tt.gtm.inlinereg.fullReg.submitted.overlay","/"),localStorage.removeItem("overlayItem"),r.log("closed-cookie and session storage Item deleted for lead gen overlay")})})}};r.log("Local Storage OverlayItem:"+sessionStorage.getItem("overlayItem"));var w=localStorage.getItem("overlayItem");w?(r.log("Second Request from the session pull overlay from local storage "),v(JSON.parse(w),!1)):o.ajax({type:"GET",url:m.apiBaseURL+"dgUserId="+m.dgUserId+"&vcmId="+m.vcmId+"&maxAssets="+m.maxAssets,dataType:"json",timeout:1e4,crossDomain:!0,success:function(e){r.log("Lead Gen API Connected"),r.log("Lead Gen API Returned String title"+e[0].title),localStorage.setItem("overlayItem",JSON.stringify(e)),v(e,!0)},error:function(){r.log("Error connecting. Error: "+data.error)}}),r.log("overlay logging the response"),r.log("End TT.mq:"+t.mq)}r.log("End TT.mq:"+t.mq)}}};o(function(){s.init()})}),TT(["context","ui/main","util/cookie","util/logging","util/debug","util/url","lib/jquery"],function(e,t,i,n,a,o,s){var r={init:function(){this.bindEventHandlers()},bindEventHandlers:function(){function r(e,t,i,o){var s=a.check("debug_rr"),r=n.getLogger(s),l=new Date;r.log("Setting right rail items with TTL of :- "+o);var c={items:t,lang:i,expiry:l.getTime()+o};localStorage.setItem(e,JSON.stringify(c))}function l(e){var t=localStorage.getItem(e);if(!t)return null;var i=JSON.parse(t),n=new Date;return n.getTime()>i.expiry?(localStorage.removeItem(e),null):i}if(t.mq>t.mqs.mobile){var c=a.check("debug_rr"),d=n.getLogger(c);d.log("Right Rail not at mobile"),d.log("Right rail start");var u,p=e.getUser(),h=e.lang,g=o.getParam("utm_source")!=""?o.getParam("utm_source"):i.getCookie("tt_src"),m=o.getParam("debug_rrOverRide")!=""?parseInt(o.getParam("debug_rrOverRide")):null,f=window.location.hostname.indexOf(".eng.")!="-1"?!0:window.location.hostname.indexOf(".qa.")!="-1"?!0:!1,b="SS_RRAIL_"+g+"_"+e.adId,v=p.firstName!=null?p.firstName.replace("+"," "):e.i18n("rightRailOverlay.hello"),w=e.showRightRailOverlay;switch(h){case"de":u=window.location.hostname.indexOf(".eng.")!="-1"?"https://de-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://de-qa.bitpipe.com":"https://de.bitpipe.com",d.log("envUrl:"+u);break;case"es":u=window.location.hostname.indexOf(".eng.")!="-1"?"https://es-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://es-qa.bitpipe.com":"https://es.bitpipe.com",d.log("envUrl:"+u);break;case"fr":u=window.location.hostname.indexOf(".eng.")!="-1"?"https://www-eng.bitpipe.fr":window.location.hostname.indexOf(".qa.")!="-1"?"https://www-qa.bitpipe.fr":"https://www.bitpipe.fr",d.log("envUrl:"+u);break;default:u=window.location.hostname.indexOf(".eng.")!="-1"?"https://www-eng.bitpipe.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://www-qa.bitpipe.com":"https://www.bitpipe.com",d.log("envUrl:"+u)}window.location.hostname.indexOf(".eng.")!="-1"?"https://go-eng.techtarget.com":window.location.hostname.indexOf(".qa.")!="-1"?"https://go-qa.techtarget.com":"https://go.techtarget.com";var y={apiBaseURL:u+"/data/api/leadGenAssets?",dgUserId:p.uid,vcmId:e.id,maxAssets:3,ttl:864e5};d.log("Reading Registration session cookie value:"+i.getCookie("tt.gtm.inlinereg.fullReg.submitted.session"));var k=i.hasCookie("tt.gtm.inlinereg.fullReg.submitted.session");if(d.log(p+" is lead gen user"),d.log("show rightRailOverlay: "+w),d.log("TT.mq:"+t.mq),d.log("User UID: "+p.uid),d.log("Is same session as Registration: "+k),p.uid&&!k&&w=="true"){var T;d.log("Does not have cookie, not at mobile, call api and show right rail splash");var x=function(t){function n(){i.hasCookie("isFirstPVInSession")||(d.log("Adding slidIn class and dropping cookie"),s(".right-rail-overlay-inner").addClass("slideIn"),i.setDomainCookie("isFirstPVInSession",1)),s(".rro-expand, .rro-peek-wrapper .view-all").click(function(){s(".site-container").addClass("fixed"),s(".rro-expand, .rro-content-wrapper .rro-peek-wrapper").addClass("hide"),s(".rro-collapse, .right-rail-overlay-mask, .rro-content-wrapper .rro-full-wrapper, .right-rail-overlay-wrapper").addClass("show"),s(".right-rail-overlay-inner").removeClass("slideIn")}),s(".right-rail-overlay-mask, .rro-collapse, .rro-full-wrapper .click-close").click(function(){s(".site-container").removeClass("fixed"),s(".rro-collapse, .right-rail-overlay-mask, .rro-content-wrapper .rro-full-wrapper, .right-rail-overlay-wrapper").removeClass("show"),s(".rro-expand").addClass("show")})}t!==null&&t.length>1&&(Math.floor(Math.random()*99999+0),T='
",s("#site-container").prepend(T),document.readyState==="complete"?(d.log("window.onload event already occurred, using document ready state"),n()):(d.log("Executing rightrail addHtmlClasses method on window.onload event"),window.addEventListener("load",n)))};d.log("Local Storage rightRailItems:"+l("rightRailData"));var A=l("rightRailData");A!=null&&A.lang==e.lang?(d.log("Second Request in same session/domain without TTL expiring fetching from local browser cache"),x(A.items,!1)):s.ajax({type:"GET",url:y.apiBaseURL+"dgUserId="+y.dgUserId+"&vcmId="+y.vcmId+"&maxAssets="+y.maxAssets,dataType:"json",timeout:1e4,crossDomain:!0,success:function(t){d.log("Lead Gen API Connected"),t!==void 0&&t.length!=0?(d.log("Lead Gen API Returned String title"+t[0].title),m&&f?r("rightRailData",t,e.lang,m):r("rightRailData",t,e.lang,y.ttl),x(t,!0)):d.log("No items returned from BP lead gen API call")},error:function(){d.log("Error connecting. Error: "+data.error)}}),d.log("Right Rail logging the response"),d.log("End TT.mq:"+t.mq)}d.log("End TT.mq:"+t.mq)}}};s(function(){r.init()})}),TT(["context","util/logging","util/url","lib/jquery","util/debug"],function(e,t,i,n,a){var o=a.check("debug_ui"),s=t.getLogger(o),r={init:function(){n(".search-results-load-more").show().click(function(){r.loadMore()})},loadMore:function(){n("#searchResults").data("lang");var t=i.getParam("q").split("+").join("%20"),a=i.getParam("type")||"article",o=i.getParam("orgId")||"",r=i.getParam("sortField")||"Relevancy",l=i.getParam("pageNo")||1,c=n("#searchResults").attr("data-loadmorepage"),d=n("div#searchResults").attr("data-searchChannel");if(n("div#searchResults").attr("data-timeZone"),n("div#searchResults").attr("data-filterType"),n("div#searchResults").attr("data-restrictSite"),!t||!a)return s.log("Unable to make load more request..."),void 0;var u="/techtarget-ecm/services/loadMore/search/"+d+"/"+t+"/"+a+"/"+r+"/"+l+"/"+c+"?orgId="+o;n.getJSON(u).always(function(i){return i.success?(i.content.length&&n.each(i.content,function(o,s){var r,l=s.summary?s.summary.length>215?n.trim(s.summary).substring(0,215).split(" ").slice(0,-1).join(" ")+"...":s.summary:"",c=s.date?s.date:"";if(i.isDefinition){var d="";s.resultLinks&&s.resultLinks.length&&(d='
"}n("#searchResults").append(r)}),i.hasMoreContent?n("#searchResults").attr("data-loadmorepage",++c):n(".search-results-load-more").remove(),void 0):(s.log("Unable to load more content for search results"),void 0)})}};n(function(){r.init()})}),TT(["lib/jquery"],function(e){var t={init:function(){this.populateMenu()},populateMenu:function(){var t=e(".chapters-bar").data("required-item");if(t&&e(t).length===0)e(".chapters-bar").hide(),e(".actions-bar-chapters").hide();else{var i=[];e("section.section").each(function(){e(this).data("menu-title")&&i.push('
";t(e).appendTo(t("#main-content .pillar-navbar"))});var y,k,T,x,A,_=window.innerHeight,C=_-240,E=[],S=[],q=[];o(),t(".pillar-navbar ul li a.introduction").click(function(){t(window).animate({scrollTop:0},"500"),t(".actions-bar").css({position:"",top:"",left:""})});var I,M=function(){t(".pillar-navbar ul li a").click(function(){I=t(this).attr("name"),w==0&&n(I)})};M(),t(window).on("load",function(){setTimeout(function(){f=[],b=[],t("#content-body .main-article-chapter").each(function(){u=t(this).offset().top-150,p=t(this).offset().top-130,b.push(p),f.push(u),console.log(p)}).promise().done(function(){I&&n(I)}),t(".pillar-navbar ul li a").click(function(){var e=t(this).attr("name");n(e)}),t(".pillar-navbar ul li a.introduction").click(function(){t(window).animate({scrollTop:0},"500")})},3e3)}),t(".pillar-nav").offset().top,t(window).scroll(function(){v=!0;var n=t(window).scrollTop();t(".fixed-height").scrollTop();var a;t("#content-body").scrollTop()+t("#content-body").height();var o=t("#main-content").offset().top+50;t(".download-button").length&&(a=t(".download-button").offset().top);var s=!1;for(n>=o&&s==0&&t(".download-button").length&&(t(".download-button").addClass("show"),s=!0),e.mq>e.mqs.tablet&&(n>f[0]?f[h-1]>n||(t(".pillar-navbar li").removeClass("active"),t(".pillar-navbar li:last-of-type").addClass("active")):(t(".pillar-navbar li").removeClass("active"),t(".pillar-navbar li:first-of-type").addClass("active"))),i=0;h>i;i++)f[i]>n||n>f[i+1]||(t(".pillar-navbar li").removeClass("active"),t(".pillar-navbar li:nth-of-type("+(i+2)+")").addClass("active"))}),e.mqs.desktop>e.mq&&t(".pillar .pillar-nav .share-bar-desktop").prependTo(".actions-bar").show(),e.mqs.desktop>e.mq&&t("#main-content .pillar-navbar").prependTo("#main-content .content-columns").show()}if(t(".pillar-cluster").length||t(".pillar-bridge").length){var R,H=function(){R=t(".cluster-branding-body-nav-listing").height()};H();var _=window.innerHeight,N=513,P=_-200;s()}t("#sdef").length&&t(".pillar-cluster").length&&t("#content-center #breadcrumb").length&&t("#content-center #breadcrumb").prependTo(".definition-header").css("display","block")}};t(function(){n.init()})}),TT(["context","lib/jquery","util/logging","util/url","util/cookie","util/debug","util/metering"],function(e,t,i,n,a,o,s){function r(e,t,i){if(e.getUser().uid)return h.log("User is logged in"),void 0;if(e.appCode==="150")return h.log("LEADIN"),void 0;var n=e.adId,a=i.getCookie("tt_gm");h.log("Got Cookie"),h.log("TT_GM cookie is: "+a);var o=e.allowedPages;if(h.log("allowedPages: "+o),o>0)if(h.log("Allowed pages >0"),h.log("Checking if cookie exists"),a){h.log("cookie exists"),h.log(a);var s=a.split(",");if(h.log("Get list of metered data"),h.log(s),o>s.length){h.log("list of metered data < allowed Pages"),h.log(s.length);for(var r=0;s.length>r;r++)if(s[r]==n)return h.log("This is an open page"),void 0;h.log("Not an open page, appending new cookie value");var l="tt_gm=";l+=encodeURI(n);for(var c=0;s.length>c;c++)l+=","+encodeURI(s[c]);h.log("New cookie: "+l),i.setDomainCookie("tt_gm",l)}else h.log("Closed Page View")}else h.log("Cookie does not exist"),i.setDomainCookie("tt_gm",encodeURI(n))}function l(e,t,i){function n(e,t,a){return new Promise(function(o,s){return e().then(o).catch(function(r){return t===1?(s(r),void 0):(setTimeout(function(){i.log("retriesLeft: ",t),n(e,t-1,a).then(o,s)},a),void 0)})})}var a,o=t("#content-body"),s=o.find("#download-offer");s.length>0&&(a=s.html(),s.empty()),t(".paywall").length>0&&t(".paywall").removeClass("paywall");var r=t('');if(r.text(u()),i.log("firstText: "+u()),i.log("firstP: "+r.text()),i.log(r),a&&s.html(a),r===null||r.text().length==0)i.log("Length Zero"),o.empty();else{var l=e.configCharCount;l||(l=135),i.log(r);var p=r.text().indexOf(" ",l);i.log("Checking for space"),p==-1&&(p=l,i.log("No Space")),i.log("Getting substrings");var h=r.text().substring(0,p);i.log("text_pre: "+h);var g=r.text().substring(p,r.text().length);i.log("text_pos: "+g),h="
"+h+"...
",i.log("New textPre: "+h),i.log("added text_pre to before"),g.length>0?i.log("text_post greater than 0 length"):i.log("text_post 0");var m=o.html();r.remove(),o.empty(),o.append(h)}var f=e.siteName;if(["searchVirtualDesktop","searchDisasterRecovery","searchSAP","searchAWS","searchOracle","searchVMware","Sustainability","searchCloudComputing","searchCustomerExperience","searchEnterpriseDesktop","searchBusinessAnalytics","searchERP","searchHRSoftware","searchITChannel","searchUnifiedCommunications","searchContentManagement","searchDataBackup","searchHealthIT","searchEnterpriseAI","searchStorage","searchDataManagement","searchDataCenter","searchSoftwareQuality","searchITOperations","searchWindowsServer","searchAppArchitecture","searchMobileComputing","IoTAgenda","WhatIs","searchSecurity","searchNetworking","searchCIO","ComputerWeekly","MicroscopeUK","TheServerSideCOM"].indexOf(f)!==-1){i.log("site is approved, set smartforms");var b=document.createElement("div");b.id="inlineRegistrationWrapper";var v=document.createElement("smartforms-techtarget");v.setAttribute("format","inline"),v.setAttribute("site-id",e.siteId),v.setAttribute("site-name",e.siteName.toLowerCase()),v.setAttribute("app-code",e.appCode),v.setAttribute("language",e.lang),(e.siteName==="ComputerWeekly"||e.siteName==="MicroscopeUK")&&v.setAttribute("color","#506784"),e.siteName==="TheServerSideCOM"&&(v.setAttribute("color","#2e5e8d"),v.setAttribute("btn-hover","#294968")),e.adId&&v.setAttribute("ad-id",e.adId),e.incentiveId&&v.setAttribute("incentive-id",e.incentiveId),e.abtracking1&&v.setAttribute("ab-tracking1",e.abtracking1),o.append(b),b.append(v),t("div#inlineRegistrationWrapper").nextAll().remove(),c(e,t,i,"inlineRegistration"),document.createElement("p");var w=document.createElement("div");w.className="paywall",w.innerHTML=m,o.append(w),t("#embeddedDiscussions").remove();var y=document.querySelector("smartforms-techtarget");i.log("smartformComponent is: "+y),y&&y.addEventListener("smartformsMessage",function(e){if(i.log("smartforms event: "+e.detail),e.detail.status==="success"){var t="tt.gtm.inlinereg.fullReg.submitted.overlay",n="tt.gtm.inlinereg.fullReg.submitted.session";document.cookie=t+"=1; path=/",document.cookie=n+"=1; path=/",window.location.reload(!0)}})}else{i.log("site is not approved, set userreg");var w=document.createElement("div");w.className="paywall";var b=document.createElement("div");b.id="inlineRegistrationWrapper";var v=document.createElement("div");v.id="inlineRegistration",o.append(b),b.append(v),t("div#inlineRegistrationWrapper").nextAll().remove(),c(e,t,i,"inlineRegistration"),document.createElement("p"),o.append(w),w.innerHTML=m,t("#embeddedDiscussions").remove(),i.log("Now waiting for window on load"),n(d,15,500)}}function c(e,t,i,n){var a=e.siteName;if(["searchVirtualDesktop","searchDisasterRecovery","searchSAP","searchAWS","searchOracle","searchVMware","Sustainability","searchCloudComputing","searchCustomerExperience","searchEnterpriseDesktop","searchBusinessAnalytics","searchERP","searchHRSoftware","searchITChannel","searchUnifiedCommunications","searchContentManagement","searchDataBackup","searchHealthIT","searchEnterpriseAI","searchStorage","searchDataManagement","searchDataCenter","searchSoftwareQuality","searchITOperations","searchWindowsServer","searchAppArchitecture","searchMobileComputing","IoTAgenda","WhatIs","searchSecurity","searchNetworking","searchCIO","ComputerWeekly","MicroscopeUK","TheServerSideCOM"].indexOf(a)!==-1){i.log("site is approved, append smartforms lib");var o=document.createElement("script");o.type="module";var s=e.regHost+"/registration/v2/ui/smartforms-techtarget/smartforms-techtarget.esm.js";i.log("next gen reg lib: "+s),o.src=s,document.head.appendChild(o)}else{i.log("site is not approved, append userreg lib");var o=document.createElement("script");o.type="text/javascript";var r=e.userRegLib;r.includes("http://")&&r.replace("http://","https://"),r.includes("users.techtarget")&&(window.location.host.includes(".eng")?r=r.replace("users.techtarget","users-eng.techtarget"):window.location.host.includes(".qa")&&(r=r.replace("users.techtarget","users-qa.techtarget"))),i.log("User reg lib: "+r),o.src=r,document.head.appendChild(o),executeInlineByPageAndParams(e.siteName.toLowerCase(),n,"inlineregister","4",null)}}function d(){if(t("#inlineRegistration_AppCode").length>0&&t("#inlineRegistration_AppCode").attr("value")!="150"&&t("#inlineRegistration_AppCode").attr("value")!="55"){h.log("Appcode of hidden field: "+t("#inlineRegistration_AppCode").attr("value")),h.log("Setting hidden Values"),t("#inlineRegistration_AppCode").attr("value","151"),t("#inlineRegistration_AdId").attr("value",e.adId),h.log("Combining error p tags");var i,n="",a=t("#inlineRegistration_Email").parent();return t("#inlineRegistration_Email").siblings().each(function(){t(this).attr("class")=="signupErrors"&&(n+=t(this).html()),t(this).empty(),t(this).append(n),i=t(this).html(),t(this).remove()}),a.append("
"+i+"
"),h.log("return promise: "+e.appCode),Promise.resolve()}return h.log("reject promise: "+e.appCode),Promise.reject()}function u(){var e=!0,i="";return t("#content-body *").each(function(){var n=t(this).text().length!=0;n&&e&&(h.log("Found text"),h.log("Text: "+t(this).text()),e=!1,i=t(this).text())}),i}var p=o.check("debug_inlinereg"),h=i.getLogger(p);if(a.hasCookie("doi")){if(h.log("cookie doi exists, delete and show stop form"),a.deleteDomainCookie("doi"),["searchVirtualDesktop","searchDisasterRecovery","searchSAP","searchAWS","searchOracle","searchVMware","Sustainability","searchCloudComputing","searchCustomerExperience","searchEnterpriseDesktop","searchBusinessAnalytics","searchERP","searchHRSoftware","searchITChannel","searchUnifiedCommunications","searchContentManagement","searchDataBackup","searchHealthIT","searchEnterpriseAI","searchStorage","searchDataManagement","searchDataCenter","searchSoftwareQuality","searchITOperations","searchWindowsServer","searchAppArchitecture","searchMobileComputing","IoTAgenda","WhatIs","searchSecurity","searchNetworking","searchCIO","ComputerWeekly","MicroscopeUK","TheServerSideCOM"].indexOf(e.siteName)!==-1){h.log("site is approved, append smartforms DOI lib");var g=document.createElement("script");g.type="module";var m=e.regHost+"/registration/v2/doi/sf-tt-doi-stop-message/sf-tt-doi-stop-message.esm.js";h.log("doi reg lib: "+m),g.src=m,document.head.appendChild(g);var f=t(".main-article-title").text(),b=document.createElement("sf-tt-doi-stop-message");b.setAttribute("site-id",e.siteId),b.setAttribute("content-title",f),(e.siteName==="ComputerWeekly"||e.siteName==="MicroscopeUK")&&b.setAttribute("color","#506784"),e.siteName==="TheServerSideCOM"&&b.setAttribute("color","#2e5e8d"),t("#content-body").hide(),t(b).insertAfter("#content-body")}}else{h.log("cookie doi does not exist");var v=e.getUser().uid;v&&a.deleteDomainCookie("tt_gm"),e.isServerSideMetering=="false"&&(r(e,n,a),s.isMetered(e,a)?(h.log("Hiding Content"),v?(e.appCode=99,a.deleteDomainCookie("tt_gm")):(t("#download-offer")&&t("#download-offer").remove(),t("#collectionDownload")&&t("#collection-reg-modal-trigger")&&(t("#collectionDownload").remove(),t(".collection-offer-modal")&&t(".collection-offer-modal").remove()),t("#pillar-reg-modal-trigger")&&(t("#pillar-reg-modal-trigger").remove(),t(".pillar-offer-modal")&&t(".pillar-offer-modal").remove()),e.collection=="GUIDE"?t("body").addClass("guide-login"):t("body").addClass("reg-login"),t("body").addClass("frontEndMetering"),t("#halfpage-rightrail").parent().addClass("sidebarAdMetering"),e.collection=="EZINE"&&t("#mu-2-rightrail").parent().addClass("sidebarAdMetering"),e.appCode="151",l(e,t,h))):e.appCode=="150"&&(t("body").addClass("leadIn"),t("#halfpage").parent().addClass("sidebarAdLeadIn"),e.collection=="EZINE"&&t("#halfpage").parent().removeClass("sidebarAdLeadIn")))}}),TT(["lib/jquery"],function(e){function t(e){var t="[\\?&]"+e+"=([^]*)",i=RegExp(t),n=window.location.href,a=i.exec(n);return a==null?"":a[1]}function i(t){var i="Question ",n=" of ";e("header.es").length>0&&(i="Pregunta ",n=" de "),s.push('
");for(var d=0;quiz.questions[i].responses.length>d;d++){var u="More about the answer:";e("header.es").length>0&&(u="Más sobre la respuesta"),t("q"+i)==""?d==quiz.questions[i].answer?quiz.questions[i].moreInfo!=""?s.push('
")}function a(){var t=r/l,i="Great job! You got ",n="Sorry. You got ",a=" out of ",o=" questions correct.";return e("header.es").length>0&&(i="¡Buen trabajo! Usted obtuvo ",n="Lo sentimos. Usted obtuvo ",a=" de ",o=" respuestas correctas."),.5>t?''+n+r+a+l+o+"":''+i+r+a+l+o+""}function o(){for(var o=t("q0")==""?!0:!1,r=window.location.href,l="",c=e("#quiz-wrapper"),d=0;quiz.questions.length>d;d++)o?(i(d),l+="q"+d+"="+quiz.questions[d].answer+"&"):n(d);if(quiz.title==""||quiz.title==null){var u="Take our quiz!";e("header.es").length>0&&(u="¡Responda este test!")}else var u=quiz.title;if(o){var p="See How You Did",h="View Answers";e("header.es").length>0&&(p="Vea cómo le fue en el test",h="Ver respuestas"),c.append('
'+u+'
")}else{var g="";if(g+='
'+u+"
"+a(),quiz.cert_link!=""&&quiz.cert_link!=null){var m="If you need ",f="CPE credits ",b="you can ",v="download a certificate";e("header.es").length>0&&(m="Si necesita ",f="créditos CPE ",b="puede ",v="descargar un certificado"),g+='
"}var w="Look below to see what you got right, what you got wrong, and why!";e("header.es").length>0&&(w="¡Revise qué es lo que respondió bien, qué respondió mal y por qué!"),g+='
",c.append(g),e(function(){var t=e(".quizScore");t.length>0&&e("html, body").animate({scrollTop:e(t).offset().top-300})})}e(window).on("load",function(){e(".quizQuestionContent ul li label, .quizQuestionContent ul li > span").each(function(){e(this).text(function(e,t){return t.replace(/^\d+\.\s*/,"").replace("A. ","").replace("B. ","").replace("C. ","").replace("D. ","").replace("E. ","").replace("F. ","").replace("G. ","").replace("a. ","").replace("b. ","").replace("c. ","").replace("d. ","").replace("e. ","").replace("f. ","").replace("g. ","")})})})}if(e("#quiz-wrapper").length>0){var s=Array(),r=0,l=0;o()}}),TT(["context","util/debug","util/logging","util/url","lib/jquery"],function(e,t,i,n,a){var o=t.check("debug_contactus"),s=i.getLogger(o),r={init:function(){a("#contactUsForm").submit(function(t){s.log("User submitted contact us form.");var i=Array(),n=a("#sender_name").val(),o=a("#site_name").val(),r=a("#emailTextBody").val(),l=a("#contactUsFormContact").val(),c=a("#from_Address").val();return c.length&&l!="SELOPT"&&r.length?grecaptcha.getResponse().length?(datap={emailTextBody:e.i18n("contactUsForm.email_text",n,o,r),toAddresses:[{name:l,emailId:l}],fromAddress:{name:c,emailId:c},emailSubject:e.i18n("contactUsForm.email_subject")},a.ajax({type:"POST",url:"/techtarget-ecm/services/email/post",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(datap),success:function(){}}),t.preventDefault(),a("#submit_thankyou_msg").css("display","block"),document.getElementsByClassName("required")[0].style.visibility="hidden",a("#contactUsForm").hide(),a("body").scrollTop(0),void 0):(a("#recaptcha_only_if_incorrect_sol").show(),!1):(i=[],c.length||(i[0]=e.i18n("contactUsForm.please_enter_a_emailaddress")),l=="SELOPT"&&(i[1]=e.i18n("contactUsForm.please_select_a_contact_option")),r.length||(i[2]=e.i18n("contactUsForm.please_enter_feedback")),alert(i.join("\n")),!1)})}};a(function(){r.init()})}),TT(["context","lib/jquery"],function(e,t){e.isPreview&&t(function(){console.log=="function (){}"&&delete window.console,t("body").on("click","img.x-form-arrow-trigger",function(){t("div.x-layer").css({zIndex:999999})})})}),TT("cmpbackfill",["util/logging","util/debug","lib/jquery","util/cookie","context"],function(e,t,i,n,a){var o=t.check("debug_cmp"),s=e.getLogger(o),r=window.location.hostname.indexOf("-eng.")!="-1"||window.location.hostname.indexOf(".eng.")!="-1"?"eng":window.location.hostname.indexOf("-qa.")!="-1"||window.location.hostname.indexOf(".qa.")!="-1"?"qa":"prod";window.__tcfapi("addEventListener",2,function(e,t){if(e!==void 0&&e!==null&&t&&(e.eventStatus==="tcloaded"||e.eventStatus==="cmpuishown")){var i=e.gdprApplies;window.__tcfapi("removeEventListener",2,function(e){if(e&&i&&(n.hasCookie("euconsent-v2")||n.hasCookie("euconsent"))&&n.hasCookie("consentUUID")&&(!n.hasCookie("ttConsentDataV2")||!n.hasCookie("ttCustomConsentDataV2")))switch(s.log("Resurfacing PM modal due to TT consent cookies not being present in browser"),a.lang){case"en":switch(r){case"eng":window._sp_.loadPrivacyManagerModal(214287);break;case"qa":s.log("here"),window._sp_.loadPrivacyManagerModal(214287);break;case"prod":window._sp_.loadPrivacyManagerModal(244767)}break;case"de":switch(r){case"eng":window._sp_.loadPrivacyManagerModal(214244);break;case"qa":window._sp_.loadPrivacyManagerModal(214244);break;case"prod":window._sp_.loadPrivacyManagerModal(244724)}break;case"fr":switch(r){case"eng":window._sp_.loadPrivacyManagerModal(214373);break;case"qa":window._sp_.loadPrivacyManagerModal(214373);break;case"prod":window._sp_.loadPrivacyManagerModal(244853)}break;case"es":switch(r){case"eng":window._sp_.loadPrivacyManagerModal(214330);break;case"qa":window._sp_.loadPrivacyManagerModal(214330);break;case"prod":window._sp_.loadPrivacyManagerModal(244810)}}},e.listenerId)}})})