var imagenumber=10;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1
images = new Array
images[1] = "../images/random/1.jpg"
images[2] = "../images/random/2.jpg"
images[3] = "../images/random/3.jpg"
images[4] = "../images/random/4.jpg"
images[5] = "../images/random/5.jpg"
images[6] = "../images/random/6.jpg"
images[7] = "../images/random/7.jpg"
images[8] = "../images/random/8.jpg"
images[9] = "../images/random/9.jpg"
images[10] = "../images/random/10.jpg"
captions = new Array
captions[1] = "the view from our neighborhood (Yokogawa)<br><br>Hiroshima, Japan, 2004"
captions[2] = "ah... the Buddha<br><br>D&agrave;t&oacute;ng Caves, China, 2004"
captions[3] = "the best snack name ever<br><br>Shijiazhuang, China, 2004"
captions[4] = "feed us your recylables and non-recyclables!<br><br>Shijiazhuang, China, 2004"
captions[5] = "101derful flavors<br><br>SOGO Department Store, Hiroshima, Japan, 2003"
captions[6] = "there are chickens everywhere in Kauai; this one prefers to be called a Jungle Fowl<br><br>Lihue Airport, Kauai, 2005"
captions[7] = "conway's project<br><br>University of Hawaii, School of Architecture, 2005"
captions[8] = "\"the yale was a mythical beast, said to be white in colour and covered with gold spots. its peculiar characteristic was that it could swivel each of its horns independently.\"<br><br>Kew Gardens, London, England, 2005"
captions[9] = "we had a great time on the 4th of July, and did not (contrary to expectation) get hit with errant fireworks<br><br>Magic Island, Honolulu, Hawaii, 2005"
captions[10] = "the flowers outside my house are turning into leaves!<br><br>Waiola Street, Honolulu, Hawaii, 2005"
var myimage = images[rand1]
var mycaption = captions[rand1]
function random_image() {
document.write('<img src="../filesjava/' + myimage + '" alt="random picture"><br><br>' + mycaption +'<br>')
}
