// //Get search string from script tag searchString_sw = "itype=3&hostName=www.surveywriter.net"; //var OmnitureID = getCookie_sw('s_vi'); //if (OmnitureID==null) {OmnitureID = "NA";} //if (OmnitureID.length==0) {OmnitureID = "NA";} //searchString_sw = searchString_sw + "&OmnitureID=" + OmnitureID; var strReferrer=document.referrer; strReferrer=strReferrer.replace("http://",""); strReferrer=strReferrer.replace("https://",""); var arrayReferrer=strReferrer.split("/"); var varReferrer=arrayReferrer[0]; var isTest_sw = query_sw('test'); var isExit_sw = query_sw('exit'); var itype_sw = query_sw('itype'); var TriggerLogic_sw="1==1"; var popupDelay_sw="0"; var popUpOdds_sw=0; var testType_sw=0; //Control=0 ; Exposed=1 var popupDelayR_sw=0; var PIN=0; var tpix=''; var adViewsTotal_sw=0; var deviceType_sw=''; var pimMode=0; var uri_sw=''; var referrer_sw=''; var utm_medium_sw=''; var utm_source_sw=''; var strDisplay3="inline"; var objJsonCookie_sw=''; var adViews_sw=0; var adViewsTotal_sw=0; var iContent_sw=''; var passSegFlag_sw=0; var segValue_sw=""; var memID_sw=""; var noGo_sw=0; var scrollStart_sw=0; var strDisplay="inline"; if(window.top.jQuery == undefined){ var script = document.createElement('script'); window.top.document.head.appendChild(script); script.type = 'text/javascript'; script.src = "//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"; script.onload = function(){ window.top.$.noConflict(); triggerInterceptProcess(); } } else { triggerInterceptProcess(); } function triggerInterceptProcess() { window.top.jQuery(document).ready(function() { if (itype_sw =="1") {startInterceptProcess();} if (itype_sw =="3") {startInterceptProcess();} if (itype_sw =="2") { var docHeight = window.top.jQuery(document).height(); var articleHeight = window.top.jQuery('[data-article-body] article').height(); var winHeight = window.top.jQuery(window).height(); var totalPixels = articleHeight - winHeight; window.top.jQuery(window).scroll(function() { scrollPercent=getScrollPercent(totalPixels) ; if (scrollPercent >= 100) {startInterceptProcess();} }); if (docHeight <= winHeight) {startInterceptProcess();} } }); } function startInterceptProcess() { if (scrollStart_sw==1) { return false;} scrollStart_sw=1; searchString_sw = searchString_sw + "&ivar=itype~" + itype_sw; uri_sw=window.location.href; searchString_sw = searchString_sw + "&ivar=uri~" + uri_sw; referrer_sw=document.referrer; if (referrer_sw==null) {referrer_sw="not_available";} if (referrer_sw.length==0) {referrer_sw="not_available";} referrer_sw=escape(referrer_sw); searchString_sw = searchString_sw + "&ivar=referrer~" + referrer_sw; var utm_medium_sw = sessionStorage.getItem('healthline.hl_utm_medium'); if (utm_medium_sw==null) {utm_medium_sw="not_available";} if (utm_medium_sw.length==0) {utm_medium_sw="not_available";} searchString_sw = searchString_sw + "&ivar=utm_medium~" + utm_medium_sw; var utm_source_sw = sessionStorage.getItem('healthline.hl_utm_source'); if (utm_source_sw==null) {utm_source_sw="not_available";} if (utm_source_sw.length==0) {utm_source_sw="not_available";} searchString_sw = searchString_sw + "&ivar=utm_source~" + utm_source_sw; //if (itype_sw=='1') {popUpOdds_sw = 20;TriggerLogic_sw="TrackingAdViews_sw < 1";popupDelay_sw=15;TriggerLogic_sw="adViews_sw > 1";isExit_sw=1;isExit_sw=2;popupDelayR_sw=10;pimMode=1;} //TriggerLogic_sw="if (adViews_sw > 1) {popupDelay_sw=0;AdViewFlag_sw=1;}else{popupDelay_sw=10;AdViewFlag_sw=1;}";} //Modify popup odds. A 1 means 1% of the hits, 10=10%, etc... //Keep the 99 itype as is if ( itype_sw=='99') {popUpOdds_sw=0;TriggerLogic_sw="adViews_sw>0";testType_sw=1;} if (itype_sw=='1') {popUpOdds_sw=100;popupDelay_sw=20;testType_sw=0;TriggerLogic_sw="adViews_sw>0";} if (itype_sw=='2') {popUpOdds_sw=100;popupDelay_sw=0;testType_sw=1;TriggerLogic_sw="adViews_sw>0";} if (itype_sw=='3') {popUpOdds_sw=100;popupDelay_sw=0;testType_sw=1;TriggerLogic_sw="adViews_sw>1";} var itypeTemp_sw=itype_sw; if (itypeTemp_sw=="1") { var t1Text="We want to hear from you!"; var t2Text="Please take our short survey"; } if (itypeTemp_sw=="2") { var t1Text="Researching Medicare Options?"; var t2Text="Please take our short survey"; } if (itypeTemp_sw=="3") { var t1Text="Researching Medicare Options?"; var t2Text="Please take our short survey"; } var itypeTemp_sw=itype_sw; if (itypeTemp_sw=="1") {strDisplay="none";} deviceTypeTemp_sw=getDevice_sw(navigator.userAgent||navigator.vendor||window.opera); if ((deviceType_sw==0) || (deviceType_sw.length==0) || (deviceType_sw != deviceTypeTemp_sw)) { deviceType_sw=deviceTypeTemp_sw; } if (isExit_sw > '0') { var winType=2; } else { var winType=1; } if (1!=1) { } else if ((1!=1) && (top != self) && (location.href.toUpperCase().indexOf('SWILINK.HTML') == -1) && (parent.location.pathname!=location.pathname)){ searchString_sw = searchString_sw + "&sname=C5543_P2021009_AT1x.asp"; //document.write('