var report_text= new Array();

report_text['clean']=
'      <p class="report"><font color="yellow">\n'+
'        Your browser has been checked for parasites.\n None were found.</font><br />\n'+
'        <font color="c0c0c0">(However this script cannot detect all of them!)\n'+
'      </font></p>';
report_text['NoAX']=
'      <p class="report">\n'+
'        Your browser has not been checked for parasites, because\n'+
'        ActiveX is disabled.\n'+
'      </p>\n'+
'      <p class="report">\n'+
'        For technical reasons, the automatic-detection feature on this\n'+
'        web page can only work with Internet Explorer on Windows, when\n'+
'        &#8220;Active scripting&#8221; and &#8220;Run ActiveX\n'+
'        controls&#8221; are enabled.\n'+
'      </p>\n'+
'      <p class="report">\n'+
'        If you wish to run this script, you could try temporarily turning\n'+
'        these options on in the Internet Zone or putting and.doxdesk.com\n'+
'        in the Trusted Zone. See the Security tab in Internet Options.\n'+
'      </p>'
report_text['NoIE']=
'      <p class="report">\n'+
'        Your browser has not been checked for parasites, because it\n'+
'        isn&#8217;t Internet Explorer 5 (or later) on Windows.\n'+
'      </p>\n'+
'      <p class="report">\n'+
'        For technical reasons, the automatic-detection feature on this\n'+
'        web page can only work with IE/Win, with &#8220;Active\n'+
'        scripting&#8221; and &#8220;Run ActiveX controls&#8221; enabled.\n'+
'      </p>\n'+
'      <p class="report">\n'+
'        (Other browsers and operating systems tend not to be so badly\n'+
'        affected in any case.)\n'
'      </p>';

// Check parasite_status every so often until it isn't 'wait', then print
// the results

var report_DELAY= 500;

function report_poll() {
  if (parasite_status=='wait')
    setTimeout(report_poll, report_DELAY);
  else if (parasite_status!='dirty') {
    var d= document.all['parasite'];
    d.innerHTML= report_text[parasite_status]+'\n';
    d.style.display= 'block';
  }
}

if (window.external && navigator.platform=='Win32') report_poll();
else {
  document.writeln('    <div id="parasite">');
  document.writeln(report_text['NoIE']);
  document.writeln('    </div>');
}
