function bcfn_CheckDomain() {
var d = bcfn_GetDomain();
if ((d == 'barchart') || (d == 'insidefutures'))
return true;
else
return false;
}
function bcfn_GetDomain() {
var s = document.domain;
s = s.toLowerCase();
if (s.substring(0, 7) == 'http://') {
s = s.substring(7);
}
var ary1 = s.split('/');
var ary2 = ary1[0].split('.');
var d = '';
if ((ary2[ary2.length - 1] == 'com') ||
(ary2[ary2.length - 1] == 'org') ||
(ary2[ary2.length - 1] == 'net') ||
(ary2[ary2.length - 1] == 'edu') ||
(ary2[ary2.length - 1] == 'gov')) {
if (ary2.length > 1)
d = ary2[ary2.length - 2];
}
else {
if (ary2.length > 2)
d = ary2[ary2.length - 3];
}
return d;
}
if (bcfn_CheckDomain()) {
var pendingHide = null;
var tooltip = null;
var chartId = null;
function _thct_2842__activate(index, chartimg) {
var pr = '_thct_2842_';
var ct = '6';
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/agricharts/chartload.gif';
elchart.src = chartimg;
}
}
}
function setOpacity(obj, opacity) {
opacity = (opacity == 100)?99.999:opacity;
obj.style.filter = "alpha(opacity:"+opacity+")";
obj.style.KHTMLOpacity = opacity/100;
obj.style.MozOpacity = opacity/100;
obj.style.opacity = opacity/100;
}
function fadeInChart(objId,opacity) {
if (document.getElementById) {
obj = document.getElementById(objId);
if (opacity <= 100) {
setOpacity(obj, opacity);
opacity += 10;
window.setTimeout("fadeInChart('"+objId+"',"+opacity+")", 100);
}
}
}
function fadeOutChart(objId,opacity) {
if (document.getElementById) {
obj = document.getElementById(objId);
if (opacity >= 0) {
setOpacity(obj, opacity);
opacity -= 10;
window.setTimeout("fadeOutChart('"+objId+"',"+opacity+")", 0);
}
}
}
document.write('
');document.write('
');document.write('
');chartId = '_thct_2842_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('
');document.write('
');document.write(' ');document.write(' |
');document.write('
');document.write('');document.write('| Symbol | Last | Chg | |
');document.write('');document.write('| ');document.write('» ');document.write('Dow | ');document.write('9957 | ');document.write('+62 | ');document.write(' |
');document.write('');document.write('| ');document.write('» ');document.write('Nasdaq | ');document.write('1739.50 | ');document.write('+5.00 | ');document.write(' |
');document.write('');document.write('| ');document.write('» ');document.write('S&P | ');document.write('1064.50 | ');document.write('+8.60 | ');document.write(' |
');document.write('');document.write('| ');document.write('» ');document.write('Crude | ');document.write('72.49 | ');document.write('+0.60 | ');document.write(' |
');document.write('');document.write('| ');document.write('» ');document.write('Gold | ');document.write('1072.2 | ');document.write('+6.5 | ');document.write(' |
');document.write('');document.write('| ');document.write('» ');document.write('Corn | ');document.write('358-0 | ');document.write('+2-0 | ');document.write(' |
');document.write('| Data provided by Barchart.com |
');document.write('
');}else{
document.write('Unauthorized Access!!!');
}