<!--

// The syntax for using these functions in an HTML document are as follows:
//
// <a href="#" onMouseOver="imgOn('img2')" onMouseOut="imgOff('img2')">
// <img src="file.gif" name="img2" width="60" height="60" border="0"></a>

var loaded=0;


//set an array for the to turn on the appropriate nav button				
var webSections = new Array();
		
webSections[0] = "bios";
webSections[1] = "practice";
webSections[2] = "caselaw";
webSections[3] = "pubnsems";
webSections[4] = "iclaims";
webSections[5] = "contact";

var currentPage = '';

// loop through the section array to identify the subscript of the section we're in                
for (i=0; i < webSections.length; i++) {
                
	if (webSections[i] == section) {
		i++;
		currentPage = "img" + i;
			
	}
}

if ((is_nav3up) || (is_ie4up)) br = "good";

else br = "bad";


if (br == "good") {
			
			//these are for the horizontal inside nav
			//img1on = new Image(); img1on.src ="/images/nav_home_on.gif";
	        //img1off = new Image(); img1off.src = "/images/nav_home_off.gif";
			img1on = new Image(); img1on.src = "/images/nav_bios_on.gif";
	        img1off = new Image(); img1off.src = "/images/nav_bios_off.gif";
			img2on = new Image(); img2on.src = "/images/nav_practice_on.gif";
	        img2off = new Image(); img2off.src = "/images/nav_practice_off.gif";
			img3on = new Image(); img3on.src = "/images/nav_caselaw_on.gif";
	        img3off = new Image(); img3off.src = "/images/nav_caselaw_off.gif";
			img4on = new Image(); img4on.src = "/images/nav_pubnsems_on.gif";
	        img4off = new Image(); img4off.src = "/images/nav_pubnsems_off.gif";
			img5on = new Image(); img5on.src = "/images/nav_iclaims_on.gif";
	        img5off = new Image(); img5off.src = "/images/nav_iclaims_off.gif";
			img6on = new Image(); img6on.src = "/images/nav_contact_on.gif";
	        img6off = new Image(); img6off.src = "/images/nav_contact_off.gif";     
	        
}



function imgOn(imgName) {
        if (br == "good") {
                document[imgName].src = eval(imgName + "on.src");
                //document.hold.src = eval(imgName + "hold.src");
                
                //window.status = eval(imgName + "copy");
       			
       }

}

function imgOff(imgName) {
        if (br == "good") {
                
                if (imgName == currentPage) {
                	document[imgName].src = eval(imgName + "on.src");
	            } else { 
	            	document[imgName].src = eval(imgName + "off.src");
	            }
  				     
        
        }

}

//-->
