version = 0;

inputManufacturer=navigator.appName;
inputVersion=navigator.appVersion;

linkClicked=0;

if (document.images) {
	if (inputManufacturer.indexOf("Netscape") >= 0) {
		if (inputVersion.indexOf("5.") >= 0)
    		version = 5;
		else if (inputVersion.indexOf("4.") >= 0)
    		version = 4;
		else if (inputVersion.indexOf("3.") >= 0)
		// This includes Opera which identifies itself as Netscape 3.0
    		version = 3;
		else if (inputVersion.indexOf("2.") >= 0)		
    		version = 2;
	}
	else if (inputManufacturer.indexOf("Microsoft")>=0 && inputVersion.indexOf("4.0") >= 0)
	// IE5 still identifies itself as version 4.0
		version = 4;
	else	version = 0;
}




function roll_on(imgName) {
	// if a link has been clicked, don't roll on the highlight
	if (linkClicked == 0) {
		if (version > 2) {
		// roll on the highlighted version of the selected button
			imgOn = eval(imgName + "on.src");
			document [imgName].src = imgOn;
		// roll _off_ the highlight on the button for the current page	
			document ["thispage"].src = thispageoff.src;		
		}
	}	
}

function roll_off(imgName) {
	// if a link has been clicked, don't roll off the highlight
	if (linkClicked == 0) {
		if (version > 2) {
		// roll off the highlighted version of the deselected button
			imgOff = eval(imgName + "off.src");
			document [imgName].src = imgOff;
		// roll _on_ the highlight on the button for the current page	
			document ["thispage"].src = thispageon.src;				
		}
	}	
}

// roll_on_sub & roll_off_sub are the navigation rollover functions for
// "sub" pages outside the normal navigation
function roll_on_sub(imgName) {
	// if a link has been clicked, don't roll on the highlight
	if (linkClicked == 0) {
		if (version > 2) {
		// roll on the highlighted version of the selected button
			imgOn = eval(imgName + "on.src");
			document [imgName].src = imgOn;
		}
	}	
}

function roll_off_sub(imgName) {
	// if a link has been clicked, don't roll off the highlight
	if (linkClicked == 0) {
		if (version > 2) {
		// roll off the highlighted version of the deselected button
			imgOff = eval(imgName + "off.src");
			document [imgName].src = imgOff;
		}
	}	
}


// rollover a graphic information box and "bullet point" dot when the mouse is over the bullet point text
// <img> for graphic information box should be named "popup"
// <img> for bullet points should be named "dot1", "dot2", "dot3" ...

function roll_on_popup(Id) {
	// build the name assigned to the required popup image and load it
	popupOn = eval("popup" + Id + ".src");
	document.popup.src = popupOn;
	// build the name for the appropriate bullet point and load the green (highlight) image
	dotOn = "dot" + Id;
	document.all[dotOn].src = "images/greendot.gif";
	return true;
}

function roll_off_popup(Id) {
	// load the 'blank' popup image
	document.popup.src = "images/popup.gif";
	dotOff = "dot" + Id;
	// build the name for the appropriate bullet point and load the dark green (highlight off) image
	document.all[dotOff].src = "images/dot.gif";
	return true;
}


