/* Physics & Astronomy home page slide show */

var imdir = "/IMAGES/SlideShow/";

var SlideList = new Array();
var Caption = new Array();

SlideList[0]  = imdir+'keck.jpg';
Caption[0]  = "The twin Keck 10m telescopes on Mauna Kea: the largest telescopes in the world.  Dr. Tegler uses these to observe Kuiper Belt objects.<div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</a></div>";
 
SlideList[1] = imdir+'kbodisk.jpg';
Caption[1]  = "The <i>Kuiper Belt</i> is a debris disk orbiting the Sun at and beyond Neptune.  The 'planet' Pluto is actually the first known Kuiper Belt Object (and one of the largest).  Neptune's disruptive gravity prevents accretion of these objects into a true planet.<div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</a></div>";

SlideList[2]  = imdir+'mandelbrot.jpg';
Caption[2]  = "The Mandelbrot set provides a stunning example of mathematical elegance made visual.<div align='right'><a href='research.shtml'>Theoretical Physics Research at NAU</a></div>";

SlideList[3]  = imdir+'Quantum.jpg';
Caption[3]  = "Quantum-mechanical calculations, from Dr. Bowman's book: <i>Essential Quantum Mechanics</i>, Oxford University Press (2007); images (left to right): Albert Einstein, Richard Feynman, Isaac Newton.<div align='right'><a href='research.shtml'>Theoretical Physics Research at NAU</a></div>";

SlideList[4] = imdir+'spitzer-orion2.jpg';
Caption[4]  = "The Orion Nebula, some 1,500 light-years away, as viewed from the Spitzer Space Telescope.  The Spitzer is used in connection with ongoing research at NAU under the direction of Dr. Koerner.<div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</div>";

SlideList[5]  = imdir+'TootingCrater.jpg';
Caption[5]  = "Dr. Barlow studies Martian impact craters and what their <i>fluidized</i> ejecta can tell us about the distribution of subsurface ice/water.<br><font size=-2>Image courtesy of THEMIS at: NASA/JPL/Arizona State University.</font><div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</a></div>";

SlideList[6]  = imdir+'31inch.jpg';
Caption[6]  = "The Lowell 31-inch telescope is used by the National Undergraduate Research Observatory (NURO).  NAU astronomy majors gain valuable experience taking and analysing various types of imaging data at this facility.<div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</div>";

SlideList[7]  = imdir+'scienceed.jpg';
Caption[7] = "Our department proudly hosts Arizona's largest Physics Teacher Education program under the guidance of Dr. James!.<div align='right'><a href='research.shtml'>Science Education Research at NAU</div>";

SlideList[8]  = imdir+'HorseHead.jpg';
Caption[8] = "This color image of the Horsehead Nebula was produced from B,V,R images taken with the new Barry Lutz Telescope for Education and Training, located at Atmospheric Research Observatory on NAU's campus.  Photo courtesy of Dr. Stephen Tegler (observers:  Arron Shiffer, Stephen Tegler, Ed Anderson). <div align='right'><a href='research.shtml'>Astronomy and Astrophysics Research at NAU</div>";

var pause = 15000;
var n = Math.ceil(Math.random() * SlideList.length)-1;

// Preload all the images
var preload = new Array();
for (var i = 1; i < SlideList.length; i++) {
    preload[i] = new Image();
    preload[i].src = SlideList[i];
}


function PASlideShow() {

	document.getElementById("ss").src = SlideList[n];
	document.getElementById("capbox").innerHTML= Caption[n];

	( n == (SlideList.length - 1)) ? n = 0 : n++;

	setTimeout ( "PASlideShow()", pause );
}
