<|cnn.com|turner.com|'.split('|'); for (var idx = 0; idx < docDomains.length; idx++) { var d = docDomains[idx]; if (location.hostname.indexOf(d) > 0) { cnnDocDomain = d; } } if (cnnDocDomain) { document.domain = cnnDocDomain; } var oldonloadfunction = window.onload; function dummyonload(evt) { top.CSIManager.getInstance().handleClientData(window, document); if (oldonloadfunction) { oldonloadfunction(evt); } } window.onload = dummyonload; var oldshowpagefunction = window.onshowpage; function cnnshowpageSend(evt) { if (evt.persisted) { top.CSIManager.getInstance().handleClientData(window, document); } oldshowpagefunction(evt); }