<!--

if (document.images) {

aboutOn = new Image();
aboutOn.src = "/images/links/benefits_r.gif"
aboutOff = new Image();
aboutOff.src = "/images/links/benefits.gif"
  
undergradOn = new Image();
undergradOn.src = "/images/links/compensation_r.gif"
undergradOff = new Image();
undergradOff.src = "/images/links/compensation.gif"

communicationOn = new Image();
communicationOn.src = "/images/links/communication_r.gif"
communicationOff = new Image();
communicationOff.src = "/images/links/communication.gif"

compensationOn = new Image();
compensationOn.src = "/images/links/compensation_r.gif"
compensationOff = new Image();
compensationOff.src = "/images/links/compensation.gif"

deptsOn = new Image();
deptsOn.src = "/images/links/employment_r.gif"
deptsOff = new Image();
deptsOff.src = "/images/links/employment.gif"
  
resteachOn = new Image();
resteachOn.src = "/images/links/records_r.gif"
resteachOff = new Image();
resteachOff.src = "/images/links/records.gif"
  
studentsOn = new Image();
studentsOn.src = "/images/links/labor_r.gif"
studentsOff = new Image();
studentsOff.src = "/images/links/labor.gif"
  
trainingOn = new Image();
trainingOn.src = "/images/links/training_r.gif"
trainingOff = new Image();
trainingOff.src = "/images/links/training.gif"
  
systemsOn = new Image();
systemsOn.src = "/images/links/systems_r.gif"
systemsOff = new Image();
systemsOff.src = "/images/links/systems.gif"

quicklinksOn = new Image();
quicklinksOn.src = "/images/links/quick_r.gif"
quicklinksOff = new Image();
quicklinksOff.src = "/images/links/quick.gif"

arrowOn = new Image();
arrowOn.src = "/images/arrow.gif"
arrowOff = new Image();
arrowOff.src = "/images/trans-pixel.gif"

boxOn = new Image();
boxOn.src = "/images/lvl1/announcements_r.gif"
boxOff = new Image();
boxOff.src = "/images/lvl1/announcements.gif"

markerOff = new Image();
markerOff.src = "http://www.uchicago.edu/uchi/graphics/buttons/main_lg/marker_0.gif"
markerOn = new Image();
markerOn.src = "http://www.uchicago.edu/uchi/graphics/buttons/main_lg/marker_1.gif"

teaserOff = new Image();
teaserOff.src = "/images/home-teasers/benefits_promo.gif"
teaserOn = new Image();
teaserOn.src = "/images/home-teasers/benefits_promoON.gif"

teaser2Off = new Image();
teaser2Off.src = "/images/home-teasers/don_randel.jpg"
teaser2On = new Image();
teaser2On.src = "/images/home-teasers/don_randelOn.gif"

teaser3Off = new Image();
teaser3Off.src = "/images/logos/lvl1_randel.jpg"
teaser3On = new Image();
teaser3On.src = "/images/logos/lvl1_randel_on.jpg"
}



function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

// done hiding -->


<!--
function popitup(url) {
newWin = window.open(url, 'newWin','directories=no,status=no,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,resizable=yes,width=300,height=200');
  if (window.focus) {newWin.focus()}
//-->
}



<!--
function popUp(url) {
newWin = window.open(url, 'newWin','directories=no,status=no,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,resizable=yes,width=600,height=500');
  if (window.focus) {newWin.focus()}
//-->
}


<!--
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);
// -->

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

//-->

function MsgBox () {
	alert("If you wish to enroll in one of these courses, you must first follow the Application and Enrollment Process outlined on this page. Do not enroll for these courses via the Graham School website.");
}

function MsgBoxHR () {
	alert("The enrollment system is experiencing periodic technical difficulties.  If you are unable to login at this time, please try again later.  We apologize for the inconvenience.");
}
