var isMainLoaded = false; var script = document.createElement("script"); script.setAttribute("type","text/javascript"); script.setAttribute("src", "http://test.aexisgroup.com/RSSX/Content/js/scrollerMain.js"); document.getElementsByTagName("head")[0].appendChild(script); var divWidth = 455; var divHeight = 120; function startNewsScroller() { if(isMainLoaded) { createItemArray(1); addItemToArray("17/03/2011", "Aexis renews its distribution agreement for the TM1 platform with IBM and extends it at the same time by including the complete IBM Cognos gamma", "http://www.aexis.com/PDF/New_IBM_distribution_agreement2011-EN.pdf", 0); initNewsScroller(); } else { setTimeout('startNewsScroller()', 500); } } window.onload = startNewsScroller;