  if (document.images)
   {
     image_off= new Image(100,100);
     image_off.src="images/physics/biophysics.jpg";  

     image1= new Image(100,100);
     image1.src="images/physics/prestonmagnet.jpg"; 
     image2= new Image(100,100);
     image2.src="images/physics/plasma.jpg"; 
     image3= new Image(100,100);
     image3.src="images/physics/biophysics.jpg";
     image4= new Image(100,100);
     image4.src="images/physics/radar200.jpg"; 
     image5= new Image(100,100);
     image5.src="images/physics/chirality.jpg";
     image6= new Image(100,100);
     image6.src="images/physics/top.jpg"; 
     image7= new Image(100,100);
     image7.src="images/physics/veritas200.jpg"; 
     image8= new Image(100,100);
     image8.src="images/physics/nuclearcrater.jpg"; 
     image9= new Image(100,100);
     image9.src="images/physics/galaxy.jpg"; 
     image0= new Image(100,100);
     image0.src="images/physics/m51.jpg";
     image10= new Image(100,100);
     image10.src="images/physics/acam_UCD.jpg";

     a01= new Image(100,100);
     a01.src="images/physics/a01.jpg"; 
     a02= new Image(100,100);
     a02.src="images/physics/a02.jpg";
     a03= new Image(100,100);
     a03.src="images/physics/a03.jpg";
     a04= new Image(100,100);
     a04.src="images/physics/a04.jpg"; 
     a05= new Image(100,100);
     a05.src="images/physics/a05.jpg";
     a06= new Image(100,100);
     a06.src="images/physics/a06.jpg"; 
     a07= new Image(100,100);
     a07.src="images/physics/a07.jpg"; 
     a08= new Image(100,100);
     a08.src="images/physics/a08.gif"; 
     a09= new Image(100,100);
     a09.src="images/physics/a09.jpg"; 
     a10= new Image(100,100);
     a10.src="images/physics/a10.jpg";
     a13= new Image(100,100);
     a13.src="images/physics/a13.jpg"; 
    }

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }

var CaptionText=new Array(18)
CaptionText[1]="Thomas Preston magnet";
CaptionText[2]="A 13.5-nm tin plasma";
CaptionText[3]="Biophysics on the nanoscale";
CaptionText[4]="Radar school outreach";
CaptionText[5]="Quantum magnet chirality";
CaptionText[6]="The particle physics world";
CaptionText[7]="The VERITAS observatory";
CaptionText[8]="Low-yield Am-241 profile";
CaptionText[9]="Relativity theory";
CaptionText[0]="M51 spiral galaxy";
CaptionText[10]="Physics in today's world";
CaptionText[11]="DN008: Science - Omnibus";
CaptionText[12]="DN031: Theoretical Physics";
CaptionText[13]="DN033: Physics with Astronomy and Space Science";
CaptionText[14]="Joint Honours";
CaptionText[15]="Core subjects in other programmes";
CaptionText[16]="Elective subjects in other programmes";
CaptionText[17]="Atlantic Centre for Atomistic Modelling";

