if (navigator.javaEnabled()) {

  document.write("<p>This site is designed to be viewed using Microsoft Internet Explorer 5.0 or later or<br>")
  document.write("quivalent browser, using a monitor set to a resolution of at least 800 x 600 pixels<br>")
  document.write("and set to display 'High Color' (16 bit).<br><br>")
  document.write("However, better viewing may be achieved using a monitor set to a resolution of<br> at least 1024 x 768 pixels.</p>")

  document.write("<p><b>Your current system profile:</b><br>")

  var brIE5 = navigator.appVersion.indexOf("MSIE 5");
  var brMac = navigator.userAgent.indexOf("Mac");
  var bName = navigator.appName;
  var bVer  = parseInt(navigator.appVersion);
  var sWRes = screen.width;
  var sHRes = screen.height;
  var sCol  = screen.colordepth;

    if (document.all) {
      var version = /MSIE \d+.\d+/
      document.write("Browser = " + navigator.appName + " " + navigator.appVersion.match(version) + "<br>");
    } else {
			 document.write("Browser = " + navigator.appName + " " + navigator.userAgent + "<br>");
	}
  document.write("Monitor Resolution = " +sWRes +" x " +sHRes +" pixels" +"<br>");
  document.write("Colour Depth = " +sCol +" bit");

  if (sCol<16 || sWRes<800 || sHRes<600) {

    document.write("<br><br><br><b>Improve your viewing of this site by:</b><br>");

  if (sCol<24) {

    document.write("- increasing the colour depth of your monitor<br>");

  }
  if (sWRes<800 || sHRes<600) {

    document.write("- increasing the display resolution of your monitor");

  }
}
else
	{
  document.write("<br><br><br><b>No changes are necessary");

  if (sWRes<810 || sHRes<610) {

    document.write(":</b><br>- however increasing your monitor's display resolution will improve your view.");

    }
  else
	{
    document.write(":</b><br>- your system profile should be ideal for viewing this site.");
    }

  }

}
else
	{
  document.write("<p>Your browser does not have Java Script activated - to see the viewing tips first activate Java Script in your browser and then refresh this page.</p>")
}
