var doMO = 0;

if (document.images) {
    var n = navigator.appName;
    var v = parseInt (navigator.appVersion);
    var browsok = n == "Netscape" && v >= 4;
    if (browsok) {
	if (v == 3 && navigator.userAgent.indexOf ("Macintosh") >= 0)
	    browsok = 0;
    } else
	browsok = n == "Microsoft Internet Explorer" && v >= 4;
    if (browsok) {
	doMO = 1;
	arrow = new Image; arrow.src = "http://www.washington.edu/classroom/navarrow.gif";
	noarrow = new Image; noarrow.src = "http://www.washington.edu/classroom/noarrow.gif";
	MOdefault = new Image; MOdefault.src = "http://www.washington.edu/classroom/blank.gif";
	MOemcP = 0; MOnewtitlesP = 0; MOtitlesP = 0; MOabstractsP = 0;
	MOtopicalsP = 0; MOwithdrawnP = 0; MOcssP = 0; MOsearchP = 0;
    }
}

function mouseIn (imagename, doarrow) {
    if (doMO) {
	if (! eval ("MO" + imagename + "P"))
	    eval ("MO" + imagename + " = new Image; MO" + imagename +
			".src = 'http://www.washington.edu/classroom/emc/" + imagename + ".gif'; MO" +
			imagename + "P = 1");
	document.images["status"].src = eval ("MO" + imagename + ".src");
	if (doarrow)
	    document.images[imagename].src = arrow.src;
    }
}

function mouseOut (imagename, doarrow) {
    if (doMO) {
	document.images["status"].src = MOdefault.src;
	if (doarrow)
	    document.images[imagename].src = noarrow.src;
    }
}
