agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
    {
    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
    }
if (browserVer == 1)
        {
          contactoff = new Image;
          contactoff.src = "images/contact_up.gif";
          contacton = new Image;
          contacton.src = "images/contact_dn.gif";
          fac_staffon = new Image;
          fac_staffon.src = "images/fac_staff_dn.gif";
          fac_staffoff = new Image;
          fac_staffoff.src = "images/fac_staff_up.gif";
          full_calendaron = new Image;
          full_calendaron.src = "images/full_calendar_dn.gif";
          full_calendaroff = new Image;
          full_calendaroff.src = "images/full_calendar_up.gif";
          gen_infoon = new Image;
          gen_infoon.src = "images/gen_info_dn.gif";
          gen_infooff = new Image;
          gen_infooff.src = "images/gen_info_up.gif";
          recordson = new Image;
          recordson.src = "images/records_dn.gif";
          recordsoff = new Image;
          recordsoff.src = "images/records_up.gif";
          registrationon = new Image;
          registrationon.src = "images/registration_dn.gif";
          registrationoff = new Image;
          registrationoff.src = "images/registration_up.gif";
          transcriptson = new Image;
          transcriptson.src = "images/transcripts_dn.gif";
          transcriptsoff = new Image;
          transcriptsoff.src = "images/transcripts_up.gif";
        }
function img_act(imgName)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "on.src");
          document [imgName].src = imgOn;
        }}
		
		
		
function img_inact(imgName)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "off.src");
          document [imgName].src = imgOn;
        }}


function openCourse_change_card(){
	newWindow=window.open("http://www.umass.edu/registrar/fac_staff/course_change_card.htm","form_image",
	"toolbar=0,directories=0,menubar=0,location=0,width=720,height=420,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openMajorChangeCard(){
	newWindow=window.open("http://www.umass.edu/registrar/fac_staff/MajorChangeCard.htm","form_image",
	"toolbar=0,directories=0,menubar=0,location=0,width=720,height=420,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openPDFNote(){
	newWindow=window.open("http://www.umass.edu/registrar/pdf_note.htm","pdf_note",
	"toolbar=0,directories=0,menubar=0,location=0,width=600,height=300,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openExamSchedule(){
	newWindow=window.open("http://www.umass.edu/registrar/Student/exams/index.html","exam_schedule",
	"toolbar=0,directories=0,menubar=0,location=0,width=650,height=500,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openSchedule(){
	newWindow=window.open("http://www.oit.umass.edu/spire/training/registration.html","schedule",
	"toolbar=1,directories=1,menubar=1,location=1,width=700,height=500,status=1,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}
