
function ScrSettings()
 {
// *********************************************************************************************
// check on screen settings stuff                                                              *
// tests your screen, and if less than pref settings, prints a message.                        *
// makes a message like: Best viewed with 32bit color at 800x600 pixel resolution or greater.  *
// *********************************************************************************************
 window.onerror=null;
  var bestClrDepth = 24;  // set to your pref
  var bestResH = 800;     //    "    "
  var bestResV = 600;     //    "    "
  var colorDepth = window.screen.colorDepth;
  var width = window.screen.width;
  var height = window.screen.height;
  var colorMsg = "";
  var scrMsg = "";

  if(colorDepth < bestClrDepth)
   {colorMsg = "a bit low, but still manageable.";}
  else
   {colorMsg = "great.";}

  if(width < bestResH)
   {scrMsg = "a bit low, but workable.";}
  else
   {scrMsg = "great.";}

 // document.write(" screen width = " + width);
  
  if (colorDepth < bestClrDepth)
	 {
	 document.write("<center><font face='Arial' size=1>");
	 document.write("Best viewed with " + bestClrDepth +" bit color.");
	 document.write(" You have " + colorDepth + " bit screen color depth.");
	 document.write(" Your screen color settings are " + colorMsg);
	 document.write("  </font></center>");
	 }
  if (width < bestResH)
	 {
	 document.write("<center><font face='Arial' size=1>");
	 document.write("Best viewed with " + bestResH + "x" + bestResV + " screen resolution or greater.");
	 document.write(" You have a screen of " + width + "x" + height+" pixels.");
	 document.write(" Your screen resolution settings are " + scrMsg);
	 document.write("  </font></center>");
	 }

 }

function Imagepick(scrwid)
{
//alert(scrwid);
	switch(scrwid)
	{
	case 640: {document.write("<img src='images/HmPgCircles1.gif' width=60% border=0>"); break;}
	case 800: {document.write("<img src='images/HmPgCircles2.gif' width=410 height=309 border=0>"); break;}
	case 1024: {document.write("<img src='images/HmPgCircles3.gif' width=605 height=456 border=0>"); break;}
	case 1152: {document.write("<img src='images/HmPgCircles3.gif' width=605 height=456 border=0>"); break;}
	case 1280: {document.write("<img src='images/HmPgCircles4.gif' width=750 height=470 border=0>"); break;}
	case 1600:  {document.write("<img src='images/HmPgCircles5.gif' width=930 height=701 border=0>"); break;}
	default:  {document.write("<img src='images/HmPgCircles2.gif' width=90% border=0>"); break;}
	}
}





