<!--

/*
Copyright ? The Regents of the University of Michigan,
College of Literature, Science, and the Arts 2002-2003, All Rights Reserved.
Site: Institute for the Humanities
http://www.lsa.umich.edu/econ
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("document.getElementById('slidephoto').src=newPhoto[" + arg1 + "]");
eval("document.getElementById('slidephoto').alt=newAlt[" + arg1 + "]");
eval("document.getElementById('slidephotolink').href=newHref[" + 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];
  document.getElementById("slidephoto").alt = newAlt[newPhotoNbr];

  document.getElementById("slidephotolink").href = newHref[newPhotoNbr];

  // Change the old hidden form value to the new one
  window.document.frmPage.hdnCurrentSlide.value = newPhotoNbr;

}

//-->