// JavaScript Document
// note additions or modifications must happen to all elements


<!--
function randomImage() {
//define images
imgArray = new Array(

	"images/focus/picasphaug.jpg",  // 
	"images/focus/picfisher.gif",  //
	"images/focus/picnimmo.jpg",  //
	"images/focus/pickeck.jpg",  //
	"images/focus/picglatz.jpg" //
	


);

// define title
titleArray = new Array(
					   /*erik*/ "PLANETARY COLLISIONS",
					   /*andy*/ "CRUSTAL HYDROGEOLOGY",
					   /*francis*/ "PLANETARY PHYSICS",
					   /*keckisotope*/ "W. M. KECK ISOTOPE LABORATORY",
					   /*glatz*/ "CONVECTION & MAGNETIC FIELD GENERATION IN PLANETS & STARS"
					  
);

//define researcher
nameArray = new Array(
					   /*erik*/ "Erik Asphaug, Professor",
					   /*andy*/ "Andrew T. Fisher, Professor",
					   /*francis*/ "Francis Nimmo, Associate Professor",
					   /*keckisotope*/ " ",
					   /*glatz*/ "Gary Glatzmaier, Professor"
					  
);

//define researcher webpage
pageArray = new Array(
					   /*erik*/ "http://www.es.ucsc.edu/personnel/Asphaug/",
					   /*andy*/ "http://www.es.ucsc.edu/personnel/Fisher/",
					   /*francis*/ "http://www.es.ucsc.edu/personnel/Nimmo/",
					   /*keckisotope*/ " ",
					   /*glatz*/ "http://www.es.ucsc.edu/personnel/Glatzmaier/"
					  
);

//define highlights
textArray = new Array(

/*erik*/"Erik Asphaug's group has been working on a number of studies relating to the origin of terrestrial planets and asteroids. One focus is the &quot;late stage&quot; episode of accretion when giant planetary collisions took place, such as the one believed to have formed the Moon. Out of a hundred or more ~1000 to ~5000 km diameter bodies, the four terrestrial planets (Mercury, Venus, Earth and Mars) are believed to have formed in the course of a few ten million years.",			
/*andy*/"Andy Fisher's research group explores water-rock interactions in many settings. In one set of ongoing studies, Fisher and his students and colleagues have investigated the mechanisms by which enormous fluxes of water move in and out (and through) the oceanic crust, using field observations, laboratory experiments, and computer modeling. The ocean crust is the largest aquifer on Earth, holding a volume of water about equivalent to that in ice caps and glaciers, and flows through the crust are at least as large as flows from rivers into the ocean.",
/*francis*/"The solid bodies of the solar system exhibit remarkable diversity in geological behaviour, and Francis Nimmo's main interest is in understanding the origins of this diversity. One example is his investigation of Enceladus, a small icy moon of Saturn which is geologically active, with geysers jetting water vapor into space.",
/*keckisotope*/"The W.M. Keck Isotope Laboratory comprises two mass spectrometers and wet chemical labs all housed in a class 1000 suite of clean labs. The laboratory was inaugurated on 18th June 2004 following a substantial grant from the W.M. Keck Foundation for the purchase of a ThermoFinnigan Neptune multiple collector ICP-MS.",
/*glatz*/"Global magnetic fields are observed on some terrestrial planets, on all of our giant planets and on the sun. Differential rotation is observed on the surfaces of giant planets and the sun and is inferred via helioseismology in the solar interior. The most dramatic displays of differential rotation exist on the surfaces of our gas giants, Jupiter and Saturn."


);

//define URL for image/more
urlArray = new Array (
	
	/* erik */  "research/focus/asphaug.html",   
	/* andy */  "research/focus/fisher.html",
	/* francis */  "research/focus/nimmo.html",
    /* keckisotope */  "http://keckisotope.ucsc.edu",
	/* glatz */  "research/focus/glatz.html"
	
	
);

//generate random
index = Math.floor(Math.random() * imgArray.length);
//write out image
document.write("<a href=" + urlArray[index] + "><img alt='click for additional information' src=" + imgArray[index] + " width='310' height='160' border='0'></a>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='14'>");
document.write("<tr><td>");
document.write("<p><span class='subhead'>");
document.write("FOCUS ON RESEARCH");
document.write("</span>");
document.write("<img alt='' src='images/grey1yell3.gif' width='100%' height='4'>");
document.write("</p>" + "<p>" + "<strong>");
document.write(titleArray[index]);
document.write("</strong>" + "<br>");
document.write("<a href=" + pageArray[index] + ">");
document.write("<strong>");
document.write(nameArray[index]);
document.write("</strong>");
document.write("</a>");
document.write("</p>");
document.write(textArray[index]);
document.write(" [");
document.write("<a href=" + urlArray[index] + ">");
document.write("More");
document.write("</a>");
document.write("] ");
document.write("</p>");
document.write("</td></tr></table>");
}
//-->
