
<!--
/* To add another thumbnail, drop another image (preformatted using the
 * photoshop action) into the "thumb" directory. Then add another entry to the
 * urls array. Make sure you add a comma to the next-to-last entry, and that
 * you don't add a comma on the last entry.
 */

var urls = new Array(
"photo-album/marching.html",		// 0
"photo-album/music.html",		// 1
"photo-album/scrambles.html",		// 2
"photo-album/bandoffice.html",		// 3
"photo-album/",				// 4
"photo-album/misc.html",		// 5
"photo-album/seniors.html",		// 6
"photo-album/members.html",		// 7
"photo-album/ftn.html",			// 8
"photo-album/formations.html",		// 9
"photo-album/trash.html",		// 10
"photo-album/van.html"			// 11
);

//var loc = document.location.toString().substring(0,document.location.toString().lastIndexOf("/")+1);
var loc = "http://www.princeton.edu/~puband/";
var max = urls.length-1;
var i = Math.round(Math.random()*max), paused = false;
var started = false;
function slideShow() {
  if(paused) return;
  i++; i %= (max+1);
  document.all.photo.document.images[0].src = "/~puband/thumb/thumb"+i+".gif";
  started = true;
}
function go() {
  if(started) { window.location = loc+urls[i]; }
  else window.location = loc;
}
function hilite() {
  paused = true;
  if(started) setTimeout("self.status = loc+urls[i];",50);
  else setTimeout("self.status = loc;",50);
}
function unlite() {
  paused = false;
  setTimeout("self.status = '';",50);
}
//-->


