// JavaScript Document

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// write NN4 stylesheet if not version5 browser
// CSS file must be relative to the root or absolute

if(!document.getElementById){
document.write('<link href="/development/chemistry/site/css/nonstandard.css" rel="stylesheet" type="text/css" />');
document.close();
}

// javascript for IE/win, since it does not support li:hover

iewinHover = function() {
	var li = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<li.length; i++) {
		li[i].onmouseover=function() {
			if(this.className != "nosub") {
				this.className+="iewin";
			}
		}
		li[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("iewin\\b"), "");
		}
	}
}
//if (window.attachEvent) window.attachEvent("onload", iewinHover);

if (document.all) { // load only in IE
	if (window.attachEvent) window.attachEvent("onload", iewinHover);
 	else window.onload = iewinHover; // Mac IE5
}