/* This little ditty displays a random image and caption.
 * To add another image, simply insert the name of a 100x100
 * pixel thumbnail and it's caption to the variable research.
 * If your image is image.thumb.jpg and your caption is 'Cool':
 *
 * var research = [['keyhole.thumb.jpg', 'The Keyhole Nebula'],
 *                ['ic349.thumb.jpg', 'IC349']];
 *
 * will become:
 *
 * var research = [['keyhole.thumb.jpg', 'The Keyhole Nebula'],
 *                ['ic349.thumb.jpg', 'IC349'],
 *                ['image.thumb.jpg', 'Cool']];
 *
 * NOTE: TRY TO KEEP IMAGES OF THE SAME THEME IN THE SAME VARIABLE, SO THAT, FOR EXAMPE, WE DON'T
 *       SUDDENLY HAVE 3 PICTURES OF ETA CAR ON THE FRONT PAGE (Sript loads one pic from each of the research variables)
 */
 
var research1 = [
	       ['2Dmass.thumb.jpg', '2D cluster mass', 'http://www.physics.umn.edu/groups/cosmology/'],
	       ['3Dmass.thumb.jpg', '3D cluster mass', 'http://www.physics.umn.edu/groups/cosmology/'],
               ['microlensing.thumb.jpg', 'Microlensing', 'http://www.physics.umn.edu/groups/cosmology/'],
               ['lensing_ring.jpg','Gravitational lensing: Einstein ring model', '~llrw/'],

               /*['HUradio.jpg', 'Synthetic 1.4 GHz observation of high-Mach jet', 'http://www.msi.umn.edu/Projects/twj/'],
               ['HUxray.jpg', 'Synthetic 2 keV observation of high-Mach jet', 'http://www.msi.umn.edu/Projects/twj/'],
               ['LKradio.jpg', 'Synthetic 1.4 GHz observation of low-Mach jet', 'http://www.msi.umn.edu/Projects/twj/'],
               ['LKxray.jpg', 'Synthetic 2 keV observation of low-Mach jet', 'http://www.msi.umn.edu/Projects/twj/'],
               ['jetvel.thumb.jpg', '3D rendering of simulated radio jet velocity', 'http://www.msi.umn.edu/Projects/twj/'],
               ['mbc.thumb.jpg', 'Simulated shock structures around a supercluster', 'http://www.msi.umn.edu/Projects/twj/'],
               ['compfin.thumb.jpg', 'Cas A/simulation composite', 'http://www.msi.umn.edu/Projects/twj/'],*/

	       ['khweakbm.jpg','Magnetic field of weak field Kelvin-Helmholtz instability','/groups/compastro'],
	       ['khma5bm.jpg','Magnetic field of strong field Kelvin-Helmholtz instability','/groups/compastro'],
	       ['I13XrayRadio.jpg','Blue 2 keV X-ray + red 1.4 GHz synthethetic jet observation','/groups/compastro'],

               ['cassA_comp01.thumb.gif', 'Cass A composite (x-ray, optical, and radio data)', 'http://www.astro.umn.edu/~larry/'],
               ['lbt_onthemove.jpg', 'An LBT mirror going up the mountain (Credit: John Hill)', 'http://medusa.as.arizona.edu/lbto/'],
               ['sirtf_launch2.jpg', 'Spitzer launch on August 25th 2003', 'http://www.spitzer.caltech.edu/']
];

