/* test and target configuration */ // enable global mbox on select site sections try { om_tt_enableMbox = false; // list of sections - only partial matching required var om_tt_enabledSections = [ "www1.cbn.com/cbn-apps", "www.cbn.com/mobile", "/special/thehope", "/special/protectyourfinances", "/miraclesfromheaven", "/contact/feedback-salvation", "confirmhope.aspx", "receipthope.aspx", "/partners/matchinggifts.aspx", "/community/af/emailpreferences.aspx", "www.cbn.com/?", "wwww.cbn.com/index.aspx" , "www.cbn.com", "www1.cbn.com" ]; // list of sections - exact matching required var om_tt_enabledSections_exact = [ "http://www.cbn.com/","http://www.cbn.com/index.aspx"]; // current url var om_tt_currentUrl = location.href.toLowerCase(); // determine if the mbox should be included based on partial string match for(var om_tt_eSi = 0; ((om_tt_eSi < om_tt_enabledSections.length) && !(om_tt_enableMbox)); om_tt_eSi++) { if (om_tt_currentUrl.indexOf(om_tt_enabledSections[om_tt_eSi]) >=0) { om_tt_enableMbox = true; } } // determine if the mbox should be included based on an exact string match if (!om_tt_enableMbox) { for(var om_tt_eSi = 0; ((om_tt_eSi < om_tt_enabledSections_exact.length) && !(om_tt_enableMbox)); om_tt_eSi++) { if (om_tt_currentUrl == om_tt_enabledSections_exact[om_tt_eSi]) { om_tt_enableMbox = true; } } } // output mbox if required if (om_tt_enableMbox) { var om_tt_urlpath = om_tt_currentUrl.replace("http://","").replace("https://","").split("?")[0]; document. write('
'); mboxCreate('global',"pgUrl=" + om_tt_urlpath); } } catch (e) { }