
var TCP_width=360;
var TCP_height=300; 
var TCP_url='http://futures.tradingcharts.com/popstuff/admis/4811.php';

function TCP_hide(TCP_DIV){
  if (document.layers) document.layers[TCP_DIV].visibility = 'hide';
  else if (document.all) document.all[TCP_DIV].style.visibility = 'hidden';
  else if (document.getElementById) document.getElementById(TCP_DIV).style.visibility = 'hidden';
}
function TCP_slide(TCP_DIV){
  if(TCP_topY < 95){
    TCP_topY+=4;
    if (document.layers) document.layers[TCP_DIV].top = TCP_topY;
    else if (document.all) document.all[TCP_DIV].style.top = TCP_topY;
    else if (document.getElementById) document.getElementById(TCP_DIV).style.top = TCP_topY;	
    setTimeout("TCP_slide('TCP_DIV');",25);
  }
}
var TCP_midwidth=TCP_width-42; var TCP_xloc=120; var TCP_yloc=120; var TCP_Win_Hdl;
var TCP_Winopt='toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+TCP_width+',height='+TCP_height+',left='+TCP_xloc+',top='+TCP_yloc+', screenX='+TCP_xloc+',screenY='+TCP_yloc; var TCP_topY=0-TCP_height-50;var TCP_name='TCPopWindow';
var TCP_imagebase='http://futures.tradingcharts.com/popstuff';

TCP_Win_Hdl = eval("window.open(TCP_url,'TCP_win',TCP_Winopt)");
if (!TCP_Win_Hdl){
  if (parseInt(navigator.appVersion) >= 4 && navigator.javaEnabled()){
    document.write('<div id="TCP_DIV" style="position:absolute;top:'+TCP_topY+';">');
    document.write('<table width="'+TCP_width+'" border="0" cellpadding=0 cellspacing=0><tr height=31>');
    document.write('<td width=10><img src="'+TCP_imagebase+'/tl.gif" width="10" height="31" hspace=0 vspace=0></td>');
    document.write('<td width="'+TCP_midwidth+'"><img src="'+TCP_imagebase+'/t.gif" width="'+TCP_midwidth+'" height="31" hspace=0 vpsace=0></td>');
    document.write('<td width=32><a href="javascript:void(0)" onclick="TCP_hide(\'TCP_DIV\')"><img src="'+TCP_imagebase+'/tr.gif" width="32" height="31" hspace=0 vspace=0 border=0></a></td></tr></table>');
    document.write('<iframe src="'+TCP_url+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ');
    document.write('topmargin="0" leftmargin="0" allowtransparency="true" ');
    document.write('width="'+TCP_width+'" height="'+TCP_height+'"></iframe></div>');
    if (document.layers) document.layers.TCP_DIV.left = ((window.innerWidth / 2) - (TCP_width / 2));
    else if (document.all) document.all.TCP_DIV.style.left = ((document.body.offsetWidth / 2) - (TCP_width / 2));
    else if (document.getElementById) document.getElementById("TCP_DIV").style.left = ((window.innerWidth / 2) - (TCP_width / 2));
    setTimeout("TCP_slide('TCP_DIV');",1000);
  }else{
    document.write('<center><iframe src="'+TCP_url+'" ');
    document.write('frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ');
    document.write('topmargin="0" leftmargin="0" allowtransparency="true" ');
    document.write('width="'+TCP_width+'" height="'+TCP_height+'"></iframe></center>');
  }
}
