Perched in the cockpit of one of the newest military aircraft in the world as it streaks through the sky, I’ve got a front row seat for a Brazilian sales pitch aimed at unseating an American icon.
Brazilian aircraft manufacturer Embraer (ERJ) brought its all-new prototype jet-powered KC-390 military cargo hauler to the Paris Air Show to woo the world’s military brass and convince them it’s time to give up Lockheed Martin’s C-130 Hercules.
‘;
var storytext = document.getElementById(‘storytext’);
var heightToSkip = 0;
function resetValues()
{
totalHeight = 0;
targetChildElement = null;
}
if(storytext == null)
{
console.log(“Error finding storytext element for SA embed”);
return;
}
for ( i = 0; i 0)
{
heightToSkip -= storytext.childNodes[i].clientHeight;
resetValues();
}
else if(heightToSkip minHeight targetChildElement != null)
{
//console.log(“total height = ” + totalHeight);
//console.log(“childNode = ” + targetChildElement);
storytext.childNodes[targetChildElement].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’;
//console.log(storytext.childNodes[targetChildElement]);
//SMARTASSET.setDivIndex(targetChildElement);
SMARTASSET.setSmartAssetScript();
/* bail out since we’re done */
break;
}
}
/* div with id=”smartassetcontainer”. Sanity check to only embed once */
else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ storytext.childNodes[i].id !== “undefined” storytext.childNodes[i].id === “smartassetcontainer”) {
break;
Article source: http://money.cnn.com/2017/07/20/news/companies/embraer-kc390-military-transport-lockheed-c130-super-hercules/index.html