﻿window.onload = initLinks;

var myPix = new Array("photos/ncsc1.gif", "photos/nc1.gif", "photos/nc2.gif", "photos/thulir1.gif", "photos/th 1.gif", "photos/th 2.gif", "photos/hirosima1.gif", "photos/hi 1.gif", "photos/hi 2.gif", "photos/anti nuclear1.gif", "photos/anti n1.gif", "photos/anti n2.gif", "photos/health policy1 .gif", "photos/h p 1.gif", "photos/h p 2.gif", "photos/h p 3.gif", "photos/h p 4.gif", "photos/environ1 .gif", "photos/en 1.gif", "photos/science pop1.gif", "photos/se pop1.gif", "photos/se pop3.gif", "photos/se pop4.gif", "photos/s&t1 .gif", "photos/s&t 1.gif", "photos/s&t 2.gif", "photos/women1 .gif", "photos/w1.gif", "photos/w2.gif", "photos/w3.gif", "photos/w4.gif");
var thisPic = 0;

function initLinks() {
     document.getElementById("prevLink"). onclick = processPrevious;
     document.getElementById("nextLink"). onclick = processNext;
}
function processPrevious() {
     if (thisPic == 0) {
        thisPic = myPix.length;
     }
     thisPic--;
     document.getElementById("myPicture").src = myPix[thisPic];
     return false;
}

function processNext() {
     thisPic++;
     if (thisPic == myPix.length) {
        thisPic = 0;
     }
     document.getElementById("myPicture").src = myPix[thisPic];
     return false;
}



