function OpenPicture(xpicnbr) 
{
  pictitle = new Array(
              "Mediteranean Coastline", 
              "Why tourists get lost",
              "The haunted Moro Caves",
              "The haunted Moro Caves",
              "Frigiliana",
              "Frigiliana", 
              "Frigiliana",
              "Sunrise",
              "Gibraltar",
              "Gibraltar",
              "Gibraltar",
              "Gibraltar");
  picfilename = new Array(
              "./2kteampics/p5/spmedcoastline.jpg", 
              "./2kteampics/p5/spmalagasign.jpg",
              "./2kteampics/p5/spdavetony_moro.jpg",
              "./2kteampics/p5/spjohnghost_moro.jpg",
              "./2kteampics/p5/spfrigilianavalley.jpg", 
              "./2kteampics/p5/spfrigilianavalley02.jpg",
              "./2kteampics/p5/spfrigilianavalley03.jpg",
              "./2kteampics/p5/spsunrise.jpg",
              "./2kteampics/p5/spgibralter.jpg",
              "./2kteampics/p5/spgibraltereside.jpg",
              "./2kteampics/p5/spgibraltertop.jpg",
              "./2kteampics/p5/spgibralterventana.jpg");
  picnotes = new Array(
              "<font face=arial size=-1>Mediteranean coastline east of Nerja<br>Do you see the two Roman military towers in the distance?", 
              "Go this way to Malaga",
              "Look at Tonys eyes",
              "A Moro cave ghost is next to John",
              "Looking north through Frigiliana", 
              "Frigilianas olive groves",
              "Frigiliana is located 6km up a canyon from Nerja",
              "Sunrise over the Mediteranean",
              "Gibraltar and the ventana cloud",
              "Looking down the east side of Gibraltar<br>(The white dots in the road below are cars)",
              "At the top of Gibraltar",
              "The ventana makes the west side dark during the daytime<br> Notice how small the ships are!");
  piccredits = new Array(
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "Dave Riordan", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore", 
              "John Bickmore");
  picheight =  new Array(400, 330, 500, 350, 400, 350, 310, 300, 310, 400, 400, 400);
  picwidth =   new Array(200, 380, 600, 350, 475, 400, 450, 400, 550, 550, 550, 550);
  windheight = new Array(620, 550, 700, 550, 600, 550, 525, 525, 525, 625, 625, 625);
  windwidth =  new Array(400, 450, 650, 600, 500, 500, 550, 500, 650, 625, 625, 625);
  var win = window.open("BicycleCam-" + pictitle[xpicnbr] + ".htm", "win", "width=" + windwidth[xpicnbr] + ", height=" + windheight[xpicnbr]); 
  with (win.document) {
	win.moveTo(100,50); 
    open("text/html", "replace");
    write("<html><head><title>" + pictitle[xpicnbr] + "</title></head><body>");
    write("<center><h3>" + pictitle[xpicnbr] + "</h3>");
    write("<img alt=" + pictitle[xpicnbr] + " height=" + picheight[xpicnbr] + " width=" + picwidth[xpicnbr] + " src=" + picfilename[xpicnbr] + ">");
    write("<br/><br/>");
    write("<p><font face='arial'>" + picnotes[xpicnbr] + "</font></p>");
    write("<font size=-'2' face='arial'>Actual photo size is about 1024x768<br/>Right-Click on the picture and SaveAs to your computer. Set display=stretch.</font>");
    write("<br/><br/><font size=-'2' face='arial'>Photo by: " + piccredits[xpicnbr] + "</font>");
    write("<br/><table width='100%'><tr><td align='center'><a href='javascript:window.close()'><img src='./pics/pclose.gif' border='0' width='100' height='17'></a></td></tr></table></center>");
    write("</body></html>");
	
	
    close();
  }
}

