navImage="images/nav/"

function active(currentImage) {

	var isNav = false, isIE = false;
	if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true;
		<!-- alert('NETSCAPE!'); -->
	} else {
		<!-- alert('IE!'); -->
		isIE = true;
	}
	}

	if(isIE) {        
    	document[currentImage].src = navImage + currentImage + "_on.gif";
	}
	if (isNav) {
		if (layerName != null) {

			<!-- 	alert(layerName + "  " + imageName); -->
			document.layers[layerName].document.images[imageName].src = navImage + imageName + "_on.gif";
    		}
		else {
			document[imageName].src = navImage + imageName + "_on.gif";
		}
	}
}


function inactive(currentImage) {

	var isNav = false, isIE = false;
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Netscape") {
			isNav = true;
			<!-- alert('NETSCAPE!'); -->
		} else {
			<!-- alert('IE!'); -->
			isIE = true;
		}
	}
	<!-- alert('what the hell'); -->
	if (isIE) {
		document[currentImage].src = navImage + currentImage + "_off.gif";
	}
	if (isNav) {
		if (layerName != null){
			<!-- alert("LayerName =  not null"); -->
			document.layers[layerName].document.images[imageName].src = navImage + imageName + "_off.gif";			}
		else {
			<!-- alert("Layer is null"); -->
			document[imageName].src = navImage + imageName + "_off.gif";
		}
	}
}