
var imagenumber = 20;
var randomnumber = Math.random();
var randpic = Math.round((imagenumber-1) * randomnumber) + 1;
//var randpic = 19;

 images = new Array;
 alt = new Array;
 cap = new Array;
 link = new Array;
 width = new Array;
 height = new Array;

//* this sets an image to the array as well as a link; the 'target' will either keep the link in the same browser window or place it in its own 

 images[1] = "/news/images/20031124_SERCC.jpg";
 images[2] = "/news/images/20040414_jacobson.jpg";
 images[3] = "/news/images/20041019_dna.jpg";
 images[4] = "/news/images/20041025_bott.jpg";
 images[5] = "/news/images/20050215_UH-Methodist.gif";
 images[6] = "/news/images/20050428_bott.jpg";
 images[7] = "/news/images/20050428_thummel.jpg";
 images[8] = "/news/images/20050725_advincula.jpg";
 images[9] = "/news/images/20051010_korea.jpg";
 images[10]= "/news/images/20051206_moy.jpg";
 images[11]= "/news/images/20060118_daugulis.jpg";
 images[12]= "/news/images/20060315_lee.jpg";
 images[13]= "/news/images/20060512_advincula.jpg";
 images[14]= "/news/images/20060801_landes.jpg";
 images[15]= "/news/images/20070412_bittner.jpg";
 images[16]= "/news/images/20070501_awards.jpg";
 images[17]= "/news/images/20080325_may.jpg";
 images[18]= "/news/images/20080331_miljanic.jpg";
 images[19]= "/news/images/20080414_daugulis.jpg";
 images[20]= "/news/images/20080415_lubchenko.jpg";

 alt[1] = "The new Science and Engineering Research and Classroom Complex";
 alt[2] = "Allan Jacobson";
 alt[3] = "Computer model of a DNA strand";
 alt[4] = "Simon Bott";
 alt[5] = "Methodist and the UH System form an important collaboration";
 alt[6] = "Simon Bott";
 alt[7] = "Randolph Thummel";
 alt[8] = "Rusty Rodgers and Dr. Rigoberto Advincula";
 alt[9] = "Bear, Advincula , Pettitt with Korean faculty";
 alt[10]= "Mamie Moy";
 alt[11]= "Olafs Daugulis";
 alt[12]= "T. Randall Lee";
 alt[13]= "Rigoberto Advincula";
 alt[14]= "Christy Landes";
 alt[15]= "Eric Bittner";
 alt[16]= "Thummel, Advincula, Baldelli";
 alt[17]= "Jeremy May";
 alt[18]= "Ognjen Miljani&#263;";
 alt[19]= "Olafs Daulgulis";
 alt[20]= "Vassiliy Lubchenko";

 width[1] = "320"; height[1] = "200";
 width[2] = "250"; height[2] = "200";
 width[3] = "290"; height[3] = "200";
 width[4] = "290"; height[4] = "200";
 width[5] = "300"; height[5] = "100";
 width[6] = "250"; height[6] = "250";
 width[7] = "250"; height[7] = "250";
 width[8] = "243"; height[8] = "172";
 width[9] = "300"; height[9] = "170";
 width[10]= "126"; height[10]= "140";
 width[11]= "165"; height[11]= "200";
 width[12]= "110"; height[12]= "110";
 width[13]= "167"; height[13]= "200";
 width[14]= "133"; height[14]= "162";
 width[15]= "189"; height[15]= "200";
 width[16]= "300"; height[16]= "200";
 width[17]= "160"; height[17]= "200";
 width[18]= "160"; height[18]= "200";
 width[19]= "225"; height[19]= "200";
 width[20]= "250"; height[20]= "200";

 link[1] = "http://www.uh.edu/media/serc/";
 link[2] = "http://www.uh.edu/spotlight/10.html";
 link[3] = "http://www.uh.edu/admin/media/nr/2004/10oct/101904nathlthgrant.html";
 link[4] = "http://www.uh.edu/uhtoday/2004/10oct/102804disawareness.html";
 link[5] = "http://www.uh.edu/admin/media/nr/2005/02feb/021505uh-methodist.html";
 link[6] = "http://www.uh.edu/uhcnonline/2005/04april/042805sbott.html";
 link[7] = "http://www.uh.edu/uhcnonline/2005/04april/042805rthummel.html";
 link[8] = "http://www.nsm.uh.edu/news/images/AdvincRustyGrad.htm";
 link[9] = "http://nsm.uh.edu/news/images/AdvinculaKorea.htm";
 link[10]= "http://www.uh.edu/uhtoday/2005/12dec/120605mamiemoy.html";
 link[11]= "http://nsm.uh.edu/newsroom/2006/0118_daugulis.htm";
 link[12]= "http://momentum.nsm.uh.edu/2006_spring/lee.htm";
 link[13]= "http://www.uh.edu/admin/media/nr/2006/05may/051206radvincula_nanoconf.html";
 link[14]= "http://www.chem.uh.edu/Faculty/Landes/";
 link[15]= "http://www.nsm.uh.edu/newsroom/2007/0416_bittner.htm";
 link[16]= "http://www.uh.edu/uhtoday/2007/facultyawards/list.html";
 link[17]= "http://www.chem.uh.edu/Faculty/May/";
 link[18]= "http://www.chem.uh.edu/Faculty/Miljanic/";
 link[19]= "http://uh.edu/news-events/newsrelease.php?releaseid_int=170";
 link[20]= "http://www.uh.edu/uhtoday/2008/04april/041508v-lubchenko.html";

 cap[1] = "A drawing of the new SERCC buildings beside SR-1.";
 cap[2] = "Allan Jacobson, 2004 Farfel Award Recipient.";
 cap[3] = "A computer model produced by the IMD.";
 cap[4] = "Simon Bott receives the Center for DisABILITIES<br>Outstanding Faculty Award";
 cap[5] = "Methodist and the UH System agree<br> to an important collaboration";
 cap[6] = "Simon Bott, winner of the 2005<br>Non-Tenure Teaching Excellence Award";
 cap[7] = "Randolph Thummel, winner of the 2005<br>Excellence in Research and Scholarship Award";
 cap[8] = "Rusty Rodgers and his advisor<br>Dr. Rigoberto Advincula at work in the lab";
 cap[9] = "Bear (back left), Advincula (middle front), and Pettitt<br>(front, striped shirt) with faculty from Seoul University";
 cap[10]= "Mamie Moy is recognized for fifty years of<br>service to the UH and Houston community";
 cap[11]= "Olafs Daugulis Wins 2006 Journal Award";
 cap[12]= "Professor of Chemistry<br>T. Randall Lee invented a unique<br>targeted drug-delivery system";
 cap[13]= "Rigoberto Advincula gave a lecture and hosted a workshop at the<br>Future of Nanocoatings and Ultra-thin Films conference.";
 cap[14]= "The Department of Chemistry<br>welcomes Dr. Christy Landes";
 cap[15]= "Eric Bittner has been awarded<br>a Guggenheim Fellowship";
 cap[16]= "Professors Randy Thummel, Rigoberta Advincula,<br>and Steven Baldelli won Faculty Awards this year.";
 cap[17]= "The Department of Chemistry<br>welcomes Dr. Jeremy May";
 cap[18]= "The Department of Chemistry<br>welcomes Dr. Ognjen Miljani&#263;";
 cap[19]= "Olafs Daugulis wins the coveted<br>Alfred P. Sloan Research Fellowship.";
 cap[20]= "Vassiliy Lubchenko wins the coveted<br>Beckman Young Investigator Award.";

 
//*sends values of the arrays 
 var newslink = link[randpic];
 var newspic = images[randpic];
 var newsalt = alt[randpic];
 var newscap = cap[randpic];
 var newsw = width[randpic];
 var newsh = height[randpic];
