// Data and instructions for display of Oasis II

var mixPix1 = new Array();
mixPix1[0] = "images/OasisII.jpg";
mixPix1[1] = "images/OasisII-alt.jpg";
/* above is the array that holds our images, it is indexed from 0 to 
   (number of elements - 1) */
var mixAlt1 = new Array();
mixAlt1[0] = "Oasis II -- Pomegranate colorway on Light Caramel Congress Cloth";
mixAlt1[1] = "Oasis II -- Paprika colorway on Soft Mocha Congress Cloth";

var thisPic = new Array(0,0);  //the counter for the image array
var lastPic = new Array(1,1);  //the last cell in our array
                               // = (number of pictures - 1)

function processNext(iPict) {
        if (document.images) {
                if (thisPic[iPict-1]==lastPic[iPict-1]) //if at the very end of the array
                {
                    thisPic[iPict-1]=0; //goto the first cell of the array
                }
                else 
                {
                    thisPic[iPict-1]++; //else simply increment the counter
                }
                if (iPict==1) {
                        document.myPicture1.src=mixPix1[thisPic[iPict-1]];
                        document.myPicture1.alt=mixAlt1[thisPic[iPict-1]];
                        window.status=mixAlt1[thisPic[iPict-1]];
                }
        }
}