var MainText=new Array(18)
MainText[1]="Physics at University College Dublin dates back to the 19th century when Thomas Preston first observed the anomalous Zeeman effect. His gratings and electromagnets are on display at UCD.";
MainText[2]="A 13.5-nm laser-produced doped tin plasma as an atomic light source to etch integrated circuits in silcon for next generation extreme ultraviolet lithography semiconductor manufacturing.";
MainText[3]="There is a predictive physical understanding of biological processes and molecules, involving new methods of investigation, state of the art materials, laser-based methodology.";
MainText[4]="Transition-year students can spend a week at UCD doing some physics, laboratory work, and extra-curricular activities: measuring the speed of a kicked ball using radar.";
MainText[5]="A chiral arrangement of spins has been conjectured to be related to various exotic properties of certain materials such as high-transition temperature superconductors.";
MainText[6]="Normal everyday matter is made of up and down quarks, electrons and neutrinos. The force-carrying particles are the photon, gluons which 'glue' the atomic nucleus together and (virtual) W bosons causing radioactive decay.";
MainText[7]="The Very Energetic Radiation Imaging Telescope Array System in Arizona is an array of four 12-m diameter imaging atmospheric Cherenkov telescopes for ground-based gamma-ray astronomy.";
MainText[8]="Investigating radiological contamination in Kazakhstan: The crater produced by a low-yield test in 1968, showing the measured Am-241 contamination.";
MainText[9]="General Relativity (Einstein's Theory of Gravitation) includes gravitational wave propagation in cosmology - modelling the stochastic gravitational wave background in the Universe.";
MainText[0]="Check out the BSc Astro degrees (DN008 and DN033): The M51 Spiral Galaxy (Kitt Peak 0.9 m telescope) was first observed with the Leviathan telescope at Birr, Co. Offaly.";
MainText[10]="The skills that come from studying physics such as numeracy, lateral thinking and analysis are highly valued by employers across the board. Physics graduates successfully work in academia, engineering, computing, aerospace technologies, financial services, health and care services, defence, energy, etc.";
MainText[11]="UCD has the largest science programme in Ireland, providing degree courses in biological, chemical, geological, mathematical, physical and computer sciences offering a choice of 25 subjects. DN008 allows students to experience a number of subject areas before specialising in one or two disciplines in later years. This is a particularly good option if you are not sure which subject you wish to take at degree level.";
MainText[12]="Theoretical Physics provides a unified description of the fundamental laws of Nature. Using advanced mathematics you learn to understand and predict the behaviour of physical systems ranging from the subatomic to astronomical scales";
MainText[13]="Physics with Astronomy and Space Science is particularly appealing if you are interested in exploring the universe through physics and pursuing a career in the space industry.";
MainText[14]="Physics can be linked with other subjects to form a challenging Joint Honours degree. Subjects can include Computer Science, Biochemistry, Chemistry, etc.";
MainText[15]="Physics is taught as a core subject in Science, Engineering, Architecture, Medicine, Nursing Studies, Vetrinary Medicine, Agricultural Science, Physiotherapy.";
MainText[16]="Physics as an elective: Would your degree be enhanced if you knew something about lasers, nano-technology, astronomy, superconductors, or the latest in semiconductor manufacturing?";
MainText[17]="ACAM is the 'Atlantic' node of CECAM (Centre Europeen de Calcul Atomique et Moleculaire) uniting scientists and institutions from Ireland: North and South, and colleagues in North America. ACAM researchers participate in various graduate and postgraduate programmes at UCD.";

var LinkText=new Array(18)
LinkText[1]="the School of Physics";
LinkText[2]="Prof. Gerry O'Sullivan";
LinkText[3]="Dr. Dominic Zerulla, Dr. Brian Vohnsen";
LinkText[4]="Dr. Padraig Dunne";
LinkText[5]="Dr. Hans-Benjamin Braun";
LinkText[6]="Prof. Martin Grunewald, Dr. Ronan McNulty";
LinkText[7]="Dr. John Quinn";
LinkText[8]="Prof. Peter Mitchell";
LinkText[9]="Prof. Peter Hogan";
LinkText[0]="Dr. Lorraine Hanlon";
LinkText[10]="the School of Physics";
LinkText[11]="the School of Physics";
LinkText[12]="the School of Physics";
LinkText[13]="the School of Physics";
LinkText[14]="the School of Physics";
LinkText[15]="the School of Physics";
LinkText[16]="the School of Physics";
LinkText[17]="Prof. David Coker";

function ChangeText(num)
 {
   var newtitle = CaptionText[num];
   var head1 = document.getElementById("head1");
   head1.firstChild.nodeValue=newtitle;

   var newtitlemain = MainText[num];
   var main1 = document.getElementById("main1");
   main1.firstChild.nodeValue=newtitlemain;

   var link1 = document.getElementById("link1");
   link1.firstChild.nodeValue=LinkText[num];
    
 }

function ChangeText1(num)
 {
   var newtitle = CaptionText[num];
   var head1 = document.getElementById("head1");
   head1.firstChild.nodeValue=newtitle;

   var newtitlemain = MainText[num];
   var main1 = document.getElementById("main1");
   main1.firstChild.nodeValue=newtitlemain;
 }
