<!--

/*
Copyright © The Regents of the University of Michigan, 
College of Literature, Science, and the Arts 2002-2003, All Rights Reserved.
Site: Department of Physics
http://www.lsa.umich.edu/physics
Script: Slide Show
Version: 2.0
Updated: 09/18/03
Authors: Frank Y.
*/


////////////////////////////////////////////////
//* Default Slide and Caption for Slide Show *//
////////////////////////////////////////////////

function defaultSlide() {

arg = eval(window.document.frmPage.hdnCurrentSlide.value) + 1;
arg1 = window.document.frmPage.hdnCurrentSlide.value;

eval("window.document.slidephoto.src=newPhoto[" + arg1 + "]");
eval("window.document.slidephoto.alt=newAlt[" + arg1 + "]");
}

function defaultSlide2() {

arg = eval(window.document.frmPage2.hdnCurrentSlide2.value) + 1;
arg1 = window.document.frmPage2.hdnCurrentSlide2.value;

eval("window.document.slidephoto2.src=newPhoto2[" + arg1 + "]");
eval("window.document.slidephoto2.alt=newAlt2[" + arg1 + "]");
}

////////////////////
//* Photo Change *//
////////////////////

function changePhoto(objPhoto, newPhotoNbr) {

  //alert("changePhoto block")
  oldPhotoNbr = window.document.frmPage.hdnCurrentSlide.value;

  // Swap the photo
  objPhoto.src = newPhoto[newPhotoNbr];

  // Swap the caption (alt tag)
  //objPhoto.alt = newAlt[newPhotoNbr];
  window.document.slidephoto.alt = newAlt[newPhotoNbr];

  // Change the old hidden form value to the new one
  window.document.frmPage.hdnCurrentSlide.value = newPhotoNbr;

}

function changePhoto2(objPhoto2, newPhotoNbr2) {

  //alert("changePhoto block")
  oldPhotoNbr2 = window.document.frmPage2.hdnCurrentSlide2.value;

  // Swap the photo
  objPhoto2.src = newPhoto2[newPhotoNbr2];

  // Swap the caption (alt tag)
  //objPhoto.alt = newAlt[newPhotoNbr];
  window.document.slidephoto2.alt = newAlt2[newPhotoNbr2];

  // Change the old hidden form value to the new one
  window.document.frmPage2.hdnCurrentSlide2.value = newPhotoNbr2;

}

//-->