var report_text= new Array();

report_text['clean']=
'    <p class="report">\n'+
'       No parasites were found during this check, you are probably parasite-free.\n'+

'    </p>';
report_text['NoAX']=
'    <p class="report">\n'+
'      Your browser has not been checked for parasites, because\n'+
'      ActiveX is unavailable.\n'+
'    </p>\n'+
'    <p class="report">\n'+
'      For technical reasons, the automatic-detection feature on this\n'+
'      web page can only work when the &#8220;Run ActiveX controls and\n'+
'      plug-ins&#8221; and &#8220;Script ActiveX controls marked as\n'+
'      safe&#8221; security options are enabled.\n'+
'    </p>\n';
report_text['NoIE']=
'    <p class="report">\n'+
'      Your browser has not been checked for parasites, because it\n'+
'      isn&#8217;t Internet Explorer 5.5 (or later) for Windows.\n'+
'    </p>\n'+
'    <p class="report">\n'+
'      For technical reasons, the automatic-detection feature on this\n'+
'      web page requires IE&#8217;s &#8216;ActiveX&#8217; feature.\n'+
'      (Other browsers and operating systems are not as vulnerable\n'+
'      to parasites.)\n'+
'    </p>';

// Check parasite_status every so often until it isn't 'wait', then print
// the results

var report_DELAY= 1000;

function report_poll() {
  if (parasite_status=='wait')
    setTimeout(report_poll, report_DELAY);
  else if (parasite_status!='dirty') {

    // If 'clean' it might just be because ActiveX is off. Detect this.
    // (Used to be done in main parasite.js; not needed there any more in
    // release 3)
    //
    if (parasite_status=='clean') try {
      new ActiveXObject('TDCCtl.TDCCtl');
    } catch(e) {
      parasite_status= 'NoAX';
    }

    var d= document.all['parasite'];
    d.innerHTML= report_text[parasite_status]+'\n';
    d.style.display= 'block';
  }
}

/*@cc_on @if (@_win32 && @_jscript_version>=5.5)
  report_poll();
@else @*/
  document.writeln('  <div id="parasite">\n'+report_text['NoIE']+'  </div>');
/*@end @*/
