// JavaScript Document
//http://javascript.internet.com/navigation/pop-up-link-with-description.html
//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}



overdiv="0";

//  #########  popup text
var flag = 1; //Descriptions are off initially
descarray = new Array();

//Academic Links
descarray[0] = "Each program will use the results on the form to evaluate the degree to which each outcome is achieved, in order to help determine where the program can be  improved.  The programs may set achievement goals but the assessment results are intended to be used by the programs and  not by any outside body. The data will be used anonymously to perform program-wide evaluations.  The names are only on the forms to record whether each student has submitted a form.  The individual assessment results are not part of the student’s academic record.";
descarray[1] = "A class assignment, technical report. project report, any work performed by the student.  If there is a multi-authored report, a portion of the report attributable to the student being assessed must be identified.  The work product (or portion thereof) should be identifiable as the individual effort of a single student.  For the plan of study assessment, the last plan of study form (G101) that the students submits (prior to graduation) plus the student transcript, is the work product that is submitted. The final assessment occurs soon after the student graduates and is the responsibility of the program.";
descarray[2] = "Any SEAS faculty member in a field appropriate to the work product can perform the assessment. ";
descarray[3] = "It is expected that each student will be assessed only once but it is permissible to do so more than once.";
descarray[4] = "In the case of the plan of study assessment, the student submits a partially completed form (signed by the program director).";
descarray[5] = "A list of all publications published, under review or submitted by the student.  The list can contain multi-authored papers.  Do not list papers &ldquo;in preparation&rdquo; or &ldquo;to be submitted&rdquo;";
descarray[6] = "The forms filed with the SEAS grad office to record the students progression through the program.";


function switchDescription(){
	if(flag == 1){
		flag = 0;
		document.getElementById('hover_desc').innerHTML = "Hover descriptions: <a href=# onClick='switchDescription()'>On</a> | <b>Off</b> ";
	}
	else if(flag == 0){
		flag = 1;
		document.getElementById('hover_desc').innerHTML = "Hover descriptions: <b>On</b> | <a href=# onClick='switchDescription()'>Off</a> ";
	}
}

//  #########  CREATES POP UP BOXES 
function popLayer(a){
	if(flag==1){
		if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
		if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
		else {pad="1"; bord="0";}
		desc = 	  "<table width=200 cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=#003366><tr><td>\n"
			+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=#cc6600><font class=text70>\n"
			+descarray[a]
			+"\n</td></tr></table>\n"
			+"</td></tr></table>";
		if(navigator.family =="nn4") {
			document.object1.document.write(desc);
			document.object1.document.close();
			document.object1.left=x+15;
			document.object1.top=y-5;
			}
		else if(navigator.family =="ie4"){
			object1.innerHTML=desc;
			object1.style.pixelLeft=x+15;
			object1.style.pixelTop=y-5;
			}
		else if(navigator.family =="gecko"){
			document.getElementById("object1").innerHTML=desc;
			document.getElementById("object1").style.left=x+15;
			document.getElementById("object1").style.top=y-5;
			}
	}
}
function hideLayer(){
	if(flag==1){
		if (overdiv == "0") {
			if(navigator.family =="nn4") {eval(document.object1.top="-500");}
			else if(navigator.family =="ie4"){object1.innerHTML="";}
			else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
		}
	}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;