var imgarr = new Array();
var title = new Array();
var aidx = new Array();

imgarr[1] = new Image();
imgarr[1].src = "images/t01.jpg";
title[1] = "At the Intel Developer Forum last September, Intel Chairman Craig Barrett and Matt Flannery, CEO of Kiva.org, talk about how Kiva.org is taking microfinance online for the first time. Hundreds of thousands of people in the United States, Europe and Japan are using the Web site to lend money every 30 seconds to budding entrepreneurs in more than 40 countries.";
aidx[1] = "01";

imgarr[2] = new Image();
imgarr[2].src = "images/t02.jpg";
title[2] = "Teacher Mugisha Charles instructs students at the CHANCE primary school in Kibuye Village, Uganda. The school was one of the beneficiaries of Save the Children's Rewrite the Future program. (source: Save the Children)";
aidx[2] = "02";


function roll(n) {
  if (imgarr[n] == null) return;
  document.img.src = imgarr[n].src;
  document.art.titl.value = title[n];
}

function setup() {
  roll('2');
  for (i=1;i<3;i++) {
    im = "im"+i;
    document[im].src=imgarr[i].src;
  }
}
