‘;
for (i = 0; i 4) {
afterParagraphFour = true;
}
currentParagraph = storytext.childNodes[i];
heights += currentParagraph.clientHeight;
if (heights >= limit && insertAfterThisParagraphIndex === -1) {
insertAfterThisParagraphIndex = SMARTASSET.setDivIndex(i);
console.log(“insert after paragraph number ” + i);
console.log(“HEIGHTS = ” + heights);
console.log(“LIMIT = ” + limit);
}
}
/* div with id=”ie_column” */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ &&
storytext.childNodes[i].id !== “undefined” &&
storytext.childNodes[i].id ===”ie_column”) {
heights = 0;
limit = 80;
insertAfterThisParagraphIndex = -1
}
/* embeds coming from twitter, facebook, youtube */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ &&
storytext.childNodes[i].classList.contains(’embed’)) {
heights = 0;
limit = 80;
insertAfterThisParagraphIndex = -1
}
/* sy88pgw video player */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ &&
storytext.childNodes[i].classList.contains(‘cnnplayer’)) {
heights = 0;
limit = 80;
insertAfterThisParagraphIndex = -1
}
/* images */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘img’) {
heights = 0;
limit = 80;
}
/* images stored in figure tags */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘figure’) {
heights = 0;
limit = 80;
}
}
if (heights >= 875 && afterParagraphFour) {
storytext.childNodes[insertAfterThisParagraphIndex].insertAdjacentHTML(‘afterend’, smartAssetDiv);
smartasset = document.getElementById(‘smartasset-article’);
smartasset.style.float = ‘left’; // allows module to have text float to right
smartasset.style.marginRight =’20px’;
smartasset.style.marginBottom =’25px’;
}
}

SMARTASSET.setSmartAssetScript = function() {
console.log(‘starting setSmartAssetScript’);
SA = document.SA || [];
SA.push({
embedUrl: “https://smartasset.com”,
container: “#smartasset-article”,
product: 1.1,
data:
{ key: “bdknf2rinbhwvdksm6zbmhf3twrv4oih” }
/*{ key: “CNNe038d38a57032085441e7fe7010b0” }*/
});
console.log(‘finished in setSmartAssetScript push() call’);

var smscript = document.createElement(“script”);
smscript.type = “text/javascript”;
smscript.async = true;
smscript.src = (“https:” == document.location.protocol ? “https://” : “http://”) + “smartasset.com/embed.js”;

var s = document.getElementsByTagName(“script”)[0];
s.parentNode.insertBefore(smscript, s);
console.log(“finished entire function of setSmartAssetFunction()”);
};
SMARTASSET.setSmartAssetDiv();
SMARTASSET.setSmartAssetScript();

The Dow has been flirting with the 20,000 mark for weeks in addition to reached its highest ever level — 19,988 — on December 20. This kind of’s currently sitting at 19,820, which is actually nearly 14% higher than where This kind of began 2016.

The S&P 500 in addition to Nasdaq are also just a touch below their all time records.

The S&P 500 has run up by 10% in addition to the Nasdaq has rallied by 8.5% since the start of the year.

2. Global market overview: European markets look set to end the year that has a whimper. They’re dipping lower in early trading.

Russian stock markets are mixed after President Barack Obama sanctioned many Russian individuals in addition to entities in addition to ordered 35 Russian diplomats to leave the country. The White House took the retaliatory step over Russia’s alleged interference from the 2016 election.

This kind of’s worth noting that will Russian stock markets were among the best performing from the planet This kind of year. Investors expect President-elect Donald Trump will thaw frosty U.S. relations with Russia.

Looking to Asia, the markets are closing the day with mixed results.

Before the Bell newsletter: Key market news. In your inbox. Subscribe at This kind of point!

3. Italian banks find support: Italian bank stocks have been holding steady after the European Commission extended a program to support liquidity at the banks.

“This kind of means that will regardless of circumstances banks will have no difficulties in funding their operations in addition to deposit access will be ensured at all times,” a Commission spokesperson said in a written statement.

Investors have been concerned about Italy’s struggling banking sector, which has been burdened by high levels of bad debts. Monte dei Paschi — the weakest of the bunch — is actually negotiating a government bailout.

4. Toshiba rebounds: Shares in Toshiba (TOSYY) have posted a 9.4% rebound in Japan following a massive drop This kind of week that will had erased $6.6 billion coming from the tech giant’s market capitalization.

Investors hit the sell button after the company warned This kind of would certainly soon report billions in losses related to the takeover of a nuclear business in 2015.

Download sy88pgw MoneyStream for up-to-the-minute market data in addition to news

5. Coming This kind of week:

Friday – U.S. bond market set to close at 2 p.m.

sy88pgw (London) First published December 30, 2016: 4:50 AM ET