// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'image-01.jpg'
theImages[1] = 'image-02.jpg'
theImages[2] = 'image-03.jpg'
theImages[3] = 'image-04.jpg'
theImages[4] = 'image-05.jpg'
theImages[5] = 'image-06.jpg'


var captions = new Array();
captions[0] = 'An instantaneous snapshot of self-propelled interacting agents modelled within a circular boundary system <b>D Grossman et al</b> 2008 <i>New Journal of Physics</i> <b>10</b> 023036. Artistic interpretation by Fred Swist.';
captions[1] = 'Sol-gel nanostructure obtained after radiation exposure and development during the optimization process <b>G Brusatin et al</b> 2008 <i>Nanotechnology</i> <b>19</b> 175306.';
captions[2] = 'Snapshot of lattice mending under the combined effect of pressure and atomic thermal diffusion at a near-surface nanopore at 20 ps (colours denote the atomic slip distance) <b>P-H Huang and H-Y Lai</b> 2008 <i>Nanotechnology</i> <b>19</b> 255701.';
captions[3] = 'Parametric evolution of the eigenfunctions of the internal scattering operator of a quadrupolar quantum billiard <b>H E Türeci and H G L Schwefel</b> 2007 <i>Journal of Physics A: Mathematical and Theoretical</i> <b>40</b> 13869–13882.';
captions[4] = 'Stable stationary roll patterns in supercritical convection structures due to concentration steps <b>D Jung and M Lücke</b> 2007 <i>EPL (Europhysics Letters)</i> <b>80</b> 14002. Artistic interpretation by Fred Swist.';
captions[5] = 'Visualization of multicellular structures formed by the subcellular element model <b>S A Sandersius and T J Newman</b> 2008 <i>Physical Biology</i> <b>5</b> 015002.';

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showRandomImage() {
	document.write('<img src="furniture/random/homepage/'+theImages[whichImage]+'" alt="random image" /><p>' + captions[whichImage] + '</p>');
}

