function checkBrowser()
 {
 var my_browser=navigator.appName;
 var my_netscapeVersion=parseFloat(navigator.appVersion);
 var my_version=navigator.appVersion;
 var my_number=my_version.substring(21,25);
 //--confirm(my_browser+" "+my_version+" "+my_number+" "+my_netscapeVersion);
 	if(my_browser=="Netscape"&&my_netscapeVersion<5||my_browser=="Microsoft Internet Explorer"&&my_number<5)
 	{
 	window.document.write("<center><table><td colspan=2 width=400><b>Sorry, your Web Browser needs to be updated<\/b><p> This site is meant to be viewed with a modern browser. If you have reached this page, it is because your browser is an older version. To view the full site please upgrade your browser by clicking on either of the links below to download a new version.  The site works best on Internet Explorer 5. <\/td><\/tr><tr><td height=60><a href ='http://www.microsoft.com/downloads/'title='click me to download IE 5'><img src='old_browser/Explorer.gif'border=none height='20px' width='99px'><\/a><\/font><\/td><td height=60><a href ='http://home.netscape.com/computing/download/index.html?cp=hophb2'title='click me to download Netscape 6'><img src='old_browser/Netscape_6.gif'border=none height='20px' width='97px'><\/a><\/font><\/td><\/tr><\/table><\/center>");
 	}	
 }
checkBrowser();
var gaugefield_set=new Array("a_1","a_2","a_3","a_4","a_5","a_6","a_7","a_8","a_9","a_10","a_11","a_12","a_13","a_14","a_15","a_16","b_1","b_2","b_3","b_4","b_5","b_6","b_7","b_8","b_9","b_10","b_11","b_12","b_13","b_14","b_15","b_16","c_1","c_2","c_3","c_4","c_5","c_6","c_7","c_8","c_9","c_10","c_11","c_12","c_13","c_14","c_15","c_16"); 

var colorSets=new Array("00","33","66","99","CC","FF");

var letterSet=new Array("r","i","c","h","a","r1","d","p","u","r2","d1","y","x.","n","e","t");

function newWindow(url,t,h,w)
{
var specs="height="+h+",width="+w+",menubar=yes,resizable=yes,toolbar=yes,location=yes,scrollbars=yes";
var open_me=window.open(url,t,specs);
}

function openWindow(url, window_name)
{
var openMe = window.open(url,window_name,"height=600,width=800,resizable=yes,scrollbars=yes,menubar=no,locationbar=yes,status=no");
}
 
function changeColor(e)
{
if (document.getElementById)
	{
	var csl=colorSets.length;
	var newColor="#";
	for(var c=0; c<3; c++)
		{
		var x = (Math.floor(Math.random() * csl));
		newColor+=colorSets[x];
		}	
	document.getElementById(e).style.color=newColor;
	}
	
}

function makeColor()
{
	var csl=colorSets.length;
	var newColor="#";
	for(var c=0; c<3; c++)
		{
		var x = (Math.floor(Math.random() * csl));
		newColor+=colorSets[x];
		}	
}

var newColors_timeout;

function blockColors()          //--set all array divs to new random color
{
	if(document.getElementById)
	var index = 0;
	var n = 0;
	clearTimeout(newColors_timeout);  //--stop if already running
	
		while(index < gaugefield_set.length)
			{
			var csl=colorSets.length;
			var newColor="#";
			for(var c=0; c<3; c++)
				{
				var x = (Math.floor(Math.random() * csl));
				newColor+=colorSets[x];
				}	                                       
				window.document.getElementById(gaugefield_set[n]).style.background=newColor;
				index++;
				n++;
			}
			newColors_timeout=setTimeout("blockColors();",10000);
}
var startColors_timeout;

function letterColors()        //--set all grid members to 1 random color
{                        
if(document.getElementById)
	{
	clearTimeout(startColors_timeout); //--stop if already running
	var c=letterSet.length;
	var n = 0;
	var csl=colorSets.length;
	var newColor="#";
	for(var a=0; a<3; a++)                         //---create new color
				{
				var z = (Math.floor(Math.random() * csl));
				newColor+=colorSets[z];
				}	
		
		for(var i = 0;i < c; i++)                              //--repeat for the number of elements in the letterSet Array
			{
		    window.document.getElementById(letterSet[n]).style.color=newColor; 
			n++;
			}
				startColors_timeout=setTimeout("letterColors();",15000);
	}
}

function swapImg(pic1, pic2)
{
if (document.getElementById)
	 {
	 window.document.getElementbyId(pic1).src=pic2;
	 }
}



function show_color(element, which_color)
{
	window.document.getElementById(element).style.background = which_color;
}

