// JavaScript Document

//random image and caption script by Shannon Darrough http://www.electricveneer.com
//Based on script by Mike Thompson of http://www.members.tripod.com/webdesign123now/

function random_imglink(){
	var myimages=new Array()
	//specify random images below. You can have as many as you wish

	myimages[0]="/images/homepage/P61-1606.jpg"
	myimages[1]="/images/homepage/P61-5174.jpg"
	myimages[2]="/images/homepage/P64-1517.jpg"
	myimages[3]="/images/homepage/P81-2645.jpg"
	myimages[4]="/images/homepage/P8890-3509.jpg"
	myimages[5]="/images/homepage/P6375-1539.jpg"
	myimages[6]="/images/homepage/P6465-5121.jpg"
	myimages[7]="/images/homepage/P66-s2928.jpg"

	
	
	//specify corresponding links below
	var imagelinks=new Array()
	
	imagelinks[0]='Robert Motherwell. <em>The Voyage: Ten Years After,</em> 1961. Acrylic and charcoal on canvas, 68 3/4 x 205 3/4" (175 x 523 cm). Guggenheim Bilbao Museoa'
	imagelinks[1]='Robert Motherwell. <em>The Golden Fleece,</em> 1961. Oil on canvas, 69 x 204" (175 x 518 cm). Chrysler Museum of Art; Bequest of Walter P. Chrysler, Jr.'
	imagelinks[2]='Robert Motherwell. <em>Dublin 1916, with Black and Tan,</em> 1964. Oil and acrylic on canvas, 84 1/8 x 204 1/4" (214 x 519 cm). Nelson A. Rockefeller Empire State Plaza Collection'
	imagelinks[3]='Robert Motherwell. <em>Face of the Night (For Octavio Paz),</em> 1981. Acrylic on canvas, 72 x 180" (183 x 457 cm). Collection of the Modern Art Museum of Fort Worth, Gift of The Friends of Art, by Exchange, and the Dedalus Foundation'
	imagelinks[4]='Robert Motherwell. <em>Elegy to the Spanish Republic No. 171,</em> 1988. Acrylic and chalk on canvas, 84 x 168" (213 x 427). Collection of the Modern Art Museum of Fort Worth, Gift of The Friends of Art, by Exchange, and the Dedalus Foundation'	
	imagelinks[5]='Robert Motherwell. <em>Elegy to the Spanish Republic No. 100,</em> 1975. Acrylic on canvas, 84 x 240" (213 x 610 cm). Los Angeles County Museum of Art; Purchased with funds provided by the Art Museum Council and gift of the Dedalus Foundation'
	imagelinks[6]='Robert Motherwell. <em>Africa,</em> 1965. Acrylic on canvas, 81 x 222 1/2" (206 x 565 cm). Baltimore Museum of Art: Gift of the Artist, BMA 1965.12'
	imagelinks[7]='Robert Motherwell. <em>Elegy to the Spanish Republic No. 108,</em> 1966. Oil and acrylic on canvas, 84 x 147" (213 x 373 cm). Dallas Museum of Art, The Art Museum League Fund'

	var ry=Math.floor(Math.random()*myimages.length)
	
	this.caption=imagelinks[ry]
	
	document.write('<img src="'+myimages[ry]+'" alt="'+imagelinks[ry]+'" border=0>')
}
function getCaption(){
	document.write(this.caption)
}
