function removeImage_ID03112_53679(elCell) { try { var newPreviewSpan = document.getElementById("preview"); newPreviewSpan.parentNode.removeChild(newPreviewSpan); } catch(e) { } } function previewImage_ID03112_53679(elCell, chartWidth, chartHeight, title) { if (typeof chartWidth == 'undefined') { chartWidth=260; } if (typeof chartHeight == 'undefined') { chartHeight=130; } try { var backgroundColor = getComputedStyle(document.querySelector('#thumbChart_Panel')).backgroundColor var fontColor = getComputedStyle(document.querySelector('#thumbChart_Panel')).color } catch(e) { var backgroundColor = "#003366" var fontColor = "#FFFFFF" } var newPreviewSpan= document.createElement('span'); newPreviewSpan.id='preview'; newPreviewSpan.backgroundColor=backgroundColor newPreviewSpan.style.position="absolute"; newPreviewSpan.style.display="block"; newPreviewSpan.style.padding="2px"; newPreviewSpan.style.margin="auto"; newPreviewSpan.style.zIndex="9999"; if (title) { newPreviewSpan.innerHTML="" + title + "
"; } newPreviewSpan.innerHTML += "" var body = document.getElementsByTagName("body")[0]; body.parentNode.insertBefore(newPreviewSpan, body); } function moveImage_ID03112_53679(elCell, chartWidth, chartHeight) { if (typeof chartWidth == 'undefined') { chartWidth=260; } if (typeof chartHeight == 'undefined') { chartHeight=130; } chartWidth=chartWidth/2; var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); var nWidthScrollbarAdjustment = 25 var nTop = event.pageY + 25; var nLeft = event.pageX - chartWidth; if (nLeft<0) { nLeft=0; } if (nTop + chartHeight + 2*nWidthScrollbarAdjustment > h) { var nTop = event.pageY - chartHeight - nWidthScrollbarAdjustment; } if (nTop<0) { nTop=0; } if (nLeft+(2*chartWidth)+nWidthScrollbarAdjustment>w) { nLeft=w - ((2*chartWidth)+nWidthScrollbarAdjustment); } var newPreviewSpan = document.getElementById("preview"); try { newPreviewSpan.style.top=nTop + "px"; newPreviewSpan.style.left=nLeft + "px"; } catch(e) { } } function PopupCenter_ID03112_53679(url) { // Fixes dual-screen position Most browsers Firefox var width=800; var height=400; try { var dualScreenLeft = window.parent.screenLeft != undefined ? window.parent.screenLeft : window.parent.screenX; } catch (e) { } try { var dualScreenTop = window.parent.screenTop != undefined ? window.parent.screenTop : window.parent.screenY; } catch (e) { } try { var width = window.parent.innerWidth ? window.parent.innerWidth : parent.document.documentElement.clientWidth ? parent.document.documentElement.clientWidth : screen.width; } catch (e) { } try { var height = window.parent.innerHeight ? window.parent.innerHeight : parent.document.documentElement.clientHeight ? parent.document.documentElement.clientHeight : screen.height; } catch (e) { } var w = 820 var h = 400 var systemZoom = width / screen.availWidth; var left = (width - w) / 2 / systemZoom + dualScreenLeft var top = (height - h) / 2 / systemZoom + dualScreenTop var newWindow = window.open(url, 'theFinancials.com Chart', 'width=' + w / systemZoom + ', height=' + h / systemZoom + ', top=' + top + ', left=' + left + ''); // Puts focus on the newWindow //if (window.focus) newWindow.focus(); } var bodyExists=document.getElementsByTagName('body') if (bodyExists.length!=0) { var s = document.getElementsByTagName('script'); var bFound=false; if (s.length==1) { s = s[s.length - 1]; var bFound=true; } else { for(var i=0; i 0 ) { s = s[i] var bFound=true; break; } } if(!bFound) { for(var i=0; i0 || s[i].src.search('www.thefinancials.com/syndicated')>0) { s = s[i]; var bFound=true; break; } } } } if(!bFound) { var s = document.getElementsByTagName('iframe'); for(var i=0; i0 || s[i].src.search('www.thefinancials.com/syndicated')>0) { s = s[i] var bFound=true; break; } } } } var div = document.createElement('span'); div.className='tfcWidget'; div.style.padding=0; div.style.margin=0; div.style.width='100%'; div.innerHTML = ""; try { s.parentNode.insertBefore(div, s); } catch(e) { document.body = document.createElement('body'); document.body.innerHTML = div.innerHTML; } window.onload = function(){ var divWidgets=document.getElementsByClassName('tfcWidget'); for (i=0; i