<!--

// 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 icon on inside pages




//set an array for the to turn on the appropriate nav button				
var webSections = new Array();
		
webSections[0] = "hunt";
webSections[1] = "painter";
webSections[2] = "motifs";
webSections[3] = "method";
webSections[4] = "details";
webSections[5] = "events";
webSections[6] = "gallery";
webSections[7] = "downloads";
webSections[8] = "forms";
webSections[9] = "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") {
	
			var pathtoRoot = "/~fleming/clh/";
			
			//these are for the horizontal inside nav
			img1on = new Image(); img1on.src = pathtoRoot + "images/hunt_on.gif";
	        img1off = new Image(); img1off.src = pathtoRoot + "images/hunt_off.gif";
			img2on = new Image(); img2on.src = pathtoRoot + "images/painter_on.gif";
	        img2off = new Image(); img2off.src = pathtoRoot + "images/painter_off.gif";
			img3on = new Image(); img3on.src = pathtoRoot + "images/motifs_on.gif";
	        img3off = new Image(); img3off.src = pathtoRoot + "images/motifs_off.gif";
			img4on = new Image(); img4on.src = pathtoRoot + "images/method_on.gif";
	        img4off = new Image(); img4off.src = pathtoRoot + "images/method_off.gif";
			img5on = new Image(); img5on.src = pathtoRoot + "images/details_on.gif";
	        img5off = new Image(); img5off.src = pathtoRoot + "images/details_off.gif";
			img6on = new Image(); img6on.src = pathtoRoot + "images/events_on.gif";
	        img6off = new Image(); img6off.src = pathtoRoot + "images/events_off.gif";
			img7on = new Image(); img7on.src = pathtoRoot + "images/gallery_on.gif";
	        img7off = new Image(); img7off.src = pathtoRoot + "images/gallery_off.gif";
	        img8on = new Image(); img8on.src = pathtoRoot + "images/downloads_on.gif";
	        img8off = new Image(); img8off.src = pathtoRoot + "images/downloads_off.gif";
	       	img9on = new Image(); img9on.src = pathtoRoot + "images/forms_on.gif";
	        img9off = new Image(); img9off.src = pathtoRoot + "images/forms_off.gif"; 
	        img10on = new Image(); img10on.src = pathtoRoot + "images/contact_on.gif";
	        img10off = new Image(); img10off.src = pathtoRoot + "images/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");
	            }
  				     
        
        }

}
function openWindow (URL,navigation) {//alert(toolBar);
	//var toolBar='yes';
	var newWin = window.open(URL, "popup","height=480,width=640,resizable=yes,"+navigation+",toolbar="+navigation+",status="+navigation+",location="+navigation+",scrollbars=yes");
	if (window.focus != null) newWin.focus();
}


//-->

