// JavaScript Document 


// select random photo

var randimage = new Array(
  	'imageshome/image01.jpg', 
  	'imageshome/image02.jpg', 
  	'imageshome/image03.jpg',	
  	'imageshome/image04.jpg'	
);

// find random number based on number of pics in array
var randnum = Math.floor(Math.random()*randimage.length);


// generate corresponding header
var randheader = new Array(
  	'imageshome/header01.gif', 
  	'imageshome/header02.gif', 
  	'imageshome/header03.gif',	
  	'imageshome/header01.gif'
);

// generate corresponding alt tag
var randalt = new Array(
  	'Image by Felice Frankel', 
  	'Image by Felice Frankel', 
  	'Image by Felice Frankel',
  	'Photograph by Ying Shirley Meng'
);

// select corresponding caption for photo
var randcaption = new Array(
  	'<p>Negatively charged gold colloids on a self-assembled monolayer. Professor Hammond\'s Group.<p>Photograph by Felice Frankel of <a href="http://web.mit.edu/i-m/picturing">Picturing to Learn.</p>', 
  	'<p>Core-shell nanoparticle baroplastics molded by pressure-based processing. Professor Mayes\'s Group. <p>Photograph by Felice Frankel of <a href="http://web.mit.edu/i-m/picturing">Picturing to Learn.</p>', 
  	'<p>Optical yarns: cylindrical photonic bandgap textile fibers. Professor Fink\'s Group.<p>Photograph by Felice Frankel of <a href="http://web.mit.edu/i-m/picturing">Picturing to Learn.</p>',	
  	'<p>Palladium nanoparticles catalyst on carbon nanofibers for fuel cell and battery electrodes. Professor Shao-Horn\'s Group.<p>Photograph by John Paul Kurpiewski.</p>'	
);

// generate corresponding background color
var randbg = new Array(
  	'D27C42', 
  	'7A9369', 
  	'9D6773',
  	'D27C42' 
);

// generate corresponding bullet
var randbullet = new Array(
  	'imageshome/bullet01.gif', 
  	'imageshome/bullet02.gif', 
  	'imageshome/bullet03.gif',
  	'imageshome/bullet01.gif'
);
