// IMAGE ROLLOVERS
function roll(name,over) {
  if(window.document.images) {
    if (over) // Over image
      window.document.images[name].src = "/studentdev/img/nav/" + name + "_ov.gif";
    else // Off image
      window.document.images[name].src = "/studentdev/img/nav/" + name + ".gif";
  }
}

function popup(url,w,h,menu) {
	x = Math.floor((screen.width - w) / 2);
	y = Math.floor((screen.height - h) / 2);        
	now = new Date();
	features = "screenx="+x+",screeny="+y+",left="+x+",top="+y+",width="+w+",height="+h+",location=no,resizable=yes"+",directories=no,status=no,scrollbars=yes";

	if (menu != null) {
		//features += ",menubar=yes,toolbar=yes,scrollbars=yes";
		features += ",menubar=yes,toolbar=yes";
	} else {
		//features += ",menubar=no,toolbar=no,scrollbars=no"; 
		features += ",menubar=no,toolbar=no"; 
	}
	window.open(url,"newwin",features);
}