function OpenPicture(xpicnbr) 
{
  pictitle = new Array(
              "Before the start of the Downer Avenue race", 
              "Talking",
              "Going easy into a turn",
              "The herd",
              "Tim Irwin off the front",
              "After the Whitefish Bay Criterium");
  picfilename = new Array(
                 "./2kteampics/p3/sw_20001_downer_ave_startline.jpg", 
                 "./2kteampics/p3/sw_20002_johntalking.jpg",
                 "./2kteampics/p3/sw_20003_downer_ave_turn01.jpg",
                 "./2kteampics/p3/sw_20004_lemmings.jpg",
                 "./2kteampics/p3/sw_20005_tim_otfront.jpg",
                 "./2kteampics/p3/sw_20006_johnwhitefish.jpg");
  picnotes = new Array(
                 "Downer Avenue", 
                 "Talking",
                 "Just before turn 1 of Downer Avenue",
                 "The Herd",
                 "Tim Irwin off the front",
                 "After the Whitefish Bay Criterium");
  piccredits = new Array(
                 "Mom", 
                 "Mom", 
                 "Mom", 
                 "Mom", 
                 "Mom", 
                 "Mom");
  picheight =  new Array(400, 400, 400, 400, 400, 400);
  picwidth =   new Array(500, 500, 600, 500, 500, 600);
  windheight = new Array(617, 600, 613, 630, 600, 630);
  windwidth =  new Array(600, 600, 700, 600, 600, 700);
  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.</b></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='100px' height='17px'></a></td></tr></table></center>");
    write("</body></html>");
	
	
    close();
  }
}

