// JavaScript Document

  var num_images = 19;
    
  captions = new Array(num_images);
  captions[0] = "Stan Cox Models MAPJ's 'Don't Iraq Iran' T-Shirt";
  captions[1] = "Ann Murray at the Gates Protest";
  captions[2] = "Gates Protest";
  captions[3] = "Rob Dunn and Ellen Welti at the Gates Protest";
  captions[4] = "Wednesday Anti-War Protest in Triangle Park";
  captions[5] = "Peter Wagner at Prison Reform Symposium";
  captions[6] = "Jeff Stilley and Flags Project";
  captions[7] = "Anne Cowan and GI Rights Project";
  captions[8] = "Medea Benjamin and Marolyn Caldwell at 2007 MAPJ Annual Meeting";
  captions[9] = "Kathy Kelly at the 2008 MAPJ Annual Meeting";
  captions[10] = "Kathy Kelly and Jeff Stilley at the 2008 MAPJ Annual Meeting";
  captions[11] = "Sylvia Beeman and Others at the 2008 MAPJ Annual Meeting";
  captions[12] = "Kathy Kelly Joins Wheels of Justice Tour after 2008 MAPJ Annual Meeting"
  captions[13] = "Suzanne Pharr's Workshop before 2009 MAPJ Annual Meeting"
  captions[14] = "Suzanne Pharr at 2009 MAPJ Annual Meeting"
  captions[15] = "Petraeus Protest"
  captions[16] = "Ellen Welti and Bill Dorsett at Petraeus Protest"
  captions[17] = "Greg Covington and John Exdell at Petraeus Protest"
  captions[18] = "Anne Cowan Tabling for Iraq Veterans Against the War"

  var r = Math.floor(Math.random() * num_images);
  if (r == num_images) {
    r = num_images - 1;
  }
  
  document.write('<center class="after">' +
    '<img src="images/random/pic' + r + '.jpg" alt="' +
    captions[r] + '">' + '<br/>' +
    '<em>' + captions[r] + '</em>' +
    '</center>');