var research2 = [
	       ['densvol.thumb.jpg', 'Volume rendering of cosmological simulation', 'http://www.msi.umn.edu/Projects/twj/'],
               ['p1s.thumb.jpg', 'Volume rendering of cluster shocks', 'http://www.msi.umn.edu/Projects/twj/'],
               ['mlof.thumb.jpg', 'Mount Lemmon Observing Facility', 'http://ir.astro.umn.edu/'],
               ['NGC891.thumb.jpg', 'NGC891', 'http://ir.astro.umn.edu/'],
               ['MtL_primary.jpg','Mt. Lemmon Observing Facility primary mirror', 'http://ir.astro.umn.edu/telescopes/mlof.html'],
               ['halebopp.thumb.jpg', 'Comet Hale-Bopp', 'http://ir.astro.umn.edu/'],
               ['M17.jpg', '2.2 micron polarization of stars in M17', 'http://www.astro.umn.edu/~tjj/'],
               ['cephA.jpg','Cepheus A polarimetry in K band','http://www.astro.umn.edu/~tjj/'],
               ['IRC10420.thumb.jpg', 'IRC10420', 'http://www.physics.umn.edu/directory/roberta.html'],
               ['scanner.gif', 'The automated plate scanner', 'http://aps.umn.edu'],
               ['etacar_first.jpg', 'First electronic image of Eta Carina', 'http://etacar.umn.edu'],
               ['EtaCarinaHSTImage.jpg', 'Hubble Space Telescope image of Eta Carina', 'http://etacar.umn.edu'],
               ['etacar_xray.jpg', 'Image of Eta Carina with x-ray overlay (Credit: Chandra)', 'http://chandra.harvard.edu/'],
               ['CarinaStarMap1660.jpg', 'Starmap from 1660 showing Eta Carina', 'http://etacar.umn.edu']
];

var research3 = [
               ['HI_SGPS.thumb.jpg', 'Galactic neutral hydrogen', '~naomi/sgps.html'],
               ['H1SGPS.thumb.jpg', 'SGPS map of neutral hydrogen', 'research/radio/'],
               ['modelgrain.thumb.jpg', 'Model dust grain', 'http://ir.astro.umn.edu/'],
               ['polarimeter.thumb.jpg', 'Polarimeter schematic', 'http://ir.astro.umn.edu/'],
               ['HST_EmmissionLinesInEtaCarinaBlobs.jpg', 'Emission lines in Eta Carina', 'http://etacar.umn.edu'],
               ['lbtdraft.gif', 'Draft of the LBT (Credit: ADS Italia)', 'facilities/lbt/'],
               ['lbt_sunset.jpg', 'The LBT at sunset (Credit: John Hill )', 'http://medusa.as.arizona.edu/lbto/'],
               ['sirtf_artist.jpg', 'The Spitzer Space Telescope', 'http://www.spitzer.caltech.edu/'],
               ['m33_sirtf.jpg', 'Spitzer Space Telescope image of M33 (Credit: E. Polomski et al.)', 'http://www.astro.umn.edu/~elwood/'],
               ['sirtf_artist.jpg', 'The Spitzer Space Telescope', 'http://www.spitzer.caltech.edu/'],
	       ['N159.jpg','Spitzer Space Telescope image of N159', 'http://www.astro.umn.edu/~tjj/'],
               ['VYcolor.thumb.gif', 'HST/WFPC image of circumstellar ejecta around the extreme red supergiant VY CMa', 'http://www.physics.umn.edu/directory/roberta.html'],
               ['fire_1.jpg', 'U band image of WLM with neutral hydrogen contours', 'http://www.astro.umn.edu/~djackson/'],
               ['fire_2.jpg', 'U-B image of the WLM dwarf galaxy\'s central region', 'http://www.astro.umn.edu/~djackson/']
];

              
var rand1 = Math.round(Math.random()*(research1.length-1));
var rand2 = Math.round(Math.random()*(research2.length-1));
var rand3 = Math.round(Math.random()*(research3.length-1));

document.write('<div class="ulwrap"><ul><li><a href="' +research1[rand1][2]+ '"><img src="randomresearch/' + research1[rand1][0] + '"></a>');
document.write('<p>' + research1[rand1][1] + '</p></li>');

document.write('<li><a href="' +research2[rand2][2]+ '"><img src="randomresearch/' + research2[rand2][0] + '"></a>');
document.write('<p>' + research2[rand2][1] + '</p></li>');

document.write('<li class="last"><a href="' +research3[rand3][2]+ '"><img src="randomresearch/' + research3[rand3][0] + '"></a>');
document.write('<p>' + research3[rand3][1] + '</p></li></ul></div>');



