	// This code by Bobby McIntyre (mcintyre@cc.gatech.edu)
	// Implements a simple JavaScript Image Rollover
	// 1.  Preloads images for quick swapping
	// 2.  Ensures browser version is JavaScript Capable
	// Please mail author with any problems herein


	// ensure the browser is Navigator 3.0 or higher
        browserTyp = navigator.userAgent;
        browserVer = 2;
	if ( browserTyp.substring(0,7) == "Mozilla" ) 
	{
		if (parseInt(browserTyp.substring(8,9)) >= 3) 
		{
			browserVer = 1;
		}
	}            
                                                              
        // Preload images for speed
	if (browserVer == 1) 
	{
		// load the information group
		hilite0 = new Image(150,53);
		hilite0.src = "icons/home-h.gif";

		hilite1 = new Image(132,19);
		hilite1.src = "icons/resume-h.gif";

		hilite2 = new Image(132,19);
		hilite2.src = "icons/personal-h.gif";
		hilite3 = new Image(132,19);
		hilite3.src = "icons/links-h.gif";
//		hilite4 = new Image(132,19);
// load the assignment group
//		hilite4.src = "icons/personal-h.gif";
//		hilite5 = new Image(132,19);
//		hilite5.src = "icons/programs-h.gif";
//		hilite6 = new Image(132,19);
//		hilite6.src = "icons/labs-h.gif";
// load the handouts group
//		hilite7 = new Image(132,19);
//		hilite7.src = "icons/lectures-h.gif";
//		hilite8 = new Image(132,19);
//		hilite8.src = "icons/handouts-h.gif";
//		hilite9 = new Image(132,19);
//		hilite9.src = "icons/newsgroups-h.gif";
//		hiliteA = new Image(132,18);
//		hiliteA.src = "icons/software-h.gif";
//		hiliteB = new Image(132,18);
//		hiliteB.src = "icons/utilities-h.gif";
//		hiliteC = new Image (132,18);
//		hiliteC.src = "icons/api-h.gif";
	}

	// imgName -- name of the image target
	// imgSrc -- name of the replacement image 
	function hilite(imgName,imgSrc)
	{
		if (browserVer == 1)
		{
			document.images[imgName].src = imgSrc;
		}
	}
