
// Set up the image files to be used.
var theImages = new Array(); // do not change this
var theImagesCredit= new Array(); // do not change this

// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/assets/studentgallery/adv_H_Jiron-A_De_Jesus-E_Tower.jpg';
theImages[1] = '/assets/studentgallery/anm_S_DeLorme.jpg';
theImages[2] = '/assets/studentgallery/arch_Andy_Tang.jpg';
theImages[3] = '/assets/studentgallery/arch_P_Pongsamart_.jpg';
theImages[4] = '/assets/studentgallery/ca3d_Daniel_Moy.jpg';
theImages[5] = '/assets/studentgallery/ca3d_WonHyukJoung.jpg';
theImages[6] = '/assets/studentgallery/canm_jihyun_kim.jpg';
theImages[7] = '/assets/studentgallery/canm_tissanee_Deja-aur-arie.jpg';
theImages[8] = '/assets/studentgallery/fa_c_mchale.jpg';
theImages[9] = '/assets/studentgallery/fa_suhas_bhujbal.jpg';
theImages[10] = '/assets/studentgallery/fascu_monica_sarzynski.jpg';
theImages[11] = '/assets/studentgallery/fsh_emily_ginn.jpg';
theImages[12] = '/assets/studentgallery/fsh_Kyung_Min_Kim.jpg';
theImages[13] = '/assets/studentgallery/gr_jagruti_dadia.jpg';
theImages[14] = '/assets/studentgallery/gr_magdalena_hladka.jpg';
theImages[15] = '/assets/studentgallery/IAD_geneieve_yellin.jpg';
theImages[16] = '/assets/studentgallery/IAD_sharon_ashton.jpg';
theImages[17] = '/assets/studentgallery/ids_D_Randall.jpg';
theImages[18] = '/assets/studentgallery/ids_J_Leu_interior.jpg';
theImages[19] = '/assets/studentgallery/ill_I-Wei.jpg';
theImages[20] = '/assets/studentgallery/ill_T_Lamb.jpg';
theImages[21] = '/assets/studentgallery/mpt_miaw_lee_teo.jpg';
theImages[22] = '/assets/studentgallery/PH_e_taylor.jpg';
theImages[23] = '/assets/studentgallery/PH_s_ayres.jpg';

theImagesCredit[0] = 'H. Jiron';
theImagesCredit[1] = 'S. DeLorme';
theImagesCredit[2] = 'Andy Tang';
theImagesCredit[3] = 'P. Pongsamart';
theImagesCredit[4] = 'Daniel Moy';
theImagesCredit[5] = 'Won Hyuk Joung';
theImagesCredit[6] = 'Jihyun Kim';
theImagesCredit[7] = 'Tissanee Deja';
theImagesCredit[8] = 'C. Mchale';
theImagesCredit[9] = 'Suhas Bhujbal';
theImagesCredit[10] = 'Monica Sarzynski';
theImagesCredit[11] = 'Emily Ginn';
theImagesCredit[12] = 'Kyung Min Kim';
theImagesCredit[13] = 'Jagruti Dadia';
theImagesCredit[14] = 'Magdalena Hladka';
theImagesCredit[15] = 'Geneieve Yellin';
theImagesCredit[16] = 'Sharon Ashton';
theImagesCredit[17] = 'D. Randall';
theImagesCredit[18] = 'J. Leu';
theImagesCredit[19] = 'I. Wei';
theImagesCredit[20] = 'T. Lamb';
theImagesCredit[21] = 'Miaw Lee';
theImagesCredit[22] = 'E. Taylor';
theImagesCredit[23] = 'S. Ayres';


/* var j = 0; */ // what is this for?
var imLen = theImages.length;

var preBuffer = new Array();
for (var i = 0; i < imLen; i++){
   preBuffer[i] = new Image();
   preBuffer[i].src = theImages[i];
}

var whichImage = Math.round(Math.random()*(imLen-1));
function showStudentGalleryImage(){
   document.write('<img src="'+theImages[whichImage]+'" alt="Student Artwork" />');
   document.write('<br />');
   document.write('<span class="credit">Artist: '+theImagesCredit[whichImage]+'</span>');
}

