var pendingHide = null;
var tooltip = null;
var chartId = null;
function _thct_1106__activate(index, chartimg) {
var pr = '_thct_1106_';
var ct = '5';
for (var i = 1; i <= ct; ++i) {
chartId = pr+i+'chart';
var el = document.getElementById(pr+i);
var elchart = document.getElementById(chartId);
var elactive = document.getElementById(pr+i+'active');
if (el) {
if (i == index){
el.style.display = 'block';
}else{
el.style.display = 'none';
}
}
if (elactive) {
if (i == index) elactive.style.display = 'inline';
else elactive.style.display = 'none';
}
if (elchart && index == i){
elchart.src = 'http://charts4.barchart.com/pl/thumbcharts/shared/chartload.gif';
elchart.src = chartimg;
}
}
}
function hideTooltip() {
if (tooltip) pendingHide = setTimeout("tooltip.style.display = 'none';", 200);
}
function showTooltip (e, label) {
if (pendingHide) {
clearTimeout(pendingHide);
pendingHide = null;
}
e = e || window.event;
var tooltipText;
if (!tooltip) {
tooltip = document.createElement('div');
tooltip.style.position = 'absolute';
tooltip.id = 'tooltip';
tooltipText = document.createElement('div');
tooltipText.className = 'tooltip';
tooltip.appendChild(tooltipText);
document.body.appendChild(tooltip);
} else {
tooltipText = tooltip.firstChild;
}
tooltipText.innerHTML = label;
var left = e.pageX || (e.clientX +
(document.documentElement.scrollLeft || document.body.scrollLeft));
var top = e.pageY || (e.clientY +
(document.documentElement.scrollTop || document.body.scrollTop));
tooltip.style.display = '';
tooltip.style.top = (top+5)+'px';
tooltip.style.left = (left+20)+'px';
}
document.write('');
document.write('
');document.write('
');document.write('
');chartId = '_thct_1106_1active';document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('
');document.write('
');document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('
');document.write('
');document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('
');document.write('
');document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('
');document.write('
');document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('| Symbol | Last | Chg |
');document.write('');document.write('| ');document.write('Mini SP | ');document.write('1105.25 | ');document.write('+3.25 |
');document.write('');document.write('| ');document.write('Mini Dow | ');document.write('10475 | ');document.write('+27 |
');document.write('');document.write('| ');document.write('Crude Oil | ');document.write('78.21 | ');document.write('+1.22 |
');document.write('');document.write('| ');document.write('Cattle | ');document.write('93.100 | ');document.write('+0.325 |
');document.write('');document.write('| ');document.write(' Corn | ');document.write('376-2 | ');document.write('+13-4 |
');document.write('| Data provided by Barchart.com |
');document.write('
');