// <!--
// determine if browser is capable of image swaps
var supported = 0;

if ( ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3)) ||
	 ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) > 3)) )
	 supported = 1;



// update the browser's bottom status bar with specified text
function dispStatus(text)
{
	if (supported) {
		window.status = text;
	}
}

var windowIsOpen = "false";
// open new window
function openWindow(url, w, h) {
	if (windowIsOpen == "true") {
		popupWin.close();
		popupWin = window.open(url, 'window', 'resizable=yes,scrollbars=yes,menubar=no,location=no,directories=no,status=no,menubar=no,width=' + w + ',height=' + h);
		windowIsOpen = "false";
	}
	else {
		popupWin = window.open(url, 'window', 'resizable=yes,scrollbars=yes,menubar=no,location=no,directories=no,status=no,menubar=no,width=' + w + ',height=' + h);
		windowIsOpen = "true";
	}
}



// highlight an image when the thumbnail is selected
function highlight(img) {
	if (supported) {
		var filename = document.images["highlight"].src;
		var path = filename.substring(0, filename.lastIndexOf("/"));
		document.images["highlight"].src = path + '/' + img;
	}
}



// -->