// JavaScript Document
// note additions or modifications to blurb/image/URL sets must happen to all three elements
<!--
function randomImage() {
//init array and define images
imgArray = new Array(

	"images/stacee.jpg",          // stacee
	"images/pogonip.jpg",         // pogonip
	"images/milagroaerial.jpg",  // milagro aerial
	"images/milagro.jpg",         // milagro
	"images/glovebox.jpg",        // sue carter lab
	"images/babar.jpg",           // BaBar
	"images/schlesinger2.jpg",    // schlesinger2
	"images/schlesinger3.jpg",     // Schlesinger3
	"images/alianza.jpg",     // Schlesinger4
	"images/aerial.jpg",          // aerial sc
	"images/scilib.jpg",          // scihill
	"images/galaxies.jpg",        // cosmos
	"images/kerr.jpg",            // kerr
	"images/belanger.jpg",         // belanger lab
	"images/glast.jpg",           // GLAST
    "images/atlas.jpg",            // ATLAS
	"images/teslademo.jpg",			// tesla coil demo
	"images/balloonfest.jpg",	   // balloon fest
	"images/schumm.jpg"	          // schumm

);

//init array and define blurbs
captionArray = new Array(

/* stacee */"ABOVE: Aerial photo of the National Solar Thermal Test Facility used by the Solar Tower Atmospheric Cherenkov Effect Experiment (STACEE) to study cosmic sources of high energy gamma rays.",
/* pogonip */"Outside Magazine ranked UC Santa Cruz the nation's best for &ldquo;schools that turn out smart grads with top-notch academic credentials, a healthy environmental ethos, and an A-plus sense of adventure.&rdquo; UC Santa Cruz was also ranked as the most beautiful campus in the nation by the Princeton Review.",
/* milagro aerial */"ABOVE: Aerial view of the Milagro detector which studies high energy gamma rays from the cosmos.", 
/* milagro */"ABOVE: Installing photo multiplier tubes in the Milagro dectector to discover high energy gamma rays from the cosmos. ", 
/* sue carter lab */"ABOVE: A high school teacher in the Summer Research Experience for Teachers uses the nitrogen glove box which provides a strictly nitrogen environment for the study of materials sensitive to oxygen.", 
/* BaBar */"ABOVE: One of SCIPP's local projects is BaBar.  The BaBar Detector (pictured above) at SLAC researches two meson particles:  B and B-bar.",
/* schlesinger2 */"ABOVE: Chandra Turpen and Tim McKnew align a spectrometer to study negative thermal expansion in Zack Schlesinger's lab.", 
/* Schlesinger3 */"ABOVE: Graduate student Eliina Karyndinha looks on as undergraduate student Chandra Turpen points out optical spectroscopy data in Zack Schlesinger's lab. ",
/* Schlesinger4 */"ABOVE: Students at Alianza Charter learn tricks of the trade from Zack Schlesinger (not pictured). Photo Credit: Shmuel Thaler/Sentinel",
/* aerial sc */"The view when leaving the UC Santa Cruz campus includes an adjacent Greenbelt area called  Pogonip, the municipal wharf, the Boardwalk amusement area, and a sweeping panoramic view of the Monterey Bay.",
/* scihill */"ABOVE: The Science and Engineering Library is just steps from the Physics Department. The department has its own Physics Librarian who collects resources in physics (books, journals, electronic resources, etc.), and assists Physics faculty, researchers, graduate and undergraduate students.",
/* cosmos */"ABOVE: An image from a numerical simulation of colliding disk galaxies. Image generated by Physics Graduate Student T.J. Cox, Astronomy Graduate Student Patrik Jonsson, and Physics Professor Joel Primack.",
/* kerr */"ABOVE: One of the many lovely patios on campus. This one is to the 2nd floor of Kerr Hall, which was the location of the Physics Department prior to its move to the Interdisciplinary Sciences Building in July 2002.  It is now the location of the Math Department.",
/* belanger lab*/"ABOVE: Feng Ye and and Leslie Shelton take data and record notes in David Belanger Lab.",
/* GLAST */"ABOVE: The Gamma-Ray Large Area Space Telescope (GLAST) will study the most energetic sources of radiation in the universe. Physics Professor Robert Johnson and Physics Researchers William Atwood, Hartmut Sadrozinski, and Terry Schalk work with GLAST.",
/* ATLAS */"ABOVE: The A Toroidal LHC Apparatus (ATLAS) Detector studies proton-proton interactions at the Large Hadron Collider (LHC) at the CERN Laboratory in Switzerland. Physics professors and researchers working on this experiment include Abraham Seiden, Clemens Heusch, Alexander Grillo, and Alan Litke.",
/* tesla coil demo*/"ABOVE: A volunteer from the Santa Cruz Institute for Particle Physics wears a protective suit to demonstrate the dazzling electrical arcs of up to 5 feet (1.5 meters) in length generated by a Tesla Coil. Area schools can schedule a demonstration. See ",
/* balloon fest*/"ABOVE: Faculty and researchers from UC Santa Cruz sponsored Balloon Fest at Endeavour Academy at Paso Robles High School in April 2004. Balloon Fest allows high school students and their advisors to design, conduct and present atmospheric research.",
/* schumm*/"ABOVE: Physics Professor Bruce Schumm receiving an Excellence in Teaching Award for 2002-03 &quot;for stimulating and challenging teaching in physics, for diligent preparation, clear presentation, and openness to new approaches, for going the extra mile for his students.&quot;"
);

//init array and define URLs
urlArray = new Array (
	
	/* stacee */"http://www.astro.ucla.edu/~stacee/",   
	/* pogonip */"http://currents.ucsc.edu/03-04/08-18/awards.html", 
	/* milagro aerial */"http://www.lanl.gov/milagro/",
	/* milagro */"http://www.lanl.gov/milagro/", 
	/* sue carter lab */"http://physics.ucsc.edu/~sacarter/",                    
	/* BaBar */"http://scipp.ucsc.edu/scipp_local_group_pages.htm",                                   
	/* schlesinger2 */"http://physics.ucsc.edu/research/nte.html",                        
	/* Schlesinger3 */"http://physics.ucsc.edu/research/nte.html",        
	/* Schlesinger4 */"http://physics.ucsc.edu/outreach/alianza.html",   
	/* aerial sc */"http://www.ci.santa-cruz.ca.us/pr/parksrec/parks/pogo.html",                       
	/* scihill */"http://library.ucsc.edu/science/",                                                                  
	/* cosmos */"http://physics.ucsc.edu/cosmo/",
	/* kerr */"http://www.math.ucsc.edu/",                         
	/* belanger lab*/"http://dave.ucsc.edu/",                                          
	/* GLAST */"http://glast.gsfc.nasa.gov/", 
	/* ATLAS */" http://atlasexperiment.org/",
	/* tesla demo*/"http://scipp.ucsc.edu/outreach/",
	/* balloon fest */"http://www.pasoschools.org/endeavour/projects/2004/BalloonFest/Index.htm",
	/* schumm */"http://www.ucsc.edu/news_events/press_releases/text.asp?pid=362"
	);


//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='200' border='0'></a>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
document.write("<tr><td>");
document.write("<span class='caption'>");
document.write(captionArray[index]);
document.write(" [");
document.write("<a href=" + urlArray[index] + ">");
document.write("More");
document.write("</a>");
document.write("] ");
document.write("</span>");
document.write("</td></tr></table>");
}
//-->
