// Adapted by Jan Allen from a function which writes out Hero slides, captions, and dates to a 
// table automatically.  Daniel Krook :: February 22, 2002

function writeSlides() {
  
// Define the array of slide objects

  // Define the images for each slide
  var strSlidesImg = new Array(
"smpix/smEH03.jpg", "smpix/smWinners2.jpg", "smpix/smEX02.jpg", "smpix/smMetropolis.jpg", "smpix/smSP32.jpg", "smpix/smCM01.jpg", "smpix/sm_pic_4.jpg", "smpix/smMaryMiller.jpg", "smpix/smNETL.jpg", "smpix/smSP04.jpg", "smpix/sm_pic_10.jpg", "smpix/smEX03.jpg", "smpix/smRodenCrater.jpg", "smpix/smFS01.jpg", "smpix/smEX04.jpg", "smpix/smBH03.jpg"
   );
  
  // Define the caption for each slide
  var strSlidesCap = new Array(
'Earth Harp Aerialist', 'Fair Awards Ceremony', 'Chatham & NIOSH', 'Film Festival-Metropolis',        'Spectacular-Fruit Flambe', 'Robot Volleyball', 'Coral Reef Explorer', 'Exhibitor-Mary Miller',             'Exhibitor-NETL', 'Spectacular-Cyborg', 'Science Fair Exhibits', 'Exhibitor-US Steel',                           'The Roden Crater', 'FrankenScience-Electricity', 'Segways at SciTech', 'Big Horn Draws A Crowd'
  );

  var strLargeImg = new Array(
"lgpix/lgEH03.jpg", "lgpix/lgWinners.jpg", "lgpix/lgEX02.jpg", "lgpix/lgMetropolis.jpg", "lgpix/lgSP32.jpg", "lgpix/lgCM01.jpg", "lgpix/lg_pic_4.jpg", "lgpix/lgMaryMiller.jpg", "lgpix/lgNETL.jpg", "lgpix/lgSP04.jpg", "lgpix/lg_pic_10.jpg", "lgpix/lgEX03.jpg", "lgpix/lgRodenCrater.jpg", "lgpix/lgFS01.jpg", "lgpix/lgEX04.jpg", "lgpix/lgBH03.jpg"   
  );




// Begin the table.
  document.write("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
  
// Write out the table rows.
  for (var i=0; i<strSlidesImg.length; i++) {
    var strFormat = 
      "<td align='center' width='145'><a href='javascript:largeWindow(" + i + ");'><img src='" + strSlidesImg[i] + "' border='0'></a><br>" + 
      strSlidesCap[i] + "<br><br></td>";

    if (i%4 == 0) {
      document.write("<tr>" + strFormat);
    } else if (i%4 == 3) {
      document.write(strFormat + "</tr>");
    } else {
      document.write(strFormat);
    }
    
  }
  
// Close the table.
  document.write("</table>");
  
} 

function largeWindow(j) {


  // Define the images for each slide
  var strLargeImg = new Array(
"lgpix/lgEH03.jpg", "lgpix/lgWinners.jpg", "lgpix/lgEX02.jpg", "lgpix/lgMetropolis.jpg", "lgpix/lgSP32.jpg", "lgpix/lgCM01.jpg", "lgpix/lg_pic_4.jpg", "lgpix/lgMaryMiller.jpg", "lgpix/lgNETL.jpg", "lgpix/lgSP04.jpg", "lgpix/lg_pic_10.jpg", "lgpix/lgEX03.jpg", "lgpix/lgRodenCrater.jpg", "lgpix/lgFS01.jpg", "lgpix/lgEX04.jpg", "lgpix/lgBH03.jpg"
     );

  var strLargeCap = new Array(
    'The Earth Harp aerialist amazed and delighted SciTech visitors',
    '(Left)  The Awards Ceremony at the Pittsburgh Regional Science Fair',
    'Festival Exhibitors - Chatham College and NIOSH interactive exhibits',
    'Metropolis, a classic cyborg/robotics film at the Film Festival',

    'SciTech Spectacular - the Fruit Flambe show in the Kitchen Theater',
    'Robot Volleyball - four college teams competed at the 2003 Festival',
    'Dr. Richard Pyle, featured in the Omnimax film \'Coral Reef Explorer\'',
    'The Mary Miller Dance Co. demonstrates stage lighting effects',

    'Exhibit from US Dept. of Energy, National Energy Technology Laboratory',
    'SciTech Spectacular panel discussion: First human cyborg, Dr. Kevin Warwick',
    'A view from above of one of the Science Fair exhibit halls',
    'United States Steel exhibit - Take a quiz, win a Slinky!',

    'Mattress Factory exhibit featured the Roden Crater, artist James Turrell\'s work with natural light',
    'The FrankenScience show in the Works Theater demonstrates static electricity',
    'The SciTech Festival information booth is visited by two Segways',
    'The audience learns about the Big Horn and gets a demonstration'
    );

var largeImg = strLargeImg[ j ];
var largeCap = strLargeCap[ j ];

newWindow = window.open("", "newWin", "width=450,height=430");
newWindow.document.write("<html><head><title>Photo Gallery Picture<\/title>");
newWindow.document.write("<link rel='stylesheet' href='style4.css' type='text\/css'><\/head>");
newWindow.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#E9EdF4'>");
newWindow.document.write("<table width='450' border='0' cellpadding='0' cellspacing='0'>");
newWindow.document.write("<tr>");
newWindow.document.write("<td colspan='3' align='center'><font face='Arial,Helvetica,sans-serif'> <img src='images/spacer.gif' width='1' height='5'");
newWindow.document.write("<br>");
newWindow.document.write("<br><img src='"+largeImg+"' width='440' height='330'>");
newWindow.document.write("<br>"+largeCap+"<br><img src='images/line_photo.gif' width='440' height='1'><\/td><\/font><\/tr>");
newWindow.document.write("<td width='5'><img src='images/spacer.gif' width='7' height='1'></td>");
newWindow.document.write("<td width='308' valign='top'><img src='images/spacer.gif' width='306' height='1'><br><\/td>");
newWindow.document.write("<td width='131'><a href='javascript:close();'><img src='images/close_photo.gif' width='127' height='36' alt='Close' border='0'><\/a><\/td>");

newWindow.document.write("<\/tr><\/table>");

newWindow.document.write("<\/body><\/html>");
newWindow.document.close();

}


 
     
